/* ============================================================
   我的数据测试 · jyh7081.com 主站样式
   设计基调：与「英语单词天天练」一致的蓝色渐变 + 浅色卡片风
   ============================================================ */
:root {
  --c-primary: #1565C0;
  --c-primary-dark: #0D47A1;
  --c-primary-deep: #0B3D7E;
  --c-accent: #00897B;
  --c-text: #212121;
  --c-text-2: #5f6b7a;
  --c-text-3: #8a94a3;
  --c-bg: #ffffff;
  --c-surface: #F5F7FA;
  --c-border: #E4E9F0;
  --c-grad: linear-gradient(135deg, #0F4C9E 0%, #1565C0 55%, #1E88E5 100%);
  --shadow-sm: 0 2px 8px rgba(13, 71, 161, .08);
  --shadow-md: 0 10px 30px rgba(13, 71, 161, .12);
  --shadow-lg: 0 24px 60px rgba(11, 61, 126, .18);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--c-text); }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--c-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
}
.brand small { font-weight: 400; color: var(--c-text-3); font-size: 12px; display: block; line-height: 1.2; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--c-text-2); font-size: 15px; transition: color .2s; }
.main-nav a:hover { color: var(--c-primary); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--c-grad); color: #fff; box-shadow: 0 6px 18px rgba(21, 101, 192, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21, 101, 192, .42); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-outline { background: #fff; color: var(--c-primary); border: 1px solid var(--c-primary); }
.btn-outline:hover { background: var(--c-surface); }
.nav-toggle { display: none; margin-left: auto; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-text); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 72px) 0 90px;
  background: var(--c-grad);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.hero::before { width: 520px; height: 520px; top: -220px; right: -120px; }
.hero::after { width: 380px; height: 380px; bottom: -200px; left: -140px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255,255,255,.35);
  padding: 6px 16px; border-radius: 999px; font-size: 14px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.25; letter-spacing: .02em; }
.hero h1 .highlight { color: #B3E5FC; }
.hero-sub { margin: 18px 0 30px; font-size: 17px; color: rgba(255, 255, 255, .88); max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.chip {
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px; border-radius: 999px; font-size: 13.5px; color: rgba(255,255,255,.95);
}
/* 浏览器窗口样式的产品截图 */
.browser-frame {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .5s;
}
.browser-frame:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.browser-bar { background: #EEF2F7; padding: 9px 14px; display: flex; align-items: center; gap: 8px; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar .url { margin-left: 8px; flex: 1; background: #fff; border-radius: 6px; font-size: 12px; color: var(--c-text-3); padding: 3px 10px; font-family: Consolas, monospace; }
.browser-frame img { width: 100%; }

/* ---------- 通用 Section ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--c-surface); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .kicker { color: var(--c-primary); font-weight: 700; font-size: 14px; letter-spacing: .2em; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 10px 0 14px; }
.section-head p { color: var(--c-text-2); }

/* ---------- 作品卡片 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.work-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-surface); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(13, 71, 161, .92); color: #fff;
  font-size: 12.5px; padding: 4px 12px; border-radius: 999px;
}
.work-tag.tag-doc { background: rgba(0, 137, 123, .92); }
.work-tag.tag-tool { background: rgba(94, 53, 177, .9); }
.work-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work-body h3 { font-size: 20px; }
.work-body p { color: var(--c-text-2); font-size: 14.5px; flex: 1; }
.work-link { font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.work-link::after { content: "→"; transition: transform .2s; }
.work-link:hover::after { transform: translateX(4px); }
/* 下架态文字（无链接） */
.work-link.is-soon { color: var(--c-text-3); font-weight: 500; }
.work-link.is-soon::after { content: ""; }
/* 作品仅一张卡片时居中收窄，避免半幅空白 */
.works-grid-single { grid-template-columns: minmax(0, 720px); justify-content: center; }

/* ---------- 视频 ---------- */
.video-shell { max-width: 900px; margin: 0 auto; }
.video-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--c-border);
}
.video-card video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #0B3D7E; }
.video-frame { position: relative; }
.video-play-hint {
  position: absolute; inset: 0; border: none; cursor: pointer;
  background: rgba(11, 40, 84, .35);
  color: #fff; font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit;
  transition: background .25s;
}
.video-play-hint span {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .92); color: var(--c-primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; padding-left: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  transition: transform .25s;
}
.video-play-hint:hover { background: rgba(11, 40, 84, .5); }
.video-play-hint:hover span { transform: scale(1.08); }
.video-card.playing .video-play-hint { display: none; }
.video-caption { padding: 16px 22px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.video-caption b { font-size: 16px; }
.video-caption span { color: var(--c-text-3); font-size: 13.5px; }
/* 视频占位（内容整理中） */
.video-frame.video-soon {
  aspect-ratio: 16 / 9; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center;
  background: linear-gradient(135deg, #EAF2FC, #D8E7FA);
  border-bottom: 1px solid var(--c-border);
}
.video-soon-icon { font-size: 44px; line-height: 1; margin-bottom: 6px; }
.video-frame.video-soon b { font-size: 20px; color: var(--c-primary-dark); }
.video-frame.video-soon small { color: var(--c-text-3); font-size: 13.5px; }

/* ---------- 使用手册 ---------- */
.manual-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.manual-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.manual-chips .chip { background: #fff; border-color: var(--c-border); color: var(--c-text-2); }
.manual-note-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.manual-note-card h3 { font-size: 19px; margin-bottom: 14px; }
.manual-note-card ol { margin: 0 0 22px 1.3em; color: var(--c-text-2); font-size: 15px; }
.manual-note-card ol li { margin-bottom: 6px; }

/* ---------- 关于我 ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.about-id { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; flex: none;
  background: var(--c-grad); color: #fff; font-size: 30px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.about-id h3 { font-size: 24px; }
.about-id p { color: var(--c-text-3); font-size: 14px; }
.about-text p { color: var(--c-text-2); margin-bottom: 14px; }
.about-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: 30px 32px; box-shadow: var(--shadow-sm);
}
.about-card h4 { font-size: 15px; color: var(--c-text-3); font-weight: 600; letter-spacing: .08em; margin-bottom: 14px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.skill-chips .chip { background: var(--c-surface); border-color: var(--c-border); color: var(--c-text-2); }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--c-border); font-size: 15px; }
.contact-row b { color: var(--c-text-3); font-weight: 500; width: 4.5em; flex: none; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0B2E5F; color: rgba(255, 255, 255, .82); margin-top: 20px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 44px 0 30px; }
.footer-brand { max-width: 380px; }
.footer-brand .brand { color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.62); }
.footer-nav { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.footer-nav a { color: rgba(255, 255, 255, .75); font-size: 14.5px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.footer-bottom a { color: rgba(255, 255, 255, .72); }
.footer-bottom a:hover { color: #fff; }

/* ---------- 协议 / 隐私政策（长文阅读页） ---------- */
.container-narrow { max-width: 860px; }
.legal-page { padding: calc(var(--header-h) + 52px) 0 80px; }
.prose h1 { font-size: clamp(26px, 3.6vw, 32px); margin-bottom: 10px; }
.prose .meta { color: var(--c-text-3); font-size: 13.5px; margin-bottom: 36px; line-height: 1.9; }
.prose h2 { font-size: 19px; margin: 36px 0 12px; padding-left: 12px; border-left: 4px solid var(--c-primary); }
.prose h3 { font-size: 16px; margin: 20px 0 8px; }
.prose p, .prose li { color: #3c4654; font-size: 15px; }
.prose p { margin-bottom: 12px; }
.prose ul, .prose ol { margin: 0 0 14px 1.4em; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--c-text); }
.prose .callout { background: var(--c-surface); border-left: 3px solid var(--c-accent); padding: 14px 18px; border-radius: 0 10px 10px 0; margin-bottom: 18px; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .todo { background: #FFF8E1; border-bottom: 1px dashed #F9A825; padding: 0 4px; border-radius: 3px; color: #7a5300; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.prose th { background: var(--c-surface); text-align: left; white-space: nowrap; }
.prose th, .prose td { border: 1px solid var(--c-border); padding: 9px 14px; font-size: 14.5px; vertical-align: top; color: #3c4654; }
.legal-links { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--c-border); font-size: 14px; color: var(--c-text-3); }
.legal-links a { margin-right: 16px; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid, .manual-panel, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-bottom: 64px; }
  .browser-frame { transform: none; }
  .works-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 760px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--c-border);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 18px; box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--c-border); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
