/* Template 08 - 攻略指南 (Guide/Strategy Style) */
/* Theme: Green #22c55e + natural light */

:root {
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --primary-light: #4ade80;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --bg: #f0fdf4;
  --bg-alt: #dcfce7;
  --bg-card: #ffffff;
  --bg-card-hover: #f0fdf4;
  --text: #14532d;
  --text-light: #4b5563;
  --text-muted: #9ca3af;
  --border: #bbf7d0;
  --border-light: #d1fae5;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(34,197,94,0.08);
  --shadow-lg: 0 8px 32px rgba(34,197,94,0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--primary-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

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

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--text); }
.logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900;
}
.logo span { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--text-light); transition: all var(--transition);
}
.main-nav a:hover { background: var(--bg-alt); color: var(--primary-dark); }
.main-nav a.active { background: var(--bg-alt); color: var(--primary-dark); }

.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 var(--transition); }

/* ===== HERO ===== */
.page-hero {
  padding: 120px 24px 80px; text-align: center;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
  position: relative; overflow: hidden;
}
.page-hero h1 { font-size: 48px; font-weight: 900; color: var(--text); margin-bottom: 20px; line-height: 1.2; }
.page-hero .hero-desc {
  font-size: 16px; color: var(--text-light); max-width: 700px; margin: 0 auto 32px; line-height: 1.8;
}

/* ===== SECTION ===== */
.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: 32px; 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 ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.nav-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--border-light);
  transition: all var(--transition); position: relative; overflow: hidden;
}
.nav-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.nav-card-icon { font-size: 40px; margin-bottom: 20px; }
.nav-card h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.nav-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* Guide card */
.guide-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.guide-card-img {
  height: 180px; background: linear-gradient(135deg, #22c55e, #4ade80);
  display: flex; align-items: center; justify-content: center; font-size: 48px; color: #fff;
}
.guide-card-body { padding: 24px; }
.guide-card-body h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.guide-card-body p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.guide-card-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); }

/* ===== ARTICLE GRID ===== */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.article-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.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-dark); font-size: 12px; font-weight: 600;
  margin-bottom: 12px;
}
.article-card-body h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.4; }
.article-card-meta { font-size: 13px; color: var(--text-muted); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px; font-size: 14px; font-weight: 700;
  border: none; cursor: pointer; transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, #22c55e, #4ade80); color: #fff;
  box-shadow: 0 4px 16px rgba(34,197,94,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(34,197,94,0.4); }
.btn-outline {
  background: transparent; color: var(--primary-dark); border: 2px solid var(--primary-light);
}
.btn-outline:hover { background: var(--bg-alt); }

/* ===== DOWNLOAD CARDS ===== */
.download-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.download-card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 40px 32px; text-align: center;
  border: 2px solid var(--border-light); transition: all var(--transition);
}
.download-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.download-card-icon { font-size: 56px; margin-bottom: 20px; }
.download-card h3 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.download-card p { font-size: 14px; color: var(--text-light); margin-bottom: 24px; }
.download-card .version { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border-radius: var(--radius); margin-bottom: 16px;
  border: 1px solid var(--border-light); overflow: hidden;
}
.faq-q {
  padding: 20px 24px; font-size: 16px; font-weight: 700; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--bg-alt); }
.faq-q .arrow { transition: transform var(--transition); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { padding: 0 24px 20px; font-size: 14px; color: var(--text-light); line-height: 1.8; display: none; }
.faq-item.open .faq-a { display: block; }

/* ===== CONTACT FORM ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form label { font-size: 14px; font-weight: 600; color: var(--text); }
.contact-form input, .contact-form textarea {
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; background: var(--bg-card); color: var(--text);
  transition: border-color var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-info-card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--border-light);
}
.contact-info-card h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 16px; font-size: 14px; color: var(--text-light); }

/* ===== FOOTER ===== */
.site-footer {
  background: #14532d; color: rgba(255,255,255,0.8); 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: 22px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.footer-brand span { color: #4ade80; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 20px; line-height: 1.7; }
.wechat-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 8px;
  background: rgba(74,222,128,0.15); color: #4ade80; font-size: 14px; font-weight: 600;
}
.footer-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; transition: color var(--transition); }
.footer-links a:hover { color: #4ade80; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.5);
}

/* ===== FLOAT SERVICE ===== */
.float-service { position: fixed; right: 24px; bottom: 24px; z-index: 9999; }
.float-btn {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #4ade80); color: #fff; font-size: 24px;
  box-shadow: 0 4px 20px rgba(34,197,94,0.4); transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.float-btn:hover { transform: scale(1.1); }
.service-panel {
  position: absolute; right: 0; bottom: 72px; width: 340px;
  background: #fff; border-radius: var(--radius); box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  overflow: hidden; transform: scale(0.9); opacity: 0; pointer-events: none;
  transform-origin: bottom right; transition: all var(--transition);
}
.service-panel.show { transform: scale(1); opacity: 1; pointer-events: auto; }
.panel-header {
  background: linear-gradient(135deg, #22c55e, #4ade80); color: #fff;
  padding: 24px; position: relative;
}
.panel-header h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.panel-header p { font-size: 13px; opacity: 0.85; }
.panel-close {
  position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.2);
  border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center;
}
.panel-body { padding: 24px; }
.panel-tip { font-size: 13px; color: #4b5563; margin-bottom: 16px; line-height: 1.6; }
.wechat-id {
  display: flex; align-items: center; justify-content: space-between;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px;
  padding: 12px 16px; margin-bottom: 20px;
}
.wechat-id code { font-size: 20px; font-weight: 800; color: #16a34a; letter-spacing: 2px; }
.copy-btn {
  padding: 6px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
  background: linear-gradient(135deg, #22c55e, #4ade80); color: #fff;
  border: none; cursor: pointer; transition: all var(--transition);
}
.copy-btn:hover { transform: scale(1.05); }
.panel-features { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-features span {
  padding: 4px 12px; border-radius: 20px; background: #f0fdf4;
  color: #16a34a; font-size: 12px; font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: #fff;
    padding: 16px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .mobile-menu-btn { display: flex; }
  .page-hero h1 { font-size: 32px; }
  .page-hero { padding: 100px 20px 60px; }
  .section { padding: 60px 20px; }
  .section-header h2 { font-size: 26px; }
  .card-grid, .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-panel { width: 300px; right: -10px; }
}
@media (max-width: 480px) {
  .page-hero h1 { font-size: 26px; }
  .header-inner { padding: 0 16px; }
  .service-panel { width: 280px; }
}
