/* ============================================================
   光年叙事（LightyearStory）· 全站统一样式表
   由各页面原内联 <style> 抽取合并而来，视觉设计保持原样。
   页面类型：body.landing（首页 / 服务页）/ body.content（内容页）
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --primary: #0F172A; --surface: #1E293B; --card-bg: #182232; --accent: #D97706; --accent-hover: #F59E0B;
  --text-main: #F8FAFC; --text-muted: #94A3B8; --white: #FFFFFF; --border-color: #334155; --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--text-main); background-color: var(--primary); line-height: 1.6; }
body.content { line-height: 1.8; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--white); }
.container { max-width: 1150px; margin: 0 auto; padding: 0 20px; }
body.content .container { max-width: 1000px; }

/* ---------- 顶部导航 ---------- */
header { background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-color); padding: 18px 0; position: sticky; top: 0; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
body.content .nav-container { max-width: 1150px; margin: 0 auto; padding: 0 20px; }
.logo { font-size: 22px; font-weight: 700; color: var(--white); text-decoration: none; font-family: 'Playfair Display', serif; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 15px; }
.lang-btn { background: var(--surface); border: 1px solid var(--border-color); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--text-main); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.lang-btn:hover { background: #2D3D54; }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; padding: 10px 22px; border-radius: 6px; font-weight: 600; text-decoration: none; transition: all 0.2s ease; cursor: pointer; }
.btn-primary { background-color: var(--accent); color: var(--white); border: none; }
.btn-primary:hover { background-color: var(--accent-hover); }

/* ---------- Hero（landing 为默认，content 覆盖） ---------- */
.hero { padding: 90px 0 60px; text-align: center; background: radial-gradient(circle at top, #1E293B 0%, #0F172A 100%); }
.hero-badge { display: inline-block; background: rgba(217, 119, 6, 0.15); color: var(--accent); border: 1px solid rgba(217, 119, 6, 0.3); padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: 42px; margin-bottom: 20px; line-height: 1.25; }
.hero p { font-size: 18px; color: var(--text-muted); max-width: 720px; margin: 0 auto 35px; }
body.content .hero { padding: 80px 0 50px; }
body.content .hero h1 { font-size: 40px; margin-bottom: 15px; line-height: normal; }
body.content .hero p { font-size: 17px; max-width: 700px; margin: 0 auto; }

/* ---------- 服务展示区（landing） ---------- */
.showcase-section { padding: 50px 0 80px; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; margin-bottom: 10px; }
.section-title p { color: var(--text-muted); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.feature-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 30px 25px; box-shadow: var(--card-shadow); transition: transform 0.3s ease, border-color 0.3s ease; text-decoration: none; display: block; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.card-icon { width: 54px; height: 54px; background: rgba(217, 119, 6, 0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 24px; margin-bottom: 20px; }
.feature-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--white); }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ---------- 内容区（content） ---------- */
.content-section { padding: 40px 0 20px; }
.card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 35px; box-shadow: var(--card-shadow); margin-bottom: 30px; }
.card h2 { font-size: 24px; margin-bottom: 20px; color: var(--accent); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.card h3 { font-size: 18px; margin: 20px 0 10px; color: var(--white); }
.card p, .card li { color: var(--text-muted); font-size: 15px; margin-bottom: 15px; }
.card p:last-child { margin-bottom: 0; }
body.testimony .card h2 { font-size: 22px; }
body.testimony .card h3 { margin: 25px 0 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.sub-box { background: var(--surface); padding: 20px; border-radius: 8px; border-left: 4px solid var(--accent); }
.sub-box h4 { color: var(--white); font-size: 16px; margin-bottom: 8px; }
.sub-box-wrap { margin-top: 20px; }
blockquote { border-left: 3px solid var(--accent); padding-left: 15px; margin: 15px 0; font-style: italic; color: var(--white); background: rgba(217, 119, 6, 0.05); padding: 10px 15px; border-radius: 0 8px 8px 0; }

/* ---------- 联系我们 ---------- */
.contact-section { padding: 80px 0; }
body.content .contact-section { padding: 40px 0 80px; }
.contact-card { background: linear-gradient(135deg, #1E293B 0%, #020617 100%); border: 1px solid var(--border-color); border-radius: 16px; padding: 50px 30px; text-align: center; box-shadow: var(--card-shadow); }
.contact-card h2 { color: var(--white); font-size: 32px; margin-bottom: 15px; }
.contact-card p { color: var(--text-muted); font-size: 16px; max-width: 580px; margin: 0 auto 30px; }
.email-box { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; max-width: 100%; overflow-wrap: anywhere; gap: 12px; background: var(--primary); border: 1px solid var(--accent); padding: 16px 28px; border-radius: 50px; color: var(--accent); font-size: 20px; font-weight: 600; text-decoration: none; transition: all 0.2s ease; }
.email-box:hover { background: var(--accent); color: var(--white); box-shadow: 0 10px 20px rgba(217, 119, 6, 0.25); }

/* ---------- 页脚 ---------- */
footer { text-align: center; padding: 30px 0; color: var(--text-muted); font-size: 14px; border-top: 1px solid var(--border-color); background: #0B1120; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .nav-container { flex-wrap: wrap; }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    order: 3;
    width: 100%;
    padding: 14px 0 4px;
    border-top: 1px solid var(--border-color);
  }
}

/* 小屏：邮箱按钮缩小字号与内边距，避免溢出卡片 */
@media (max-width: 640px) {
  .email-box { font-size: 16px; padding: 14px 20px; gap: 8px; }
}
