/* ============================================
   Template 06 - 资源导航站
   主题：青蓝 + 纯白 / 清新导航风格
   配色：#0891b2 主色 / #fff 背景 / #f0fdfa 浅底
   ============================================ */

:root {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #22d3ee;
  --accent: #06b6d4;
  --bg: #ffffff;
  --bg-alt: #f0fdfa;
  --bg-dark: #083344;
  --text: #0f172a;
  --text-light: #475569;
  --text-muted: #94a3b8;
  --border: #e0f2f1;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(8,145,178,0.08);
  --shadow-hover: 0 12px 40px rgba(8,145,178,0.18);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* === 导航 === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 800; color: var(--primary);
  text-decoration: none;
}
.logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 18px;
}
.main-nav { display: flex; gap: 6px; }
.main-nav a {
  padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-light);
  text-decoration: none; transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--bg-alt); color: var(--primary);
}
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-menu-btn span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}

/* === Hero === */
.page-hero {
  margin-top: 72px;
  padding: 100px 24px 80px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, #e0f7fa 100%);
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(8,145,178,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero h1 {
  font-size: 48px; font-weight: 900; color: var(--primary-dark);
  margin-bottom: 20px; position: relative; z-index: 1;
}
.page-hero p {
  font-size: 18px; color: var(--text-light); max-width: 640px;
  margin: 0 auto 36px; position: relative; z-index: 1;
}
.page-hero .btn {
  position: relative; z-index: 1;
}

/* === 按钮 === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.3s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; box-shadow: 0 4px 20px rgba(8,145,178,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(8,145,178,0.4); }
.btn-outline {
  background: transparent; border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* === 内容区块 === */
.section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 36px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--text-light); max-width: 560px; margin: 0 auto; }

/* === 卡片网格 === */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* === 导航链接卡片（T06 特色）=== */
.nav-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; align-items: flex-start; gap: 20px;
  transition: all 0.3s; text-decoration: none; color: var(--text);
}
.nav-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateX(4px); }
.nav-card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; flex-shrink: 0;
}
.nav-card-content h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.nav-card-content p { font-size: 13px; color: var(--text-light); }

/* === 下载卡片 === */
.download-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; text-align: center;
  transition: all 0.3s;
}
.download-card.featured { border-color: var(--primary); background: var(--bg-alt); }
.download-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.download-card .os-icon { font-size: 48px; margin-bottom: 16px; }
.download-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.download-card .version { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.download-card .features { list-style: none; margin-bottom: 24px; text-align: left; }
.download-card .features li { font-size: 14px; color: var(--text-light); padding: 6px 0; padding-left: 20px; position: relative; }
.download-card .features li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* === FAQ === */
.faq-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  padding: 20px 24px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 16px; font-weight: 600; transition: background 0.2s;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-answer { padding: 0 24px 20px; font-size: 14px; color: var(--text-light); line-height: 1.8; display: none; }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question { color: var(--primary); }

/* === 文章 === */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.article-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.3s; text-decoration: none; color: var(--text);
}
.article-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: var(--primary-light); }
.article-card img { width: 100%; height: 200px; object-fit: cover; }
.article-card-body { padding: 24px; }
.article-card-tag {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: var(--bg-alt); color: var(--primary); font-size: 12px; font-weight: 600;
  margin-bottom: 12px;
}
.article-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.article-card-meta { font-size: 13px; color: var(--text-muted); }

/* === 文章详情 === */
.article-detail { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.article-detail .article-featured-img { width: 100%; border-radius: var(--radius-lg); margin-bottom: 36px; }
.article-body h2 { font-size: 28px; font-weight: 800; margin: 40px 0 20px; color: var(--primary-dark); }
.article-body h3 { font-size: 22px; font-weight: 700; margin: 32px 0 16px; }
.article-body p { font-size: 16px; line-height: 1.9; margin-bottom: 20px; color: var(--text-light); }
.article-body ul { margin: 16px 0 24px 20px; }
.article-body li { font-size: 15px; line-height: 1.8; margin-bottom: 8px; color: var(--text-light); }
.article-body blockquote {
  border-left: 4px solid var(--primary); padding: 16px 24px;
  background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text-light); margin: 24px 0;
}

/* === 联系表单 === */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1000px; margin: 0 auto; }
.contact-info-item {
  display: flex; gap: 16px; margin-bottom: 28px;
}
.contact-info-item .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 15px; font-family: inherit;
  transition: border-color 0.2s; margin-bottom: 16px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }

/* === 页脚 === */
.site-footer {
  background: var(--bg-dark); color: rgba(255,255,255,0.7);
  padding: 64px 24px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.footer-brand span { color: var(--primary-light); }
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.footer-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.wechat-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 20px;
  font-size: 13px;
}

/* === 悬浮客服 === */
.float-service {
  position: fixed; right: 24px; bottom: 24px; z-index: 9999;
}
.float-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none; color: #fff; font-size: 24px;
  cursor: pointer; box-shadow: 0 8px 30px rgba(8,145,178,0.4);
  transition: all 0.3s; display: flex; align-items: center; justify-content: center;
}
.float-btn:hover { transform: scale(1.1); }
.service-panel {
  position: absolute; right: 0; bottom: 76px;
  width: 320px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  overflow: hidden; display: none;
}
.service-panel.show { display: block; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.panel-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; padding: 20px; position: relative;
}
.panel-header h3 { font-size: 16px; margin-bottom: 6px; }
.panel-header p { font-size: 12px; opacity: 0.85; }
.panel-close {
  position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.2);
  border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.panel-body { padding: 20px; }
.panel-tip { font-size: 13px; color: var(--text-light); margin-bottom: 16px; line-height: 1.6; }
.wechat-id {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.wechat-id code { font-size: 18px; font-weight: 700; color: var(--primary); }
.copy-btn {
  padding: 6px 16px; border-radius: 8px; border: none;
  background: var(--primary); color: #fff; font-size: 13px;
  cursor: pointer; transition: background 0.2s;
}
.copy-btn:hover { background: var(--primary-dark); }
.copy-btn.copied { background: #10b981; }
.panel-features { display: flex; gap: 8px; flex-wrap: wrap; }
.panel-features span {
  padding: 4px 10px; border-radius: 20px;
  background: var(--bg-alt); color: var(--primary); font-size: 11px;
}

/* === Breadcrumb === */
.breadcrumb-wrapper { max-width: 1200px; margin: 0 auto; padding: 16px 24px; }
.breadcrumb { font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* === 响应式 === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 16px; }
  .main-nav.open { display: flex; }
  .mobile-menu-btn { display: flex; }
  .page-hero h1 { font-size: 32px; }
  .page-hero p { font-size: 15px; }
  .section { padding: 56px 20px; }
  .section-header h2 { font-size: 28px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .service-panel { width: 280px; right: -10px; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .page-hero { padding: 72px 16px 56px; }
  .page-hero h1 { font-size: 26px; }
  .article-grid { grid-template-columns: 1fr; }
}
