/* ============================================================
   永昼手记 Everday Notes · 个人站全站样式
   TASK-005 fe 交付 · 纯静态 · 零框架 · 零 CDN · 零外链字体
   规范：agents/artist/knowledge/web-design-spec.md
   品牌雷区：禁止红色实心圆日（太阳一律 #F6A21A 系 + 地平线/光芒语境）
   ============================================================ */

:root {
  /* 色彩系统（与定稿素材一致） */
  --brand-gold: #F6A21A;
  --brand-gold-bright: #F1A525;
  --brand-navy: #1E2F63;
  --brand-navy-deep: #0D225F;
  --brand-navy-night: #04103B;
  --ink: #1A2856;
  --ink-soft: #5A6B8C;
  --bg-paper: #FFFFFF;
  --horizon: #FFFFFF;
  --line: rgba(255, 255, 255, .16);     /* 深底描边 */
  --line-light: #E4E9F2;                 /* 浅底描边 */

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* 阴影（规范统一） */
  --shadow-sm: 0 4px 12px rgba(4, 16, 59, .10);
  --shadow-lg: 0 12px 32px rgba(4, 16, 59, .14);
  --shadow-hover: 0 8px 24px rgba(13, 34, 95, .08);

  /* 安全边距：桌面 80 / 平板 48 / 移动 24 */
  --pad-desktop: 80px;
  --pad-tablet: 48px;
  --pad-mobile: 24px;

  /* 区块间距：桌面 96 / 移动 64 */
  --section-desktop: 96px;
  --section-mobile: 64px;
}

/* ---------- 重置与基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;   /* 防横向滚动兜底 */
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-paper);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: rgba(246, 162, 26, .35); }

/* 无障碍：跳过链接 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--brand-navy);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 排版层级 ---------- */
.hero-title {
  font-size: clamp(40px, 9vw, 56px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .5px;
}
.h1 { font-size: clamp(30px, 7vw, 40px); line-height: 1.25; font-weight: 700; }
.h2 { font-size: clamp(24px, 5vw, 32px); line-height: 1.3; font-weight: 600; }
.h3 { font-size: clamp(20px, 4vw, 24px); line-height: 1.35; font-weight: 600; }
.h4 { font-size: 18px; line-height: 1.4; font-weight: 600; }
.body { font-size: 16px; line-height: 1.6; }
.small { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.caption { font-size: 12px; line-height: 1.5; color: var(--ink-soft); }

/* 深底文字 */
.on-dark { color: rgba(255, 255, 255, .92); }
.on-dark-2nd { color: rgba(255, 255, 255, .65); }

/* ---------- 布局工具 ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--pad-mobile);
  padding-right: var(--pad-mobile);
}

.section { padding: var(--section-mobile) 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { margin-top: 12px; }

/* 金色主题点缀条 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--brand-gold);
  border-radius: 2px;
}

/* 太阳符号（金橙，禁止红色） */
.sun { color: var(--brand-gold); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--brand-gold); color: var(--brand-navy-deep); box-shadow: 0 6px 20px rgba(246, 162, 26, .35); }
.btn-gold:hover { background: var(--brand-gold-bright); box-shadow: 0 8px 28px rgba(246, 162, 26, .45); }

.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .65); }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.btn-navy { background: var(--brand-navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-navy:hover { background: var(--brand-navy-deep); box-shadow: var(--shadow-lg); }

.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-sm { padding: 9px 20px; font-size: 14px; }

[hidden] { display: none !important; }

/* ============================================================
   PART2 顶部导航（统一，含手机汉堡菜单）
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 16, 59, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

/* 品牌区：优先带字横版 Logo，缺失时 onerror 切文字徽标 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}
.brand-logo { height: 36px; width: auto; }
.brand-mark { height: 36px; width: 36px; border-radius: 50%; flex-shrink: 0; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: #fff;
}
.brand-text strong { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.brand-text span { font-size: 11px; letter-spacing: 2px; color: var(--brand-gold); }

/* 汉堡按钮（手机） */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 导航列表：手机默认收起，桌面横排 */
.nav-list {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 16px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.nav-list.is-open { display: flex; }
.nav-list a {
  display: block;
  padding: 12px 4px;
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
  border-radius: var(--radius-sm);
  transition: color .15s ease, background .15s ease;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--brand-gold); }
.nav-list a.nav-cta {
  margin-top: 8px;
  color: var(--brand-navy-deep);
  background: var(--brand-gold);
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-pill);
  padding: 11px 20px;
}
.nav-list a.nav-cta:hover { background: var(--brand-gold-bright); color: var(--brand-navy-deep); }

/* 手机菜单展开时允许内容撑开 */
.site-header.menu-open .nav-inner { flex-wrap: wrap; }

/* ============================================================
   PART3 首屏 Hero
   深蓝→金橙 CSS 渐变兜底 + 主视觉图（多层 background 叠加）。
   图片不存在时浏览器自动丢弃 url 层、保留渐变——不报错不破版。
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: var(--brand-navy-deep);
  background-image:
    linear-gradient(165deg, rgba(13, 34, 95, .78) 0%, rgba(4, 16, 59, .86) 52%, rgba(246, 162, 26, .42) 100%),
    url("../img/web-hero-main.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 56px;
  padding-bottom: 72px;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(4, 16, 59, .4);
}
.hero-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.hero-brand-text strong { font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.hero-brand-text span { font-size: 12px; letter-spacing: 3px; color: var(--brand-gold); }

.hero-title { margin-bottom: 18px; text-shadow: 0 2px 18px rgba(4, 16, 59, .35); }
.hero-title em { font-style: normal; color: var(--brand-gold); }
.hero-sub {
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
  max-width: 640px;
  margin-bottom: 10px;
}
.hero-short { font-size: 15px; color: var(--brand-gold); font-weight: 600; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 auto; min-width: 148px; }

/* 兜底装饰：金橙半日（光芒语境）+ 地平线——出现即证明 bg 图未加载 */
.hero.is-fallback::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: 0;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 50% 100%,
              rgba(246, 162, 26, .55) 0%,
              rgba(246, 162, 26, .18) 45%,
              rgba(246, 162, 26, 0) 70%);
  pointer-events: none;
}
.hero.is-fallback::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 96px;
  height: 2px;
  background: linear-gradient(90deg,
              rgba(255, 255, 255, 0) 0%,
              rgba(255, 255, 255, .55) 35%,
              rgba(241, 165, 37, .95) 75%,
              rgba(241, 165, 37, 0) 100%);
  pointer-events: none;
}

/* 内页头图 banner */
.page-hero {
  position: relative;
  color: #fff;
  background-color: var(--brand-navy-deep);
  background-image: linear-gradient(150deg, var(--brand-navy-deep) 0%, var(--brand-navy-night) 78%, rgba(246, 162, 26, .30) 100%);
  padding: 48px 0 52px;
}
.page-hero .eyebrow { color: var(--brand-gold); }
.page-hero p {
  margin-top: 14px;
  max-width: 700px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(15px, 4vw, 17px);
}

/* ============================================================
   PART4 卡片系统 / 能力 / 服务
   ============================================================ */
.cap-cards { display: grid; grid-template-columns: 1fr; gap: 24px; }
.cap-card {
  background: var(--bg-paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.cap-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(246, 162, 26, .55);
  transform: translateY(-2px);
}
.cap-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-navy-night) 100%);
  color: var(--brand-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.cap-card h3 { margin-bottom: 8px; }
.cap-card p { font-size: 15px; color: var(--ink-soft); }

/* 能力摘要（首页）—— 图标用 emoji，禁止色块外链图片 */
.cap-emojis { font-size: 24px; }

/* 统计条 */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { text-align: center; padding: 20px 8px; }
.stat strong { display: block; font-size: clamp(28px, 6vw, 40px); color: var(--brand-gold); line-height: 1.2; }
.stat span { font-size: 13px; color: var(--ink-soft); }

/* ============================================================
   PART5 团队页
   ============================================================ */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.team-card {
  background: var(--bg-paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow .2s ease, transform .2s ease;
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.team-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid rgba(246, 162, 26, .35);
  box-shadow: var(--shadow-sm);
}
.team-card h3 { font-size: 20px; font-weight: 700; }
.team-role {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 12px;
  background: rgba(246, 162, 26, .14);
  color: #b97a0a;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
}
.team-card p { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.team-note { margin-top: 48px; text-align: center; font-size: 15px; color: var(--ink-soft); }

/* ============================================================
   PART6 画廊页
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-light);
  background: var(--bg-paper);
  transition: box-shadow .2s ease, transform .2s ease;
}
.gallery-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.gallery-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gallery-card figure { margin: 0; }
.gallery-card figcaption { padding: 16px 20px; font-size: 14px; color: var(--ink); }
.gallery-card figcaption span { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-soft); }
.gallery-cta { margin-top: 48px; text-align: center; }
.gallery-cta p { margin-bottom: 16px; color: var(--ink-soft); }

/* ============================================================
   PART7 联系页 / 微信一键复制
   ============================================================ */
.contact-panel {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(165deg, var(--brand-navy-deep) 0%, var(--brand-navy-night) 88%, rgba(246, 162, 26, .32) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  color: #fff;
}
.contact-panel h2 { color: #fff; margin-bottom: 12px; }
.contact-panel .sub { color: rgba(255, 255, 255, .75); margin-bottom: 32px; }

.wechat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}
.wechat-id {
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1.2;
  word-break: break-all;
  background: rgba(255, 255, 255, .08);
  border: 1px dashed rgba(246, 162, 26, .6);
  padding: 8px 20px;
  border-radius: var(--radius-md);
}
.btn-copy {
  background: var(--brand-gold);
  color: var(--brand-navy-deep);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px rgba(246, 162, 26, .35);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-copy:hover { background: var(--brand-gold-bright); }
.btn-copy.copied { background: #34a853; color: #fff; box-shadow: 0 6px 20px rgba(52, 168, 83, .35); }
.btn-copy.failed { background: #b45309; color: #fff; }
.copy-tip { min-height: 20px; font-size: 14px; color: rgba(255, 255, 255, .8); }

.contact-qr { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-qr .qr-placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 2px dashed rgba(255, 255, 255, .35);
  border-radius: var(--radius-md);
  padding: 24px 36px;
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
}
.contact-qr .qr-placeholder::before {
  content: "";
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(0deg, rgba(246, 162, 26, .35) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(90deg, rgba(246, 162, 26, .35) 0 6px, transparent 6px 12px);
  opacity: .85;
}
.offline-line { margin-top: 32px; font-size: 17px; color: var(--brand-gold); font-weight: 600; }

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
}
.contact-meta b { color: var(--brand-gold); font-weight: 600; }

/* ============================================================
   PART8 关于我们 / 横幅
   ============================================================ */
.story-block { display: grid; gap: 40px; }
.story-text p { margin-bottom: 16px; color: var(--ink-soft); }
.story-text p strong { color: var(--ink); }
.story-card {
  background: var(--brand-navy);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  color: #fff;
}
.story-card h3 { color: var(--brand-gold); }
.story-card p { margin-top: 10px; color: rgba(255, 255, 255, .82); }

.slogan-banner {
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--brand-navy-deep) 0%, var(--brand-navy-night) 70%, rgba(246, 162, 26, .35) 100%);
  color: #fff;
}
.slogan-banner .hero-title { margin-bottom: 16px; }
.slogan-banner p { color: rgba(255, 255, 255, .8); font-size: 16px; }

/* ============================================================
   PART9 页脚（统一底部，含微信入口）
   ============================================================ */
.site-footer {
  margin-top: auto;
  background: var(--brand-navy-night);
  color: rgba(255, 255, 255, .82);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  gap: 32px;
  padding: 48px 0 32px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand span { font-weight: 700; letter-spacing: 1px; }
.footer-desc { font-size: 14px; color: rgba(255, 255, 255, .6); max-width: 340px; }
.footer-col h4 {
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--brand-gold);
  margin-bottom: 14px;
}
.footer-col a,
.footer-col span {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--brand-gold); }
.footer-wechat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}

/* ============================================================
   PART10 响应式断点（mobile-first：375 无横向滚动 → 1280 桌面）
   ============================================================ */
@media (min-width: 640px) {
  .container { padding-left: var(--pad-tablet); padding-right: var(--pad-tablet); }
  .cap-cards { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .contact-panel { padding: 56px 48px; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-header.menu-open .nav-inner { flex-wrap: nowrap; }
  .nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    width: auto;
    padding: 0;
    border-top: none;
  }
  .nav-list a { padding: 0; }
  .nav-list a.nav-cta { margin: 0; padding: 9px 20px; }
  .hero-inner { padding-top: 96px; padding-bottom: 120px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .page-hero { padding: 64px 0; }
  .section-head { margin-bottom: 56px; }
  .section { padding: var(--section-desktop) 0; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .story-block { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .contact-panel { padding: 72px 64px; }
}

@media (min-width: 1280px) {
  .container { padding-left: var(--pad-desktop); padding-right: var(--pad-desktop); }
  .cap-cards { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 打印友好 */
@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .btn-copy { display: none; }
  body { background: #fff; color: #000; }
}