:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #19191c;
  --surface-3: #222226;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f8f7f5;
  --muted: #a5a3a0;
  --faint: #74726f;
  --orange: #f0532d;
  --orange-light: #ff714b;
  --orange-deep: #c83e1d;
  --blue: #27b7ee;
  --green: #72d95f;
  --radius: 18px;
  --content: 1280px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.site-shell { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 74% 7%, rgba(240, 83, 45, 0.08), transparent 25%), var(--bg); }
.site-header { height: 72px; padding: 0 clamp(24px, 4vw, 72px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 44px; position: sticky; top: 0; z-index: 20; background: rgba(10,10,11,.88); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 750; color: var(--orange-light); letter-spacing: -.02em; }
.brand-mark { width: 31px; height: 18px; position: relative; display: inline-block; }
.brand-mark i { position: absolute; top: 1px; width: 17px; height: 17px; border: 5px solid var(--orange); border-radius: 50%; }
.brand-mark i:first-child { left: 0; }.brand-mark i:last-child { right: 0; }
.main-nav { display: flex; gap: 34px; margin-left: auto; }
.main-nav a { color: var(--muted); font-size: 14px; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.header-cta { padding: 11px 18px; border-radius: 10px; background: var(--orange); font-size: 14px; font-weight: 700; transition: transform .2s, background .2s; }
.header-cta:hover { background: var(--orange-light); transform: translateY(-1px); }

main { width: 100%; }
.hero { width: min(var(--content), calc(100% - 48px)); min-height: 380px; margin: 0 auto; padding: 70px 0 58px; position: relative; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 2; max-width: 850px; }
.eyebrow, .section-kicker { margin: 0 0 18px; color: var(--orange-light); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.hero h1 { max-width: 880px; margin: 0; font-size: clamp(44px, 6vw, 76px); line-height: 1.05; letter-spacing: -.055em; }
.hero-lead { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.8; }
.hero-actions { margin-top: 34px; display: flex; gap: 12px; }
.button { min-height: 46px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 720; transition: transform .2s, border-color .2s, background .2s; }
.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.32); }
.button-primary { background: var(--orange); border-color: var(--orange); }
.button-primary:hover { background: var(--orange-light); }
.button-ghost { background: rgba(255,255,255,.04); }
.button-light { background: white; color: #111; border-color: white; }
.hero-grid { position: absolute; z-index: 0; right: -7%; top: 25px; width: 50%; height: 270px; opacity: .85; background-image: linear-gradient(rgba(240,83,45,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(240,83,45,.16) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%); transform: perspective(500px) rotateY(-18deg) rotateZ(-5deg); }
.hero-grid::after { content: ""; position: absolute; inset: 35% 34%; border-radius: 50%; background: var(--orange); box-shadow: 0 0 50px 20px rgba(240,83,45,.3); }
.hero-stat { margin-left: auto; padding-bottom: 8px; display: flex; flex-direction: column; align-items: flex-end; position: relative; z-index: 2; }
.hero-stat strong { color: var(--orange-light); font-size: 42px; line-height: 1; }
.hero-stat span { margin-top: 8px; color: var(--muted); font-size: 13px; }

.works-section { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 64px 0 90px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-heading .section-kicker { margin-bottom: 9px; }
.section-heading h2, .about-copy h2, .creation-banner h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; }
.result-count { margin: 0; color: var(--muted); font-size: 14px; }
.filters { margin: 34px 0 26px; padding: 5px; border: 1px solid var(--line); border-radius: 15px; display: flex; width: fit-content; max-width: 100%; overflow-x: auto; background: rgba(255,255,255,.025); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { padding: 11px 19px; white-space: nowrap; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; transition: color .2s, background .2s; }
.filter:hover { color: var(--text); }.filter.active { color: white; background: var(--orange); font-weight: 700; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.035), transparent 45%), var(--surface); transition: transform .25s, border-color .25s, box-shadow .25s; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(240,83,45,.65); box-shadow: 0 20px 55px rgba(0,0,0,.32); }
.gallery-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr); }
.gallery-card .gallery-poster { aspect-ratio: auto; background: #fff; }
.gallery-card .gallery-poster img { height: auto; object-fit: contain; transform: none; }
.gallery-card .gallery-body { padding: clamp(24px, 4vw, 60px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; }
.gallery-card .card-title { font-size: clamp(26px, 3vw, 40px); margin: 0; }
.gallery-term { color: var(--muted); margin: 0; }
.gallery-description { line-height: 1.9; margin: 0; }
.gallery-note { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0; }
.dialog-cover.gallery-dialog-poster { height: auto; aspect-ratio: auto; max-height: 80vh; object-fit: contain; background: #fff; }
@media (max-width: 700px) { .gallery-card { grid-template-columns: 1fr; } .gallery-card .view-link { display: inline-block; } }
.cover-button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; position: relative; overflow: hidden; aspect-ratio: 16 / 8.7; }
.cover-button img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .55s ease; }
.project-card:hover .cover-button img { transform: scale(1.025); }
.cover-action { position: absolute; right: 18px; bottom: 18px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(10,10,11,.68); backdrop-filter: blur(12px); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; font-size: 13px; font-weight: 700; }
.project-card:hover .cover-action { opacity: 1; transform: translateY(0); }
.card-body { padding: 20px; }
.category-pill { display: inline-flex; padding: 6px 10px; border: 1px solid rgba(240,83,45,.42); border-radius: 999px; color: var(--orange-light); font-size: 12px; line-height: 1; }
.category-pill.blue { color: var(--blue); border-color: rgba(39,183,238,.42); }
.category-pill.green { color: var(--green); border-color: rgba(114,217,95,.42); }
.category-pill.gray { color: #c7c4bf; border-color: rgba(199,196,191,.35); }
.card-title { margin: 14px 0 8px; font-size: 21px; letter-spacing: -.02em; }
.author-line { margin: 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; line-height: 1.6; }
.author-line a { color: #bbb8b4; }.author-line a:hover { color: var(--orange-light); }
.card-actions { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.icon-button { min-height: 36px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; transition: color .2s, background .2s, border-color .2s; }
.icon-button:hover { color: white; background: rgba(255,255,255,.05); border-color: var(--line); }
.icon-button.liked { color: var(--orange-light); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.icon-button.liked svg { fill: currentColor; }
.view-link { margin-left: auto; color: var(--orange-light); font-size: 13px; font-weight: 700; border: 0; background: none; cursor: pointer; }
.empty-state { padding: 70px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; color: var(--muted); }
.empty-state span { font-size: 44px; color: var(--orange); }.empty-state h3 { margin: 12px 0 8px; color: white; }

.about-section { width: min(var(--content), calc(100% - 48px)); margin: 0 auto 96px; padding: 70px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(120deg, rgba(240,83,45,.08), transparent 45%), var(--surface); display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; }
.about-copy > p:last-child { margin: 24px 0 0; color: var(--muted); line-height: 1.9; }
.about-points { display: grid; gap: 18px; }
.about-points article { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.about-points article:last-child { border-bottom: 0; padding-bottom: 0; }
.about-points span { grid-row: 1 / 3; color: var(--orange-light); font-size: 12px; font-weight: 800; }
.about-points h3 { margin: 0 0 6px; font-size: 18px; }.about-points p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.creation-banner { width: min(var(--content), calc(100% - 48px)); margin: 0 auto 96px; padding: 48px 54px; border-radius: 24px; background: var(--orange); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.creation-banner .section-kicker { color: rgba(255,255,255,.75); margin-bottom: 10px; }.creation-banner h2 { font-size: clamp(28px, 3.5vw, 44px); }.creation-banner p:last-child { margin: 13px 0 0; color: rgba(255,255,255,.78); }
.site-footer { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 38px 0 26px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 22px; }
.site-footer strong { font-size: 18px; }.site-footer p { color: var(--muted); margin: 8px 0 0; }
.footer-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }.footer-links a:hover { color: white; }
.copyright { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }

.project-dialog { width: min(920px, calc(100% - 32px)); max-height: min(880px, calc(100vh - 32px)); padding: 0; overflow: hidden auto; border: 1px solid var(--line-strong); border-radius: 22px; color: var(--text); background: #101012; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.project-dialog::backdrop { background: rgba(0,0,0,.74); backdrop-filter: blur(8px); }
.dialog-close { position: sticky; float: right; top: 14px; margin: 14px 14px -56px 0; z-index: 3; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(10,10,11,.72); color: white; cursor: pointer; font-size: 25px; line-height: 1; backdrop-filter: blur(12px); }
.dialog-cover { width: 100%; aspect-ratio: 16 / 7.8; object-fit: cover; display: block; }
.dialog-body { padding: 28px; }
.dialog-body h2 { margin: 15px 0 10px; font-size: clamp(27px, 4vw, 40px); letter-spacing: -.035em; }
.dialog-description { margin: 20px 0; color: var(--muted); line-height: 1.85; }
.dialog-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 13px; }
.dialog-actions { margin: 24px 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.comments-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }.comments-heading h3 { margin: 0; }
.comment-form { margin: 16px 0 25px; display: grid; grid-template-columns: 180px 1fr auto; gap: 10px; }
.comment-form input, .comment-form textarea, .admin-input { width: 100%; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface-2); color: white; outline: none; }
.comment-form input { height: 44px; padding: 0 13px; }.comment-form textarea { height: 44px; min-height: 44px; max-height: 140px; padding: 11px 13px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus, .admin-input:focus { border-color: var(--orange); }
.comment-form button { border: 0; border-radius: 11px; padding: 0 18px; background: var(--orange); color: white; font-weight: 700; cursor: pointer; }
.comment-list { display: grid; gap: 12px; }
.comment { padding: 16px; border-radius: 13px; background: var(--surface-2); }
.comment-head { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }.comment-head time { color: var(--faint); }.comment p { margin: 9px 0 0; color: #d5d2ce; line-height: 1.65; }
.comment-empty { padding: 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; max-width: calc(100% - 32px); padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 11px; background: #252528; box-shadow: 0 12px 40px rgba(0,0,0,.35); color: white; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

body.embed-mode .site-shell { background: transparent; }
body.embed-mode [data-standalone-only] { display: none !important; }
body.embed-mode .hero { min-height: 315px; padding-top: 50px; }
body.embed-mode .works-section { padding-top: 50px; padding-bottom: 40px; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .site-header { gap: 16px; }.header-cta { margin-left: auto; }
  .hero { min-height: 340px; padding-top: 55px; }.hero-stat { display: none; }.hero-grid { width: 70%; right: -20%; }
  .project-grid { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; gap: 45px; padding: 46px; }
  .creation-banner { align-items: flex-start; flex-direction: column; }
  .comment-form { grid-template-columns: 1fr; }.comment-form button { min-height: 44px; }
}

@media (max-width: 560px) {
  .site-header { height: 64px; padding: 0 18px; }.brand { font-size: 16px; }.header-cta { padding: 9px 12px; font-size: 12px; }
  .hero, .works-section, .about-section, .creation-banner, .site-footer { width: min(100% - 32px, var(--content)); }
  .hero { padding: 44px 0 40px; min-height: 300px; }.hero h1 { font-size: 42px; }.hero-lead { font-size: 15px; }.hero-actions { flex-direction: column; align-items: stretch; }
  .works-section { padding: 48px 0 64px; }.section-heading { align-items: flex-start; flex-direction: column; }
  .filters { width: calc(100vw - 16px); margin-left: 0; border-radius: 12px; }
  .project-grid { gap: 16px; }.card-body { padding: 17px; }.card-title { font-size: 19px; }.view-link { display: none; }
  .about-section { padding: 32px 24px; border-radius: 20px; }.creation-banner { padding: 34px 25px; border-radius: 20px; }
  .site-footer { grid-template-columns: 1fr; }.copyright { grid-column: 1; }.footer-links { flex-wrap: wrap; }
  .dialog-body { padding: 21px; }.dialog-actions { flex-wrap: wrap; }
}

/* 管理后台 */
.admin-page { min-height: 100vh; background: radial-gradient(circle at 80% 0, rgba(240,83,45,.09), transparent 28%), var(--bg); }
.admin-header { height: 72px; padding: 0 clamp(24px, 4vw, 70px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.admin-main { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 90px; }
.admin-login { width: min(520px, 100%); margin: 8vh auto 0; padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.admin-login h1, .admin-title-row h1 { margin: 0; font-size: clamp(36px, 5vw, 58px); letter-spacing: -.045em; }
.admin-login > p:not(.section-kicker) { color: var(--muted); line-height: 1.7; }
.admin-login form { margin-top: 24px; display: grid; gap: 12px; }
.admin-input { height: 48px; padding: 0 14px; }
.admin-login small { display: block; margin-top: 18px; color: var(--faint); }
.form-error { min-height: 24px; color: #ff8467 !important; }
.admin-title-row, .panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.stats-grid { margin: 36px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.stats-grid span { color: var(--orange-light); font-size: 10px; font-weight: 800; letter-spacing: .12em; }.stats-grid strong { display: block; margin-top: 18px; font-size: 36px; }.stats-grid p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.admin-panel { margin-top: 24px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.panel-heading { margin-bottom: 20px; }.panel-heading .section-kicker { margin-bottom: 7px; }.panel-heading h2 { margin: 0; font-size: 27px; }.admin-note { color: var(--muted); font-size: 12px; }
.admin-project-list, .admin-comment-list { display: grid; gap: 9px; }
.admin-project-row { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; display: grid; grid-template-columns: 90px minmax(0,1fr) auto auto auto; align-items: center; gap: 16px; background: rgba(255,255,255,.018); }
.admin-project-row img { width: 90px; height: 55px; border-radius: 8px; object-fit: cover; }.admin-project-info { min-width: 0; display: grid; gap: 5px; }.admin-project-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.admin-project-info span, .admin-metric { color: var(--muted); font-size: 12px; }
.switch-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; cursor: pointer; }.switch-label input { accent-color: var(--orange); width: 17px; height: 17px; }
.admin-comment-row { padding: 17px; border: 1px solid var(--line); border-radius: 13px; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 16px; background: rgba(255,255,255,.018); }.admin-comment-row p { margin: 7px 0; color: #d7d4cf; line-height: 1.55; }.admin-comment-row small { color: var(--faint); }
.comment-status { padding: 7px 8px; border-radius: 8px; text-align: center; font-size: 11px; }.comment-status.pending { color: #ffc35b; background: rgba(255,195,91,.1); }.comment-status.approved { color: var(--green); background: rgba(114,217,95,.1); }.comment-status.rejected { color: #ff8467; background: rgba(255,132,103,.1); }
.moderation-actions { display: flex; gap: 7px; }.moderation-actions button { padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-2); cursor: pointer; }.moderation-actions button:hover { border-color: var(--orange); }
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); }.admin-project-row { grid-template-columns: 72px minmax(0,1fr); }.admin-project-row img { width: 72px; }.admin-project-row > :nth-child(n+3) { grid-column: 2; }.admin-comment-row { grid-template-columns: 1fr; }.moderation-actions { justify-content: flex-start; } }
@media (max-width: 520px) { .admin-main { width: calc(100% - 28px); }.admin-header { padding: 0 14px; }.admin-header .button { padding: 0 12px; }.admin-login, .admin-panel { padding: 22px; }.stats-grid { grid-template-columns: 1fr 1fr; }.admin-title-row, .panel-heading { align-items: flex-start; flex-direction: column; } }
