:root {
  color-scheme: light;
  --paper: #fbfaf8;
  --surface: #fff;
  --ink: #1e1b2d;
  --muted: #625e70;
  --line: #e6e2eb;
  --accent: #5040ad;
  --accent-deep: #3b2d91;
  --soft: #f0edff;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --display: "Iowan Old Style", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  font: 15px/1.6 var(--font);
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #8975f7; outline-offset: 3px; }
h1,h2,h3,p { margin: 0; }
section[id] { scroll-margin-top: 90px; }
.shell { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: -90px; left: 12px; z-index: 5; padding: .6rem; background: white; }
.skip:focus { top: 8px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.nav { display: flex; min-height: 72px; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 17px; font-weight: 750; white-space: nowrap; }
.brand-mark { display: flex; align-items: center; justify-content: center; gap: 2px; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); transform: rotate(-5deg); }
.brand-mark i { background: #fff; width: 3px; height: 12px; border-radius: 2px; }
.brand-mark i:first-child { height: 8px; }
.brand-mark i:last-child { height: 16px; }
.nav nav, .footer-inner nav { display: flex; align-items: center; gap: 24px; }
.nav nav a, .footer-inner nav a { color: var(--muted); white-space: nowrap; }
.nav nav a:hover, .footer-inner nav a:hover { color: var(--accent); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.button { border: 1px solid transparent; border-radius: 8px; min-height: 39px; padding: 7px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 650; color: var(--ink); white-space: nowrap; transition: background .16s, border-color .16s, box-shadow .16s; }
.button.large { padding: 12px 20px; min-height: 48px; }
.button.primary { background: var(--accent); color: white; }
.button.primary:hover { background: var(--accent-deep); box-shadow: 0 4px 12px #5040ad24; }
.button.outline { border-color: #dcd6e8; background: white; }
.button.outline:hover, .button.plain:hover { background: var(--soft); }
.button.plain { background: transparent; }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 30px; align-items: center; padding-block: 76px 72px; }
.hero-copy h1 { font-family: var(--display); font-size: clamp(43px, 5.9vw, 82px); font-weight: 800; line-height: 1.12; letter-spacing: -.075em; }
.hero-copy h1 em { color: var(--accent); font-style: normal; }
.hero-copy p { color: var(--muted); font-size: 17px; line-height: 1.85; max-width: 370px; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.hero-art { isolation: isolate; position: relative; min-width: 0; height: clamp(230px, 33vw, 360px); overflow: hidden; border: 1px solid #e4dff4; border-radius: 22px; background: radial-gradient(ellipse at 77% 19%, #fff 1%, transparent 51%), linear-gradient(146deg,#eee9ff 0%,#f8f5fc 70%,#e6ddfb 100%); }
.art-grid { position: absolute; inset: 0; background-image: linear-gradient(#6c53b518 1px, transparent 1px),linear-gradient(90deg,#6c53b518 1px,transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(145deg, transparent 12%, #000 65%); }
.art-frame { position: absolute; top: 19%; left: 19%; width: 63%; height: 62%; border-radius: 15px; border: 1px solid #ffffff75; box-shadow: 0 15px 36px #37216836; }
.frame-rear { background: #a48cdb; transform: translate(12%, -13%) rotate(12deg); }
.frame-middle { background: #c7b8eb; transform: translate(-10%,11%) rotate(-12deg); }
.frame-main { overflow: hidden; background: linear-gradient(165deg,#6253a1,#2d2549); transform: rotate(-4deg); box-shadow: 0 16px 32px #27194c4d; }
.frame-main img { width: 100%; height: 100%; object-fit: cover; }
a.hero-art:hover .frame-main { transform: rotate(-2deg) scale(1.035); }
.frame-main { transition: transform .2s ease; }
.frame-main i { position: absolute; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: #e6dcfe; opacity: .83; }
.frame-main i:nth-child(1) { left: 12px; }
.frame-main i:nth-child(2) { left: 23px; }
.frame-main i:nth-child(3) { left: 34px; }
.catalog { border-top: 1px solid var(--line); padding-top: 39px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 21px; }
.section-head h2, .account-banner h2 { font-size: 29px; letter-spacing: -.035em; line-height: 1.25; }
.section-head p, .account-banner p { color: var(--muted); margin-top: 7px; }
.search-control { display: flex; align-items: center; gap: 12px; width: 210px; min-height: 44px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--line); background: white; }
.search-control input { border: 0; background: transparent; padding: 8px 0; width: 100%; min-width: 0; color: var(--ink); }
.search-control input:focus { outline: none; }
.search-control:focus-within { outline: 2px solid #8975f7; }
.search-glyph { position: relative; width: 13px; height: 13px; flex: 0 0 13px; border: 1.5px solid var(--muted); border-radius: 50%; }
.search-glyph::after { content: ""; position: absolute; right: -4px; bottom: -2px; rotate: 45deg; width: 5px; height: 1.5px; background: var(--muted); }
.client-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.client-card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, translate .2s; }
.client-card:hover { translate: 0 -3px; box-shadow: 0 14px 44px #2a214216; }
.client-cover { background: #eee9fa; height: auto; aspect-ratio: 1.87; overflow: hidden; display: grid; place-items: center; }
.client-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cover-fallback { color: var(--accent); font-size: 46px; }
.client-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.client-title h3 { font-size: 19px; }
.client-title span { color: var(--accent-deep); font-size: 12px; }
.client-content p { color: var(--muted); font-size: 14px; margin: 10px 0 17px; }
.client-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); padding-top: 13px; }
.client-actions a { font-size: 13px; font-weight: 650; }
.client-actions a:hover, .link-button:hover { text-decoration: underline; }
.account-banner { margin-block: 54px; padding: 27px 32px; background: var(--soft); border: 1px solid #e7e0fd; border-radius: 13px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.account-banner h2 { font-size: 24px; }
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: white; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-block: 25px; gap: 15px; }
.filing-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-block: 11px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.filing-links a { color: var(--muted); }
.filing-links a:hover { color: var(--accent); text-decoration: underline; }
.auth-wrap { display: grid; align-items: start; justify-items: center; padding: 70px 0; }
.form-card { background: var(--surface); width: min(100%,440px); padding: 31px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 46px #32245c0b; }
.form-card h1, .workspace h1 { font-size: 30px; letter-spacing: -.035em; line-height: 1.25; }
.form-card > p, .workspace-header p { color: var(--muted); margin-top: 7px; }
.form-card form, .editor form { display: grid; gap: 14px; margin-top: 22px; }
form label { display: grid; gap: 5px; font-weight: 650; }
form input:not([type=checkbox]), form textarea, form select { width: 100%; min-height: 43px; padding: 8px 10px; border-radius: 8px; border: 1px solid #d9d5e0; background: white; color: var(--ink); }
form textarea { min-height: 78px; resize: vertical; }
form label.checkbox { display: flex; align-items: center; gap: 6px; }
form small { color: var(--muted); margin-top: -9px; }
.form-card .form-footer { margin-top: 17px; }
.form-feedback { color: #94452b; margin: 8px 0 0; }
.workspace { padding: 48px 0 65px; }
.workspace-header { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 25px; }
.workspace-section { margin-top: 36px; }
.compact h2 { font-size: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.stat, .package { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 16px; }
.stat span { color: var(--muted); display: block; }
.stat strong { font-size: clamp(18px,2.2vw,28px); line-height: 1.3; display: block; margin-top: 6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.packages, .edit-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 12px; }
.package strong { font-size: 25px; display: block; margin-top: 5px; }
.package p { color: var(--muted); margin-bottom: 11px; }
.table-scroll { background: white; border: 1px solid var(--line); border-radius: 11px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; min-width: 510px; }
th, td { padding: 12px 14px; vertical-align: top; }
th { color: var(--muted); background: #f7f5fa; font-size: 13px; }
td { border-top: 1px solid var(--line); overflow-wrap: anywhere; }
td small { display: block; color: var(--muted); }
td form + form { margin-top: 6px; }
.empty, .empty-cell { color: var(--muted); padding: 17px; }
.link-button { padding: 0; border: 0; background: none; color: var(--accent); font-weight: 650; text-align: left; }
.status { display: inline-block; padding: 3px 8px; border-radius: 6px; color: #514083; background: #ede8ff; font-size: 12px; white-space: nowrap; font-weight: 650; }
.status.credited { color: #176044; background: #e1f5ea; }
.status.closed, .status.neutral { color: #5e5969; background: #eeebf0; }
.status.review { color: #91391f; background: #fbefe8; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 15px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 19px; }
.admin-search { display: flex; align-items: stretch; gap: 7px; max-width: 100%; }
.admin-search input { min-width: 0; }
.admin-feedback { background: var(--soft); padding: 8px 12px; border-radius: 8px; margin-bottom: 13px; }
.editor { border: 1px solid var(--line); border-radius: 10px; align-self: start; background: white; }
.editor summary { cursor: pointer; padding: 13px; font-weight: 650; }
.editor form { margin: 0; padding: 0 13px 13px; }
dialog { border: 1px solid var(--line); border-radius: 15px; padding: 21px; width: min(410px,calc(100% - 30px)); text-align: center; color: var(--ink); }
dialog::backdrop { background: #1f173d79; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dialog-head h2 { font-size: 21px; }
.dialog-head button { font-size: 23px; }
dialog img { display: block; margin: 13px auto; border-radius: 7px; border: 1px solid var(--line); }
.payment-status { margin-top: 14px; font-weight: 650; }
.payment-id { margin-top: 5px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.not-found { display: grid; align-items: center; padding-block: 60px; }
.not-found-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 36px; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 22px; padding: clamp(28px, 6vw, 80px); }
.not-found-copy h1 { font: 800 clamp(34px, 5vw, 60px)/1.15 var(--display); letter-spacing: -.055em; }
.not-found-copy p { margin: 15px 0 23px; color: var(--muted); }
.not-found-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.not-found-art { isolation: isolate; position: relative; min-height: 225px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e4dff4; border-radius: 18px; background: radial-gradient(ellipse at 25% 13%, #fff, transparent 61%), #f0ebff; }
.not-found-art .art-grid { opacity: .8; }
.not-found-frame { position: relative; line-height: 1; padding: 10px 20px 16px; font: 800 clamp(72px, 12vw, 134px)/1 var(--display); color: var(--accent); letter-spacing: -.1em; transform: rotate(-6deg); }
.not-found-frame::before, .not-found-frame::after { content: ""; position: absolute; width: 19px; height: 19px; border: solid #8877c6; border-width: 0; }
.not-found-frame::before { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.not-found-frame::after { bottom: 0; right: -9px; border-bottom-width: 1px; border-right-width: 1px; }
@media (max-width: 850px) {
  .shell { width: calc(100% - 44px); }
  .hero { padding-block: 54px; gap: 20px; }
  .client-content { padding: 15px; }
  .client-actions { flex-direction: column; align-items: start; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 28px); }
  .nav { gap: 12px; min-height: 61px; }
  .nav nav { display: none; }
  .brand { font-size: 15px; }
  .nav-actions .button { padding-inline: 9px; }
  .hero { grid-template-columns: 1fr; padding-block: 37px 30px; gap: 25px; }
  .hero-copy h1 { font-size: 48px; }
  .hero-art { height: 230px; border-radius: 14px; }
  .catalog { padding-top: 26px; }
  .section-head { align-items: start; flex-wrap: wrap; }
  .search-control { width: 100%; }
  .client-grid { grid-template-columns: 1fr; }
  .client-actions { flex-direction: row; }
  .account-banner { margin-block: 35px; padding: 16px; align-items: start; flex-direction: column; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner nav { width: 100%; gap: 15px; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace, .auth-wrap { padding-block: 30px 45px; }
  .not-found { padding-block: 26px 40px; }
  .not-found-panel { grid-template-columns: 1fr; gap: 24px; padding: 19px; }
  .not-found-art { min-height: 146px; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
