/* ===== 酷木库官网 - 科技蓝主题 ===== */

:root {
  --primary: #0066ff;           /* 科技蓝主色 */
  --primary-light: #3399ff;     /* 浅蓝 */
  --primary-dark: #091c3e;      /* 深海军蓝，用于页脚 */
  --primary-glow: rgba(0,102,255,0.35);
  --accent: #00e5ff;            /* 电光青 - 科技点缀 */
  --accent-dark: #00b8d4;
  --accent-glow: rgba(0,229,255,0.5);
  --text-dark: #0f172a;         /* slate-900 */
  --text-mid: #475569;          /* slate-600 */
  --text-light: #94a3b8;        /* slate-400 */
  --bg-light: #f4f7ff;          /* 冷调浅蓝灰背景 */
  --bg-white: #ffffff;
  --border: #e2e8f0;            /* slate-200 */
  --shadow-sm: 0 2px 8px rgba(0,102,255,0.06);
  --shadow-md: 0 8px 32px rgba(0,102,255,0.1);
  --shadow-lg: 0 16px 48px rgba(0,102,255,0.14);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.4);
  --glass-shadow: 0 8px 32px rgba(0,102,255,0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* 科技感网格背景 */
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,102,255,0.04), transparent),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(0,229,255,0.03), transparent),
    var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* 全局科技网格线 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,102,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

ul { list-style: none; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,102,255,0.08);
  transition: var(--transition);
  height: 70px;
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  border-bottom-color: rgba(0,102,255,0.15);
  box-shadow: 0 1px 20px rgba(0,102,255,0.06);
  background: rgba(255,255,255,0.92);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.nav-logo .logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  display: none;
  flex-shrink: 0;
}

.nav-logo span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-mid);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
  border-radius: 1px;
}

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

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

.nav-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white !important;
  padding: 8px 22px;
  border-radius: 24px;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}

.nav-btn::after { display: none !important; }

.nav-btn:hover {
  background: linear-gradient(135deg, #0052cc, var(--primary)) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-dark);
  font-size: 22px;
}

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

/* ===== 区块标题 ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0,102,255,0.08), rgba(0,229,255,0.06));
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(0,102,255,0.12);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 540px;
  margin: 0 auto;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3399ff);
  color: white;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0052cc, var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid rgba(0,102,255,0.3);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #091c3e;
  box-shadow: 0 4px 16px rgba(0,229,255,0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

/* ===== 卡片 ===== */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,102,255,0.14);
  border-color: rgba(0,102,255,0.2);
}

/* ===== 徽章/标签 ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-green {
  background: linear-gradient(135deg, rgba(0,102,255,0.1), rgba(0,229,255,0.08));
  color: var(--primary);
}

.badge-orange {
  background: rgba(0,229,255,0.12);
  color: var(--accent-dark);
}

/* ===== 页脚 ===== */
footer {
  background: linear-gradient(180deg, var(--primary-dark), #061428);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 32px;
  position: relative;
  overflow: hidden;
}

/* 页脚顶部科技光效 */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--primary), transparent);
  opacity: 0.6;
}

/* 页脚背景微光 */
footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,102,255,0.06), transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 0 16px var(--accent-glow);
}

.footer-brand .footer-logo span {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
  opacity: 0.75;
}

.footer-brands {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-brands span {
  background: rgba(0,229,255,0.12);
  color: rgba(0,229,255,0.85);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.footer-contact-item .icon {
  width: 28px;
  height: 28px;
  background: rgba(0,102,255,0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  position: relative;
  z-index: 1;
}
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-links-row {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-links-row a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links-row a:hover {
  color: var(--accent);
}
.link-sep {
  color: rgba(255,255,255,0.15);
}
.footer-extra-row {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 科技发光脉冲 */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 16px var(--primary-glow); }
  50% { box-shadow: 0 8px 32px var(--primary-glow), 0 0 40px rgba(0,229,255,0.15); }
}

/* 科技线扫描 */
@keyframes scanLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.7s 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; }

/* 滚动触发动画 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 语言切换按钮 ===== */
.lang-toggle-btn {
  background: transparent;
  border: 1.5px solid rgba(0,102,255,0.3);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
  line-height: 1;
}

.lang-toggle-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 12px var(--primary-glow);
}

/* ===== 数字/数据展示增强 ===== */
.num-highlight {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

/* 渐变分割线 */
.gradient-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,102,255,0.2), rgba(0,229,255,0.3), rgba(0,102,255,0.2), transparent);
  margin: 40px 0;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .section-title { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-row { flex-direction: column; gap: 8px; text-align: center; }

  /* 移动端导航展开 */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 480px) {
  .nav-logo span { font-size: 12px; letter-spacing: 0; }
}
