/* Diaoduzhe 官网：深色首屏 + 浅色正文；只用系统字体（与 tools/fonts.py 的字体栈一致），不加载任何外部资源 */
:root {
  --ink: #0b0d12;
  --ink-2: #151a24;
  --paper: #f4f5f7;
  --white: #ffffff;
  --text: #141820;
  --muted: #5b6372;
  --line: #e1e4ea;
  --accent: #3355ff;
  --accent-soft: #e8ecff;
  --on-dark: #eceff4;
  --on-dark-muted: #9aa3b5;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", "Songti SC", STSong, "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --radius: 14px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* 进度条与页头 */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; gap: 28px; transition: padding .3s; }
.top.scrolled { background: rgba(11, 13, 18, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.top.scrolled .top-in { padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-dark); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 650; letter-spacing: .01em; }
.brand-tag { color: var(--on-dark-muted); font-size: 13px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.18); }
.nav { margin-left: auto; display: flex; gap: 26px; }
.nav a { color: var(--on-dark-muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--on-dark); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; border: 1px solid var(--accent); transition: transform .25s, background .25s, box-shadow .25s; will-change: transform; }
.btn:hover { box-shadow: 0 10px 30px -10px rgba(51, 85, 255, .7); }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); box-shadow: none; }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 首屏 */
.hero { position: relative; background: radial-gradient(1200px 600px at 80% 20%, #1a2340 0%, transparent 60%), var(--ink); color: var(--on-dark); overflow: hidden; }
.hero-in { max-width: var(--wrap); margin: 0 auto; padding: 150px 24px 90px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: 760px; }
.hero-copy { position: relative; z-index: 2; max-width: 600px; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.hero .eyebrow { color: #8ea2ff; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.4vw, 70px); line-height: 1.05; letter-spacing: -.01em; }
.lede { margin-top: 26px; font-size: 19px; line-height: 1.6; color: var(--on-dark-muted); max-width: 34em; }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.proof { list-style: none; margin: 54px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(255,255,255,.1); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.proof b { display: block; font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1; color: #fff; }
.proof span { display: block; margin-top: 8px; font-size: 14px; color: var(--on-dark-muted); }

/* 首屏右侧的作品墙：三列错速滚动，倾斜透视。贴着首屏右半边铺满，用遮罩在左、上、下三边渐隐，导航和标题不被遮住 */
.wall { position: absolute; top: 0; bottom: 0; right: 0; width: 52%; overflow: hidden; z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 36%), linear-gradient(to bottom, transparent 0%, transparent 8%, #000 30%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 36%), linear-gradient(to bottom, transparent 0%, transparent 8%, #000 30%, #000 80%, transparent 100%);
  mask-composite: intersect; }
.wall-in { position: absolute; inset: -25% -14% -25% -4%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; transform: perspective(1600px) rotateX(18deg) rotateY(-16deg) rotateZ(6deg); transform-origin: 30% 50%; }
.col { display: flex; flex-direction: column; gap: 18px; animation: rise 70s linear infinite; }
.col-b { animation-name: fall; animation-duration: 80s; }
.col-c { animation-duration: 64s; }
.col img { border-radius: 10px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); width: 100%; height: auto; }
@keyframes rise { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes fall { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.wall:hover .col { animation-play-state: paused; }

/* 开场：标题逐词模糊上浮 */
.split .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.4em); animation: word .9s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes word { to { opacity: 1; filter: none; transform: none; } }
.js .hero .lede, .js .hero .cta-row, .js .hero .proof { opacity: 0; transform: translateY(14px); animation: lift .9s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero .lede { animation-delay: .7s; }
.js .hero .cta-row { animation-delay: .85s; }
.js .hero .proof { animation-delay: 1s; }
.js .wall { opacity: 0; animation: lift 1.4s .3s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes lift { to { opacity: 1; transform: none; } }

/* 滚动字幕 */
.ticker { background: var(--ink-2); color: var(--on-dark-muted); overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); }
.ticker-in { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { padding: 18px 28px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.ticker span::after { content: "·"; margin-left: 28px; color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* 通用段落 */
section { scroll-margin-top: 70px; }
.work, .why, .process, .plan, .faq, .contact { padding: 120px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2, .plan-copy h2, .contact h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.8vw, 50px); line-height: 1.1; letter-spacing: -.01em; }
.section-sub { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 36em; }

/* 作品网格 */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.card button { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(20, 24, 32, .45); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, filter .35s, opacity .35s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.card button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card img { aspect-ratio: 5 / 3; width: 100%; height: auto; object-fit: cover; }
.card-meta { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.card-meta b { font-size: 15px; font-weight: 600; }
.card-meta i { font-style: normal; font-size: 13px; color: var(--muted); }
.grid:hover .card button { filter: saturate(.35) brightness(.96); opacity: .7; }
.grid:hover .card button:hover { filter: none; opacity: 1; box-shadow: 0 1px 0 var(--line), 0 30px 60px -28px rgba(20, 24, 32, .6); }

/* 优势 */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.why-item { padding-top: 28px; border-top: 1px solid var(--line); }
.why-num { display: block; font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--accent); }
.why-item h3 { margin-top: 18px; font-size: 20px; font-weight: 650; }
.why-item p { margin-top: 12px; color: var(--muted); }

/* 流程 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.step { background: var(--white); border-radius: var(--radius); padding: 30px 26px; box-shadow: 0 1px 0 var(--line); }
.step-n { font-family: var(--serif); font-size: 15px; color: var(--accent); letter-spacing: .08em; }
.step h3 { margin-top: 14px; font-size: 19px; font-weight: 650; }
.step p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* 价格 */
.plan { background: var(--ink); color: var(--on-dark); }
.plan .eyebrow { color: #8ea2ff; }
.plan .section-sub { color: var(--on-dark-muted); }
.plan-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 60px; align-items: center; }
.plan-card { background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 36px; }
.plan-name { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.plan-price { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; }
.plan-price b { font-family: var(--serif); font-weight: 500; font-size: 56px; line-height: 1; color: #fff; }
.plan-price span { color: var(--on-dark-muted); }
.plan-list { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 12px; }
.plan-list li { position: relative; padding-left: 28px; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid #8ea2ff; border-bottom: 2px solid #8ea2ff; transform: rotate(-45deg); }
.plan-note { margin-top: 14px; font-size: 14px; color: var(--on-dark-muted); text-align: center; }

/* 常见问题 */
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; }
.faq-list { display: grid; gap: 0; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); max-width: 40em; }

/* 联系 */
.contact { background: var(--white); text-align: center; }
.contact-in { max-width: 760px; }
.contact .section-sub { margin-left: auto; margin-right: auto; }
.email-row { margin-top: 40px; display: inline-flex; align-items: baseline; gap: 16px; padding: 20px 30px; border-radius: 999px; background: var(--accent-soft); }
.email-label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.email { font-size: 22px; font-weight: 600; text-decoration: none; }
.email-pending { color: var(--muted); font-weight: 500; }

/* 页脚 */
.foot { background: var(--ink); color: var(--on-dark-muted); font-size: 14px; }
.foot-in { padding-top: 34px; padding-bottom: 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* 放大查看 */
.viewer { width: min(1100px, 94vw); padding: 0; border: 0; border-radius: 16px; background: var(--ink); color: var(--on-dark); box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.viewer::backdrop { background: rgba(8, 10, 14, .78); }
.viewer img { width: 100%; height: auto; }
.viewer-cap { padding: 14px 20px 18px; color: var(--on-dark-muted); font-size: 15px; }
.viewer-close { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }

/* 滚动出现（没有 JS 时内容照常可见） */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* 响应式 */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav, .brand-tag { display: none; }
  .top-in { gap: 14px; justify-content: space-between; }
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 120px; padding-bottom: 40px; min-height: 0; }
  /* 手机：作品墙放到文字下方，单独一块，只做上下渐隐 */
  .wall { position: relative; inset: auto; width: auto; height: 340px; margin: 34px -24px 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%); }
  .wall-in { inset: -45% -25% -45% -15%; transform: perspective(1200px) rotateX(20deg) rotateZ(-8deg); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .why-grid, .plan-in, .faq-in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .work, .why, .process, .plan, .faq, .contact { padding: 84px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .hero-in, .top-in { padding-left: 18px; padding-right: 18px; }
  .proof { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .proof li:last-child { grid-column: 1 / -1; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .email-row { flex-direction: column; align-items: center; gap: 6px; border-radius: 18px; }
  .btn-small { padding: 9px 14px; }
}

/* 404 页 */
.nf .hero-in { min-height: 70vh; grid-template-columns: minmax(0, 1fr); }
