:root {
  --ink: #19322c;
  --ink-soft: #425b54;
  --pine: #245845;
  --pine-deep: #173c32;
  --moss: #7e9c73;
  --mint: #dcecdf;
  --cream: #f7f4ea;
  --paper: #fffdf7;
  --line: rgba(32, 76, 62, 0.13);
  --orange: #df8c5f;
  --red: #d95656;
  --green: #2b9b66;
  --gray: #80908a;
  --shadow: 0 24px 70px rgba(31, 69, 55, 0.12);
  --shadow-soft: 0 12px 36px rgba(31, 69, 55, 0.09);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --header-height: 82px;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--ink-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 12px; color: var(--pine); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.eyebrow::before { content: ""; width: 19px; height: 3px; border-radius: 99px; background: var(--orange); }
.eyebrow.light { color: #eaf5ec; }
.button { border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .56; transform: none; }
.button.primary { background: var(--pine); color: #fff; box-shadow: 0 12px 28px rgba(36, 88, 69, .22); }
.button.secondary { background: var(--mint); color: var(--pine-deep); }
.button.danger { background: #fff0ed; color: #af3d3d; }
.button.ghost { background: rgba(255,255,255,.12); color: inherit; border: 1px solid rgba(255,255,255,.22); }
.button.small { padding: 8px 13px; font-size: 13px; }
.button.wide { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Public site */
.public-body { position: relative; overflow-x: hidden; background: linear-gradient(145deg, #f6f3e8 0%, #f0f6ee 50%, #f8f0e8 100%); color: var(--ink); }
.ambient { position: fixed; z-index: -1; width: 430px; height: 430px; border-radius: 50%; filter: blur(10px); pointer-events: none; opacity: .55; }
.ambient-one { top: 12%; left: -280px; background: radial-gradient(circle, rgba(126,156,115,.28), rgba(126,156,115,0)); }
.ambient-two { bottom: 4%; right: -250px; background: radial-gradient(circle, rgba(223,140,95,.2), rgba(223,140,95,0)); }
.site-header { position: sticky; z-index: 40; top: 0; min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 13px max(28px, calc((100vw - 1360px) / 2)); background: rgba(247,244,234,.82); border-bottom: 1px solid rgba(36,88,69,.09); box-shadow: 0 10px 40px rgba(37,74,60,.05); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 230px; text-decoration: none; }
.brand strong { display: block; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.brand small { display: block; margin-top: 3px; color: #71867d; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.brand-logo { width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: var(--pine); box-shadow: 0 8px 20px rgba(36,88,69,.2); }
.brand-logo > img { width: 100%; height: 100%; object-fit: contain; }
.voxel-logo { width: 27px; height: 27px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; transform: rotate(-4deg); }
.voxel-logo i { display: block; background: #d9edcb; }
.voxel-logo i:nth-child(2), .voxel-logo i:nth-child(3) { background: #92b889; }
.public-nav { display: flex; align-items: center; gap: 5px; }
.public-nav a { position: relative; padding: 11px 14px; border-radius: 999px; color: #486158; text-decoration: none; font-size: 14px; font-weight: 800; transition: .22s ease; }
.public-nav a:hover { color: var(--pine); background: rgba(220,236,223,.72); }
.public-nav a.active { color: #fff; background: var(--pine); box-shadow: 0 8px 22px rgba(36,88,69,.19); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--mint); cursor: pointer; }
.nav-toggle > span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 5px; background: var(--pine); }
.public-main { width: min(100% - 42px, 1280px); min-height: calc(100vh - 210px); margin: 0 auto; padding: 64px 0 90px; outline: none; }
.page-shell { animation: page-in .62s cubic-bezier(.2,.78,.25,1) both; }
.page-shell > * { animation: soft-drop .68s cubic-bezier(.16,.82,.3,1) both; }
.page-shell > *:nth-child(2) { animation-delay: .06s; }
.page-shell > *:nth-child(3) { animation-delay: .12s; }
.page-shell > *:nth-child(4) { animation-delay: .18s; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes soft-drop { 0% { opacity: 0; transform: translateY(-28px) scale(.985); } 68% { transform: translateY(3px) scale(1); } 100% { opacity: 1; transform: translateY(0); } }
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 46px; align-items: end; margin-bottom: 44px; }
.hero-copy h1, .section-heading h1 { margin: 0; text-wrap: balance; }
.hero-copy .page-lead, .section-heading .page-lead { margin: 22px 0 0; white-space: pre-line; }
.hero-side { position: relative; min-height: 185px; padding: 32px; overflow: hidden; border-radius: var(--radius-xl); background: var(--pine-deep); color: #e9f5ed; box-shadow: var(--shadow); }
.hero-side::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 34px 34px; transform: perspective(400px) rotateX(55deg) scale(1.4) translateY(30px); }
.hero-side > * { position: relative; }
.hero-side strong { display: block; max-width: 260px; font-size: 25px; line-height: 1.35; }
.hero-side p { margin: 20px 0 0; color: #bcd0c5; line-height: 1.7; }
.pixel-row { display: flex; gap: 5px; margin-bottom: 22px; }
.pixel-row i { width: 11px; height: 11px; background: #a8c79c; }
.pixel-row i:nth-child(2) { background: #df8c5f; }
.pixel-row i:nth-child(3) { background: #f0d69e; }
.section-heading { max-width: 880px; margin: 0 0 42px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.content-card { position: relative; padding: 44px; border-radius: var(--radius-xl); background: rgba(255,253,247,.82); border: 1px solid rgba(255,255,255,.8); box-shadow: var(--shadow-soft); backdrop-filter: blur(12px); }
.content-card::after { content: ""; position: absolute; top: 20px; right: 22px; width: 42px; height: 42px; opacity: .35; background: linear-gradient(90deg, var(--moss) 48%, transparent 48%) 0 0/18px 18px, linear-gradient(var(--moss) 48%, transparent 48%) 9px 9px/18px 18px; }
.content-card h2 { margin: 0 0 20px; }
.content-copy { margin: 0; white-space: pre-line; }
.home-intro { margin-top: 52px; }

.carousel { --gallery-width: 1120px; --gallery-height: 520px; position: relative; width: min(100%, var(--gallery-width)); height: min(var(--gallery-height), 72vw); min-height: 240px; margin-inline: auto; overflow: hidden; border-radius: var(--radius-xl); background: #dfe9df; box-shadow: var(--shadow); border: 6px solid rgba(255,255,255,.7); }
.carousel-track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.22,.78,.25,1); }
.carousel-slide { flex: 0 0 100%; height: 100%; position: relative; margin: 0; overflow: hidden; cursor: zoom-in; }
.carousel-slide img { position: absolute; display: block; max-width: none; max-height: none; object-fit: fill; }
.carousel-control { position: absolute; z-index: 3; top: 50%; width: 44px; height: 44px; border: 0; border-radius: 50%; transform: translateY(-50%); background: rgba(255,255,255,.86); color: var(--pine); box-shadow: 0 8px 24px rgba(17,49,39,.14); cursor: pointer; font-size: 22px; transition: .2s ease; }
.carousel-control:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.carousel-control.prev { left: 18px; }
.carousel-control.next { right: 18px; }
.carousel-dots { position: absolute; z-index: 3; bottom: 18px; left: 50%; display: flex; gap: 7px; transform: translateX(-50%); }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.52); cursor: pointer; transition: .25s ease; }
.carousel-dots button.active { width: 28px; background: #fff; }
.empty-gallery { width: min(100%, 1120px); min-height: 270px; margin-inline: auto; display: grid; place-items: center; border: 2px dashed rgba(36,88,69,.18); border-radius: var(--radius-xl); background: rgba(255,255,255,.42); color: #6f837b; text-align: center; }
.empty-gallery .empty-cubes { display: grid; grid-template-columns: repeat(3, 20px); gap: 4px; width: max-content; margin: 0 auto 16px; transform: rotate(-5deg); }
.empty-gallery .empty-cubes i { width: 20px; height: 20px; background: #a8c29e; }
.empty-gallery .empty-cubes i:nth-child(2) { background: #e1b187; }
.empty-gallery .empty-cubes i:nth-child(3) { background: #6c9079; }

.battle-layout { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 34px; align-items: start; margin-top: 34px; }
.year-index { position: sticky; top: calc(var(--header-height) + 26px); display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,247,.74); box-shadow: var(--shadow-soft); }
.year-index span { padding: 7px 10px 4px; color: #81938c; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.year-index a, .year-index button { padding: 12px 14px; border: 0; border-radius: 14px; color: var(--pine); background: transparent; text-decoration: none; text-align: left; font-weight: 900; cursor: pointer; transition: .2s ease; }
.year-index a:hover, .year-index button:hover { background: var(--mint); transform: translateX(3px); }
.year-sections { min-width: 0; display: grid; gap: 66px; }
.year-section { scroll-margin-top: calc(var(--header-height) + 30px); }
.year-title { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; }
.year-title::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, rgba(36,88,69,.25), transparent); }

.form-card { max-width: 860px; padding: 38px; border-radius: var(--radius-xl); background: rgba(255,253,247,.9); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.9); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
label { display: grid; gap: 8px; color: #365048; font-size: 14px; font-weight: 800; }
input, textarea, select { width: 100%; border: 1px solid rgba(36,88,69,.16); border-radius: 14px; padding: 12px 14px; outline: none; color: var(--ink); background: rgba(255,255,255,.86); transition: border-color .2s ease, box-shadow .2s ease; }
textarea { min-height: 150px; resize: vertical; line-height: 1.75; }
input:focus, textarea:focus, select:focus { border-color: rgba(36,88,69,.6); box-shadow: 0 0 0 4px rgba(126,156,115,.14); }
input[type="color"] { height: 45px; padding: 4px; cursor: pointer; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--pine); }
.file-drop { position: relative; min-height: 178px; grid-column: 1 / -1; display: grid; place-items: center; border: 2px dashed rgba(36,88,69,.24); border-radius: 20px; background: #f5f8f1; text-align: center; cursor: pointer; overflow: hidden; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop strong { display: block; margin-bottom: 7px; }
.file-drop span { color: #789087; font-size: 13px; }
.upload-preview { max-height: 260px; border-radius: 14px; object-fit: contain; }
.char-counter { display: flex; justify-content: flex-end; margin-top: -3px; color: #71867d; font-size: 13px; }
.char-counter.over { color: var(--red); font-weight: 800; }
.form-message { min-height: 20px; margin: 14px 0 0; color: var(--red); font-size: 13px; }
.form-message.success { color: var(--green); }

.announcement-list { display: grid; gap: 14px; }
.announcement-item { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,247,.86); box-shadow: 0 8px 28px rgba(31,69,55,.06); text-align: left; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease; }
.announcement-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.announcement-item h3 { margin: 0 0 9px; font-size: 19px; }
.announcement-item time, .meta { color: #7c8d87; font-size: 12px; }
.announcement-item .arrow { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--pine); font-weight: 900; }
.announcement-detail { max-width: 900px; margin: 0 auto; padding: 46px; border-radius: var(--radius-xl); background: var(--paper); box-shadow: var(--shadow); }
.announcement-detail h1 { margin: 12px 0 16px; font-size: clamp(32px, 6vw, 58px); line-height: 1.16; }
.announcement-detail .detail-content { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); white-space: pre-line; color: var(--ink-soft); line-height: 1.95; }
.back-link { display: inline-flex; gap: 7px; align-items: center; padding: 0; border: 0; background: none; color: var(--pine); font-weight: 900; cursor: pointer; }
.empty-card { padding: 56px 30px; border: 1px dashed rgba(36,88,69,.2); border-radius: var(--radius-xl); color: #778a83; text-align: center; background: rgba(255,255,255,.42); }
.site-footer { padding: 34px 30px 42px; border-top: 1px solid var(--line); text-align: center; color: #5d746b; }
.site-footer p { margin: 6px 0; }
.site-footer .footer-note { font-size: 12px; color: #8b9b95; }
.footer-mark { width: 30px; height: 9px; display: block; margin: 0 auto 13px; background: repeating-linear-gradient(90deg, var(--moss) 0 8px, transparent 8px 11px); }
.loading-state { min-height: 52vh; display: grid; place-content: center; gap: 18px; text-align: center; color: #6c8178; }
.loading-cube { width: 40px; height: 40px; margin: 0 auto; background: var(--pine); box-shadow: 17px -17px 0 #9bb78f, -17px 17px 0 #e3ad82; animation: cube-pulse 1.4s ease-in-out infinite alternate; }
@keyframes cube-pulse { to { transform: translateY(-8px) rotate(8deg); } }

/* Shared modal and toast */
.toast-region { position: fixed; z-index: 100; top: 96px; right: 22px; display: grid; gap: 10px; width: min(370px, calc(100vw - 44px)); pointer-events: none; }
.toast { padding: 15px 18px; border: 1px solid rgba(255,255,255,.7); border-radius: 16px; background: rgba(25,50,44,.94); color: #fff; box-shadow: var(--shadow); animation: toast-in .35s ease both; }
.toast.error { background: rgba(147,50,50,.95); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) translateX(12px); } }
.modal { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 28px; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(13,30,25,.76); backdrop-filter: blur(7px); cursor: pointer; }
.image-lightbox, .modal-card { position: relative; z-index: 1; max-width: min(1100px, 92vw); max-height: 88vh; animation: modal-in .28s ease both; }
.image-lightbox img { display: block; max-width: 100%; max-height: 84vh; border: 6px solid rgba(255,255,255,.92); border-radius: 22px; box-shadow: 0 30px 90px rgba(0,0,0,.34); }
.modal-close { position: absolute; z-index: 3; top: -14px; right: -14px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; color: var(--pine); box-shadow: 0 8px 24px rgba(0,0,0,.18); cursor: pointer; font-size: 25px; line-height: 1; }
.modal-card { width: min(680px, 92vw); overflow: auto; padding: 34px; border-radius: 26px; background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.modal-card h2 { margin: 0 0 14px; }
.modal-card p { color: var(--ink-soft); line-height: 1.8; }
.modal-card .modal-image { display: block; width: 100%; max-height: 67vh; object-fit: contain; border-radius: 16px; background: #e9eee7; }
@keyframes modal-in { from { opacity: 0; transform: scale(.94) translateY(12px); } }

/* Admin */
.admin-body { background: #eef2ec; color: var(--ink); }
.admin-login { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1.05fr) minmax(380px, .95fr); }
.login-visual { position: relative; min-height: 640px; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(42px, 7vw, 100px); background: linear-gradient(140deg, #173c32, #28624d); color: #fff; }
.login-grid { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px); background-size: 52px 52px; transform: perspective(600px) rotateX(58deg) scale(1.7) translateY(-10%); transform-origin: bottom; }
.login-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 20%, rgba(181,210,167,.34), transparent 28%), linear-gradient(0deg, rgba(15,44,35,.58), transparent 55%); }
.login-copy { position: relative; z-index: 2; max-width: 650px; }
.login-copy h1 { margin: 8px 0 20px; font-size: clamp(43px, 6vw, 78px); line-height: 1.06; letter-spacing: -.04em; }
.login-copy p:last-child { color: #c2d8cc; font-size: 17px; }
.floating-block { position: absolute; z-index: 1; width: 92px; height: 92px; background: #a9c69c; box-shadow: inset -16px -16px 0 rgba(37,85,67,.18); transform: rotate(13deg); animation: float-block 5s ease-in-out infinite alternate; }
.block-a { top: 18%; right: 18%; }
.block-b { top: 40%; right: 42%; width: 42px; height: 42px; background: #df9c6d; animation-delay: -1s; }
.block-c { top: 10%; left: 17%; width: 56px; height: 56px; background: #e8d39c; animation-delay: -2.6s; }
@keyframes float-block { to { transform: translateY(-24px) rotate(20deg); } }
.login-panel { display: grid; place-items: center; padding: 40px; background: #f7f5ec; }
.login-card { width: min(100%, 430px); padding: 42px; border-radius: 28px; background: #fffdf7; box-shadow: var(--shadow); }
.login-card h2 { margin: 0 0 10px; font-size: 36px; }
.login-card > label { margin-top: 20px; }
.login-card .button { margin-top: 26px; }
.mini-cube { width: 34px; height: 34px; display: inline-block; margin-bottom: 24px; border-radius: 5px; background: var(--pine); box-shadow: 11px -11px 0 #9dbb91, -9px 9px 0 #e3a477; transform: rotate(-4deg); }

.admin-shell { min-height: 100vh; }
.admin-topbar { position: sticky; z-index: 55; top: 0; min-height: 76px; display: flex; align-items: center; gap: 26px; padding: 0 max(22px, calc((100vw - 1540px) / 2)); background: var(--pine-deep); color: #eef6f0; box-shadow: 0 12px 38px rgba(18,52,42,.18); }
.admin-brand { display: flex; align-items: center; gap: 12px; min-width: 150px; }
.admin-brand .mini-cube { width: 25px; height: 25px; margin: 0; box-shadow: 7px -7px 0 #8bad83, -6px 6px 0 #d89164; }
.admin-brand strong, .admin-brand small { display: block; }
.admin-brand strong { font-size: 14px; }
.admin-brand small { margin-top: 2px; color: #94b1a5; font-size: 7px; letter-spacing: .16em; }
.admin-nav { align-self: stretch; flex: 1; display: flex; justify-content: center; gap: 1px; }
.admin-nav > button, .admin-nav-group > button { height: 100%; display: flex; align-items: center; gap: 7px; padding: 0 12px; border: 0; background: transparent; color: #c7d9d0; cursor: pointer; font-size: 13px; font-weight: 800; white-space: nowrap; transition: .2s ease; }
.admin-nav > button:hover, .admin-nav > button.active, .admin-nav-group:hover > button { color: #fff; background: rgba(255,255,255,.08); }
.admin-nav-group { position: relative; }
.admin-dropdown { position: absolute; top: calc(100% - 5px); left: 50%; width: 190px; display: grid; padding: 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: #20483c; box-shadow: 0 18px 48px rgba(10,30,23,.24); opacity: 0; visibility: hidden; transform: translate(-50%, -8px); transition: .2s ease; }
.admin-nav-group:hover .admin-dropdown, .admin-nav-group.open .admin-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.admin-dropdown button { padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; color: #d6e5dd; cursor: pointer; text-align: left; font-size: 13px; }
.admin-dropdown button:hover { background: rgba(255,255,255,.08); color: #fff; }
.bell { width: 11px; height: 11px; display: inline-grid; place-items: center; margin-left: 1px; border-radius: 50%; color: #ff6d68; font-size: 18px; line-height: 0; filter: drop-shadow(0 0 5px rgba(255,87,82,.7)); }
.admin-account { display: flex; align-items: center; gap: 10px; min-width: 120px; justify-content: flex-end; font-size: 13px; font-weight: 800; }
.admin-menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 23px; cursor: pointer; }
.admin-main { width: min(100% - 40px, 1460px); margin: 0 auto; padding: 42px 0 80px; outline: none; }
.admin-page { animation: page-in .35s ease both; }
.admin-page-header { display: flex; justify-content: space-between; gap: 26px; align-items: flex-end; margin-bottom: 28px; }
.admin-page-header h1 { margin: 5px 0 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; }
.admin-page-header p { max-width: 670px; margin: 8px 0 0; color: #6d8179; line-height: 1.7; }
.stats-grid { display: grid; grid-template-columns: 1.5fr repeat(2, minmax(220px,.75fr)); gap: 18px; }
.stat-card { min-height: 176px; padding: 28px; border: 1px solid rgba(255,255,255,.9); border-radius: 25px; background: #fffdf8; box-shadow: var(--shadow-soft); }
.stat-card.primary { min-height: 245px; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: linear-gradient(145deg, #1d493b, #2f6b52); overflow: hidden; position: relative; }
.stat-card.primary::after { content: ""; position: absolute; right: -34px; bottom: -44px; width: 210px; height: 210px; border: 42px solid rgba(255,255,255,.06); transform: rotate(16deg); }
.stat-card .stat-label { color: #6f827b; font-size: 13px; font-weight: 800; }
.stat-card.primary .stat-label { color: #c2d9ce; }
.stat-card .stat-value { position: relative; z-index: 1; display: block; margin-top: 18px; font-size: clamp(42px, 6vw, 74px); line-height: 1; letter-spacing: -.05em; }
.stat-card .stat-note { position: relative; z-index: 1; margin: 14px 0 0; color: #789087; font-size: 12px; }
.stat-card.primary .stat-note { color: #c2d9ce; }
.password-warning { margin-top: 22px; padding: 20px 24px; border: 1px solid #efd7a5; border-radius: 18px; background: #fff6de; color: #76561d; }
.password-warning strong { display: block; margin-bottom: 5px; }
.password-warning .button { margin-top: 14px; }

.admin-card { padding: 28px; border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: #fffdf8; box-shadow: var(--shadow-soft); }
.admin-card + .admin-card { margin-top: 20px; }
.admin-card h2, .admin-card h3 { margin-top: 0; }
.admin-card-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.admin-card-title h2, .admin-card-title h3 { margin: 0; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.admin-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.admin-form { display: grid; gap: 19px; }
.style-editor { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #f5f7f2; }
.style-editor h3 { margin: 0 0 16px; font-size: 15px; }
.style-controls { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.style-controls label { font-size: 12px; }
.live-preview { min-height: 210px; display: grid; align-content: center; padding: 30px; overflow: hidden; border-radius: 20px; background: linear-gradient(135deg, #eef4eb, #fff8ec); border: 1px solid var(--line); }
.live-preview h2, .live-preview p { margin: 0; white-space: pre-line; }
.live-preview p { margin-top: 16px; }
.logo-preview { width: 92px; height: 92px; display: grid; place-items: center; overflow: hidden; border-radius: 24px; background: var(--pine); color: #fff; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.inline-form > label { flex: 1 1 150px; }
.gallery-list, .review-list, .suggestion-admin-list, .admin-announcement-list { display: grid; gap: 13px; }
.media-row { display: grid; grid-template-columns: 118px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: #f8faf5; }
.media-row .thumb { width: 118px; height: 78px; border: 0; padding: 0; overflow: hidden; border-radius: 12px; background: #dfe8df; cursor: zoom-in; }
.media-row .thumb img { width: 100%; height: 100%; object-fit: contain; }
.media-row .row-fields { display: grid; grid-template-columns: repeat(2, minmax(90px,150px)); gap: 10px; }
.media-row .row-fields input { padding: 8px 10px; }
.media-meta { min-width: 0; }
.media-meta strong { display: block; margin-bottom: 7px; }
.media-meta p { margin: 4px 0; color: #72857e; font-size: 12px; overflow-wrap: anywhere; }
.status-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.status-tabs button { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 800; }
.status-tabs button.active { border-color: var(--pine); background: var(--pine); color: #fff; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.status-pill.pending { color: #9b671d; background: #fff0ca; }
.status-pill.approved { color: #247346; background: #ddf2e4; }
.status-pill.rejected { color: #9b4747; background: #f8e2e0; }
.review-empty { padding: 36px; border: 1px dashed var(--line); border-radius: 18px; color: #81928c; text-align: center; }
.year-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #f8faf5; }
.year-card.inactive { opacity: .7; border-style: dashed; }
.year-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.year-card-head h3 { margin: 0; font-size: 26px; }
.year-card .admin-grid { gap: 12px; }
.suggestion-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; cursor: pointer; transition: .2s ease; }
.suggestion-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.suggestion-card-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.suggestion-card p { margin: 0; color: #425b54; line-height: 1.7; }
.detail-link { color: var(--orange); font-weight: 900; }
.admin-announcement { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.admin-announcement h3 { margin: 0 0 8px; }
.admin-announcement .button-row { flex-direction: column; align-items: stretch; }
.danger-check { display: flex; grid-template-columns: auto 1fr; align-items: flex-start; gap: 10px; margin: 20px 0; padding: 14px; border-radius: 14px; background: #fff1ee; color: #8e3f3f; }
.danger-check input { flex: 0 0 auto; margin-top: 4px; }
.modal-detail { white-space: pre-line; overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .site-header { padding-inline: 24px; }
  .public-nav a { padding-inline: 10px; font-size: 13px; }
  .admin-topbar { gap: 14px; padding-inline: 16px; }
  .admin-brand { min-width: 130px; }
  .admin-nav > button, .admin-nav-group > button { padding-inline: 8px; font-size: 12px; }
  .admin-account { min-width: auto; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .public-nav { position: absolute; top: calc(100% + 8px); right: 20px; width: min(330px, calc(100vw - 40px)); display: grid; padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,247,.97); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .22s ease; }
  .public-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .public-nav a { padding: 13px 15px; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-side { min-height: 160px; }
  .battle-layout { grid-template-columns: 1fr; }
  .year-index { position: static; grid-template-columns: auto repeat(4, minmax(70px,1fr)); overflow-x: auto; }
  .admin-login { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; }
  .admin-menu-toggle { display: block; }
  .admin-nav { position: absolute; top: 76px; left: 12px; right: 12px; max-height: calc(100vh - 92px); overflow: auto; display: grid; justify-content: stretch; padding: 12px; border-radius: 18px; background: #20483c; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease; }
  .admin-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .admin-nav > button, .admin-nav-group > button { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 11px; }
  .admin-nav-group { display: grid; }
  .admin-dropdown { position: static; width: auto; display: none; margin: 0 8px 8px; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(0,0,0,.12); }
  .admin-nav-group.open .admin-dropdown { display: grid; transform: none; }
  .admin-account { margin-left: auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card.primary { grid-column: 1 / -1; grid-row: auto; }
  .admin-grid.three { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  :root { --header-height: 72px; --radius-xl: 25px; }
  .site-header { min-height: 72px; padding: 10px 16px; }
  .brand { min-width: 0; }
  .brand-logo { width: 40px; height: 40px; }
  .brand strong { max-width: 180px; font-size: 14px; }
  .brand small { font-size: 7px; }
  .public-main { width: min(100% - 28px, 1280px); padding: 42px 0 64px; }
  .hero { margin-bottom: 28px; }
  .hero-side, .content-card, .form-card, .announcement-detail { padding: 27px; }
  .carousel { height: max(230px, min(var(--gallery-height), 72vw)); min-height: 0; border-width: 4px; }
  .carousel-control { width: 38px; height: 38px; }
  .carousel-control.prev { left: 10px; }
  .carousel-control.next { right: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .file-drop { grid-column: auto; }
  .announcement-item { padding: 20px; }
  .year-index { grid-template-columns: auto repeat(3, minmax(72px,1fr)); }
  .admin-main { width: min(100% - 24px, 1460px); padding-top: 26px; }
  .admin-account > span { display: none; }
  .admin-page-header { align-items: flex-start; flex-direction: column; }
  .stats-grid, .admin-grid, .admin-grid.three { grid-template-columns: 1fr; }
  .style-controls { grid-template-columns: 1fr 1fr; }
  .admin-card { padding: 20px; }
  .media-row { grid-template-columns: 84px minmax(0,1fr); }
  .media-row .thumb { width: 84px; height: 70px; }
  .media-row > .button-row { grid-column: 1 / -1; }
  .media-row .row-fields { grid-template-columns: 1fr 1fr; }
  .admin-announcement { grid-template-columns: 1fr; }
  .admin-announcement .button-row { flex-direction: row; }
  .modal { padding: 16px; }
  .modal-card { padding: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
