/* ========================================
   非遗AI设计 - 工业和爱飞工业设计软件展示站
   自定义样式表
   ======================================== */

/* 基础变量 */
:root {
  --primary: #1e3a5f;
  --primary-light: #2d5a8e;
  --primary-dark: #0f2440;
  --accent: #c8a45a;
  --accent-light: #e4c76b;
  --accent-dark: #a07d3a;
  --bg-dark: #0a1628;
  --bg-card: #111d32;
  --bg-card-hover: #162544;
  --text-primary: #e8edf3;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e3a5f;
  --success: #22c55e;
  --gradient-hero: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #0f2440 100%);
  --gradient-card: linear-gradient(135deg, #111d32 0%, #162544 100%);
  --gradient-accent: linear-gradient(135deg, #c8a45a 0%, #e4c76b 100%);
}

/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.logo-img {
  height: 40px;
  width: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.925rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(200, 164, 90, 0.1);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-cta {
  background: var(--gradient-accent) !important;
  color: #0a1628 !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200, 164, 90, 0.3);
}

/* 移动端菜单 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Hero 区域 */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(200, 164, 90, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 90, 142, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #e8edf3 0%, #c8a45a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(200, 164, 90, 0.08);
  border: 1px solid var(--border);
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #0a1628;
  box-shadow: 0 4px 20px rgba(200, 164, 90, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 164, 90, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(200, 164, 90, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Section 通用 */
.section {
  padding: 100px 24px;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(200, 164, 90, 0.1);
  color: var(--accent-light);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(200, 164, 90, 0.2);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* 卡片样式 */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(200, 164, 90, 0.05);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(200, 164, 90, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 统计数字 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 0.95rem;
}

.stat-sub {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 0.85rem;
}

/* 页面 Banner */
.page-banner {
  position: relative;
  padding: 140px 24px 80px;
  background: var(--gradient-hero);
  text-align: center;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 164, 90, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.page-banner h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #e8edf3 0%, #c8a45a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-banner p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* 双列布局 */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col img {
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* 特性列表 */
.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list .feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(200, 164, 90, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.feature-list .feature-text h4 {
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-list .feature-text p {
  color: var(--text-secondary);
  font-size: 0.925rem;
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 0 3px rgba(200, 164, 90, 0.3);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 0;
  font-size: 0.925rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual {
    order: -1;
  }
  .hero-visual img {
    max-width: 80%;
  }
  .hero-buttons {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-text h1 {
    font-size: 2.25rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .page-banner h1 {
    font-size: 2rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .section {
    padding: 64px 24px;
  }
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* 政策引用块 */
.quote-block {
  background: var(--gradient-card);
  border-left: 4px solid var(--accent);
  padding: 24px 32px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.quote-block .quote-text {
  font-size: 1.05rem;
  color: var(--accent-light);
  font-style: italic;
  line-height: 1.8;
}

.quote-block .quote-source {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* 映射表 */
.mapping-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.mapping-table th {
  background: var(--primary-dark);
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--border);
}

.mapping-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.mapping-table tr:last-child td {
  border-bottom: none;
}

.mapping-table tr:hover td {
  background: rgba(200, 164, 90, 0.03);
}

.mapping-table .check {
  color: var(--success);
  font-weight: 700;
}

/* 截图展示 */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.screenshot-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.screenshot-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-color: var(--accent);
}

.screenshot-card img {
  width: 100%;
  display: block;
}

.screenshot-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(10, 22, 40, 0.95));
  opacity: 0;
  transition: opacity 0.3s;
}

.screenshot-card:hover .overlay {
  opacity: 1;
}

.screenshot-card .overlay span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* 高亮文字 */
.highlight {
  color: var(--accent-light);
  font-weight: 600;
}

/* 徽章 */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 12px;
  margin-top: 8px;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.hero-badges {
  margin-top: 20px;
}

/* 投资卡片 */
.invest-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.invest-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.invest-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.invest-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.invest-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 下载区域 */
.download-content {
  text-align: center;
  padding: 40px 0;
}

.download-text h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.download-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.download-info {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.download-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(200, 164, 90, 0.1);
  color: var(--accent-light);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(200, 164, 90, 0.2);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.125rem;
}

.download-hint {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer 扩展 */
.footer-logo {
  height: 50px;
  width: 50px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 12px;
}

.footer-info {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-info span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* 分隔线 */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
  margin: 0 auto;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-light);
}

.breadcrumb .separator {
  color: var(--text-muted);
}
