/* OKSW 新版样式 - 桌面端 */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&display=swap');

/* CSS Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 变量定义 */
:root {
  --bg-primary: #0F0F12;
  --bg-secondary: #16161D;
  --bg-card: #1C1C26;
  --brand-primary: #4D53E8;
  --brand-secondary: #8B5CF6;
  --brand-accent: #F58C8C;
  --text-primary: #FFFFFF;
  --text-secondary: #B8B8CC;
  --text-muted: #8A8A9E;
  --border-color: #2A2A3A;
  --hover-glow: 0 0 20px rgba(77, 83, 232, 0.3);
}

/* 基础样式 */
html {
  scroll-behavior: smooth;
  zoom: 1.5;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--brand-secondary);
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

/* Header 动画 - 从上方滑入 */
.header {
  opacity: 0;
  transform: translateY(-20px);
  animation: slideDown 0.5s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-text {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 28px;
  font-weight: bold;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-slogan {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 20px;
  color: #FFFFFF;
  flex: 1;
  animation: sloganBounce 2s ease-in-out infinite;
}

@keyframes sloganBounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-3px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-2px); }
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--text-secondary);
  font-size: 15px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: width 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text-primary);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
  background: var(--bg-primary);
  background-image: url('/images/hero-banner.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: rgba(15, 15, 18, 0.35);
}

/* Hero title wrapper - kept for compatibility */
.hero-title-wrapper {
  overflow: hidden;
  display: inline-block;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  background: linear-gradient(135deg, #4D53E8 0%, #8B5CF6 50%, #F58C8C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  letter-spacing: 2px;
  animation: fadeInUp 0.8s ease-out both;
}

/* Hero subtitle wrapper - kept for compatibility */
.hero-subtitle-wrapper {
  overflow: hidden;
  display: inline-block;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 1px;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Hero fadeInUp animation */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* char-span kept for compatibility but animation removed */

/* Old animations removed - using fadeInUp instead */

/* Per-char color overrides removed - using gradient text instead */

/* Accessibility - reduce motion */
@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-subtitle,
  .hero-desc {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Section Title */
.section-title {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 28px;
  font-weight: normal;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Featured Section */
.featured-section {
  padding: 60px 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.featured-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--hover-glow);
  transform: translateY(-4px);
}

.featured-card.expanded {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.featured-card .tool-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.featured-card .tool-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.featured-card .tool-comment-preview {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card .expand-hint {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--brand-primary);
  padding: 4px 10px;
  background: rgba(77, 83, 232, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.featured-card:hover .expand-hint {
  background: rgba(77, 83, 232, 0.2);
}

.featured-card .tool-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 8px;
  margin-top: 12px;
}

.featured-card .tool-review {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.8;
  padding: 12px;
  background: rgba(77, 83, 232, 0.08);
  border-radius: 8px;
  border-left: 3px solid var(--brand-primary);
}

.featured-card .tool-review::before {
  content: '我的点评：';
  display: block;
  font-size: 13px;
  color: var(--brand-primary);
  font-weight: 500;
  margin-bottom: 8px;
}

/* Tools Section */
.tools-section {
  padding: 60px 0;
  background: var(--bg-secondary);
}

.tools-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.category-header:hover {
  background: rgba(77, 83, 232, 0.05);
}

.category-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-title h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.category-count {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 2px 8px;
  border-radius: 10px;
}

.category-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.category-block.expanded .category-toggle {
  transform: rotate(180deg);
}

.category-content {
  display: none;
  padding: 0 20px 20px;
}

.category-block.expanded .category-content {
  display: block;
}

.tools-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tool-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tool-item:hover {
  background: rgba(77, 83, 232, 0.08);
}

.tool-item.expanded {
  background: rgba(77, 83, 232, 0.12);
  border: 1px solid rgba(77, 83, 232, 0.3);
  border-radius: 10px;
}

.tool-item .tool-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.tool-item .tool-info {
  flex: 1;
  min-width: 0;
}

.tool-item .tool-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.tool-item .tool-comment-preview {
  font-size: 12px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.tool-item .tool-description {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 10px;
  padding: 10px;
  background: var(--bg-card);
  border-radius: 6px;
}

.tool-item .tool-review {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.8;
  margin-top: 8px;
  padding: 10px;
  background: rgba(77, 83, 232, 0.08);
  border-radius: 6px;
  border-left: 2px solid var(--brand-primary);
}

.tool-item .tool-review::before {
  content: '我的点评：';
  display: block;
  font-size: 11px;
  color: var(--brand-primary);
  font-weight: 500;
  margin-bottom: 6px;
}

/* About Section */
.about-section {
  padding: 60px 0;
}

.about-content {
  max-width: 700px;
}

.about-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-content p:first-child {
  font-size: 18px;
  color: var(--text-primary);
}

.about-contact {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* Disclaimer Section */
.disclaimer-section {
  padding: 40px 0;
  background: var(--bg-secondary);
}

.disclaimer-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.disclaimer-box h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.disclaimer-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Footer */
.footer {
  padding: 40px 0 24px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-logo {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 20px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--brand-primary);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-top:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandDetail {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.featured-card,
.category-block {
  animation: fadeInUp 0.5s ease forwards;
}

.featured-grid .featured-card:nth-child(1) { animation-delay: 0.1s; }
.featured-grid .featured-card:nth-child(2) { animation-delay: 0.2s; }
.featured-grid .featured-card:nth-child(3) { animation-delay: 0.3s; }
.featured-grid .featured-card:nth-child(4) { animation-delay: 0.4s; }
.featured-grid .featured-card:nth-child(5) { animation-delay: 0.5s; }
.featured-grid .featured-card:nth-child(6) { animation-delay: 0.6s; }
.featured-grid .featured-card:nth-child(7) { animation-delay: 0.7s; }
.featured-grid .featured-card:nth-child(8) { animation-delay: 0.8s; }

.tool-detail {
  animation: expandDetail 0.3s ease forwards;
}


/* AI智能体说明文字 */
.featured-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(77, 83, 232, 0.12), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(77, 83, 232, 0.25);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.note-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}


/* Notes page */
.notes-page {
  padding: 60px 0 80px;
  min-height: 60vh;
}

.notes-page-title {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #4D53E8, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 40px;
  text-align: center;
}

.notes-page-content {
  max-width: 760px;
  margin: 0 auto;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "PingFang SC", "Microsoft YaHei";
}

.notes-page-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 28px 0 12px;
}

.notes-page-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 14px;
}

.notes-page-content strong {
  color: var(--text-primary);
}

.notes-page-content .blog-note-footer {
  color: var(--text-muted);
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Read more button */
.blog-read-more {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 28px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(77, 83, 232, 0.35);
}

/* Show more tools button */
.show-more-tools {
  display: block;
  width: 100%;
  padding: 12px 0;
  margin-top: 12px;
  background: rgba(77, 83, 232, 0.1);
  border: 1px dashed rgba(77, 83, 232, 0.3);
  border-radius: 10px;
  color: var(--brand-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.show-more-tools:hover {
  background: rgba(77, 83, 232, 0.2);
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

/* Review date */
.review-date {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(77, 83, 232, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  margin-right: 6px;
}

/* Journal-style entries */
.journal-entry {
  margin-bottom: 16px;
  padding-left: 80px;
  position: relative;
}

.journal-entry .journal-date {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary);
  background: rgba(77, 83, 232, 0.1);
  padding: 2px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.journal-entry p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

.journal-entry strong {
  color: var(--text-primary);
}

.tool-visit-link {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 16px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}
.tool-visit-link:hover {
  background: var(--brand-secondary);
  box-shadow: 0 0 12px rgba(77, 83, 232, 0.4);
}
