/* ============================================
   诺公子官网 - 品牌设计系统 v1
   主色: #065f46 / #047857 / #f0fdf4
   强调: #dc2626
   文字: #111827 / #6b7280
   ============================================ */

/* Reset */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
  color: #111827;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* Container */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ========== Navigation ========== */
.nav { position: fixed; top:0; left:0; right:0; z-index:100; background:#fff; border-bottom:1px solid #e5e7eb; height:56px; }
.nav-inner { max-width:1100px; margin:0 auto; padding:0 20px; display:flex; align-items:center; justify-content:space-between; height:100%; }
.nav-logo { display:flex; align-items:center; gap:8px; }
.nav-logo-icon { width:28px; height:28px; background:#065f46; border-radius:6px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:12px; font-weight:700; }
.nav-logo-text { font-size:16px; font-weight:700; color:#065f46; }
.nav-links { display:flex; gap:24px; font-size:14px; color:#4b5563; }
.nav-links a:hover { color:#065f46; }
.nav-links a.active { color:#065f46; font-weight:600; }

/* Hamburger (mobile) */
.hamburger { display:none; flex-direction:column; gap:4px; cursor:pointer; padding:4px; }
.hamburger span { width:20px; height:2px; background:#065f46; border-radius:2px; transition:0.3s; }

@media (max-width: 768px) {
  .nav-links { display:none; position:fixed; top:56px; left:0; right:0; background:#fff; flex-direction:column; padding:16px 20px; border-bottom:1px solid #e5e7eb; gap:12px; box-shadow:0 4px 12px rgba(0,0,0,.08); }
  .nav-links.open { display:flex; }
  .hamburger { display:flex; }
}

/* ========== Hero Section ========== */
.hero { padding: 100px 0 64px; background: linear-gradient(135deg, #065f46 0%, #047857 100%); color: #fff; text-align: center; }
.hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.hero .subtitle { font-size: 18px; color: rgba(255,255,255,.85); margin-bottom: 24px; }
.hero-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-badge { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 100px; padding: 4px 14px; font-size: 13px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary { display:inline-block; background:#fff; color:#065f46; border:none; border-radius:100px; padding:10px 28px; font-size:14px; font-weight:600; cursor:pointer; transition:0.2s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.btn-outline { display:inline-block; background:transparent; color:#fff; border:1px solid rgba(255,255,255,.4); border-radius:100px; padding:10px 28px; font-size:14px; cursor:pointer; transition:0.2s; }
.btn-outline:hover { border-color:#fff; background:rgba(255,255,255,.08); }

/* ========== Sections ========== */
.section { padding: 64px 0; }
.section-alt { background: #f9fafb; }
.section-green { background: #f0fdf4; }
.section-title { text-align: center; font-size: 22px; font-weight: 600; color: #065f46; margin-bottom: 36px; }

/* Grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 768px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Card */
.card { background: #fff; border-radius: 12px; padding: 24px; border: 1px solid #e5e7eb; transition: 0.2s; }
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.card-green { background: #f0fdf4; border-color: #d1fae5; }
.card-icon { font-size: 32px; margin-bottom: 8px; }
.card h3 { font-size: 16px; font-weight: 600; color: #065f46; margin-bottom: 4px; }
.card p { font-size: 14px; color: #6b7280; line-height: 1.6; }

/* Stats */
.stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; text-align: center; }
.stat-num { font-size: 28px; font-weight: 700; color: #065f46; }
.stat-label { font-size: 13px; color: #6b7280; margin-top: 2px; }

/* Footer */
.footer { background: #111827; color: #9ca3af; padding: 40px 0; text-align: center; font-size: 13px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.footer-links a { color: #9ca3af; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 11px; color: #6b7280; }

/* ========== Subpage Hero ========== */
.page-hero { padding: 100px 0 48px; background: linear-gradient(135deg, #065f46 0%, #047857 100%); color: #fff; text-align: center; }
.page-hero h1 { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto; }

/* Content */
.content { max-width: 800px; margin: 0 auto; }
.content h2 { font-size: 20px; color: #065f46; margin: 32px 0 12px; }
.content h3 { font-size: 16px; color: #111827; margin: 24px 0 8px; }
.content p { font-size: 15px; color: #4b5563; line-height: 1.8; margin-bottom: 16px; }
.content ul { padding-left: 20px; margin-bottom: 16px; }
.content ul li { font-size: 14px; color: #4b5563; line-height: 1.8; margin-bottom: 4px; }

/* Timeline (About page) */
.timeline { position: relative; padding-left: 32px; margin: 24px 0; }
.timeline::before { content:''; position:absolute; left:12px; top:0; bottom:0; width:2px; background:#d1fae5; }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item::before { content:''; position:absolute; left:-24px; top:4px; width:10px; height:10px; border-radius:50%; background:#065f46; border:2px solid #f0fdf4; }
.timeline-year { font-size: 13px; font-weight: 600; color: #065f46; }

/* CTA */
.cta { background: linear-gradient(135deg, #065f46 0%, #047857 100%); border-radius: 12px; padding: 48px 32px; text-align: center; color: #fff; position:relative; }
.cta h2 { font-size: 22px; margin-bottom: 8px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.15); }
.cta p { color: #fff; font-size: 15px; font-weight: 500; margin-bottom: 24px; letter-spacing: 1px; }
.cta-qrcodes { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; align-items: center; }
.timeline-text { font-size: 14px; color: #4b5563; }

/* FAQ */
.faq-item { border-bottom: 1px solid #e5e7eb; padding: 16px 0; }
.faq-q { font-weight: 600; font-size: 15px; color: #111827; margin-bottom: 4px; cursor: pointer; }
.faq-a { font-size: 14px; color: #4b5563; line-height: 1.7; }

/* Product card detail */
.product-card { display:flex; gap:20px; align-items:center; background:#fff; border-radius:12px; padding:24px; border:1px solid #e5e7eb; margin-bottom:16px; }
.product-icon { width:72px; height:72px; background:#f0fdf4; border-radius:12px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:28px; }
.product-info h3 { font-size:16px; color:#111827; margin-bottom:4px; }
.product-info p { font-size:13px; color:#6b7280; line-height:1.6; }
.product-tags { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.product-tag { background:#f0fdf4; color:#065f46; border-radius:100px; padding:2px 10px; font-size:11px; }
@media (max-width: 768px) { .product-card { flex-direction:column; text-align:center; } }

/* Article card (knowledge) */
.article-card { display:block; background:#fff; border-radius:12px; padding:20px; border:1px solid #e5e7eb; margin-bottom:12px; transition:0.2s; }
.article-card:hover { box-shadow:0 4px 12px rgba(0,0,0,.06); border-color:#d1fae5; }
.article-card .tag { display:inline-block; background:#f0fdf4; color:#065f46; border-radius:100px; padding:2px 10px; font-size:11px; margin-bottom:6px; }
.article-card h3 { font-size:15px; color:#111827; margin-bottom:4px; }
.article-card .meta { font-size:12px; color:#9ca3af; margin-bottom:4px; }
.article-card p { font-size:13px; color:#6b7280; line-height:1.6; }

/* 404 */
.error-page { text-align:center; padding:120px 20px; }
.error-page h1 { font-size:48px; color:#065f46; margin-bottom:8px; }
.error-page p { font-size:16px; color:#6b7280; margin-bottom:24px; }

/* Utility */
.text-center { text-align:center; }
.mt-12 { margin-top:12px; }
.mt-24 { margin-top:24px; }
.mb-12 { margin-bottom:12px; }
.mb-24 { margin-bottom:24px; }
