:root {
  --brand: #0b4b8f;
  --brand-dark: #073465;
  --brand-light: #eaf3fb;
  --accent: #ef6b32;
  --green: #6da82d;
  --red: #d7463c;
  --ink: #162235;
  --muted: #6d7888;
  --line: #e4e9ef;
  --surface: #ffffff;
  --canvas: #f4f7fa;
  --gold: #c99a43;
  --shadow: 0 18px 55px rgba(22, 54, 88, .10);
  --shadow-soft: 0 8px 28px rgba(22, 54, 88, .08);
  --radius: 20px;
  --container: min(1180px, calc(100vw - 48px));
  --header-height: 84px;
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); min-width: 320px; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; transform: translateY(-160%); padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.skip-link:focus { transform: none; }
.container { width: var(--container); margin: 0 auto; }
.muted { color: var(--muted); }
.text-brand { color: var(--brand); }
.text-accent { color: var(--accent); }
.clamp-2 { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.clamp-3 { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-height); background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(11,75,143,.10); backdrop-filter: blur(18px); }
.header-inner { width: var(--container); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 270px; }
.brand img { width: 60px; height: 60px; object-fit: contain; }
.brand-title { display: block; font-family: "STKaiti", "KaiTi", serif; font-size: 23px; line-height: 1.15; font-weight: 800; color: var(--brand-dark); white-space: nowrap; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; }
.nav-link { position: relative; padding: 13px 11px; border-radius: 11px; color: #3c4b5f; font-weight: 600; font-size: 15px; white-space: nowrap; transition: .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--brand); background: var(--brand-light); }
.nav-link.active::after { content: ""; position: absolute; left: 24%; right: 24%; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.icon-button, .mobile-menu-button { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--brand); }
.mobile-menu-button { display: none; }
.user-chip { display: flex; align-items: center; gap: 9px; max-width: 150px; padding: 6px 11px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.user-chip-avatar { display: grid; place-items: center; width: 31px; height: 31px; overflow: hidden; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 12px; }
.user-chip-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.mobile-drawer { position: fixed; top: var(--header-height); left: 0; right: 0; z-index: 99; display: none; padding: 14px 20px 20px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
.mobile-drawer.open { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mobile-drawer .nav-link { text-align: center; }

/* Global components */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 19px; border: 1px solid transparent; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(11,75,143,.18); }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0 25px; border-radius: 15px; }
.btn-secondary { color: var(--brand); border-color: rgba(11,75,143,.22); background: #fff; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-accent { background: var(--accent); }
.btn-danger { background: var(--red); }
.btn-block { width: 100%; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card { border: 1px solid rgba(11,75,143,.08); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.padded-card { padding: 26px; }
.section { padding: 74px 0; }
.section-white { background: #fff; }
.section-tint { background: linear-gradient(180deg, #f5f9fd, #eef4f8); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--accent); }
.section-title { margin: 0; color: var(--brand-dark); font-family: "STKaiti", "KaiTi", serif; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; }
.section-desc { max-width: 650px; margin: 10px 0 0; color: var(--muted); line-height: 1.8; }
.section-link { color: var(--brand); font-weight: 800; white-space: nowrap; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chip-row { display: flex; gap: 9px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-weight: 700; }
.chip.active, .chip:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.badge { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 999px; background: var(--brand-light); color: var(--brand); font-size: 12px; font-weight: 800; }
.badge-accent { background: #fff1ea; color: #ca4c1b; }
.badge-green { background: #eef7e7; color: #558321; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider { height: 1px; margin: 18px 0; background: var(--line); }
.loading-state, .empty-state, .error-state { display: grid; place-items: center; min-height: 300px; padding: 44px 22px; text-align: center; }
.loading-state > div { display: grid; justify-items: center; }
.loading-spinner { width: 42px; height: 42px; margin: 0 auto; border: 4px solid #dce9f5; border-top-color: var(--brand); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.state-icon { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 16px; border-radius: 24px; background: var(--brand-light); color: var(--brand); }
.state-icon .icon { width: 34px; height: 34px; }
.empty-state .state-icon, .error-state .state-icon { margin: 0 auto 16px; }
.empty-state h3, .error-state h3 { margin: 0 0 8px; }
.empty-state p, .error-state p { max-width: 460px; margin: 0 0 18px; color: var(--muted); }
.skeleton { overflow: hidden; border-radius: 12px; background: linear-gradient(90deg,#edf1f4 20%,#f8fafb 40%,#edf1f4 60%); background-size: 300% 100%; animation: shine 1.2s infinite linear; }
@keyframes shine { to { background-position-x: -300%; } }
.image-fallback { display: grid; place-items: center; min-height: 160px; background: radial-gradient(circle at 74% 24%, rgba(109,168,45,.48), transparent 24%), radial-gradient(circle at 20% 80%, rgba(239,107,50,.58), transparent 28%), linear-gradient(135deg, #0b4b8f, #2d78b6); color: rgba(255,255,255,.86); font-weight: 800; letter-spacing: 4px; }
.image-fallback span { padding: 14px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; }

/* Home hero */
.hero { position: relative; min-height: 620px; overflow: hidden; color: #fff; background: linear-gradient(115deg, #073465 0%, #0b4b8f 50%, #1787b8 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,27,54,.78) 0%, rgba(3,34,68,.46) 52%, rgba(3,34,68,.12) 100%); z-index: 1; }
.hero::after { content: ""; position: absolute; right: -4vw; bottom: -19vw; width: 62vw; height: 42vw; border-radius: 50% 50% 0 0; background: linear-gradient(150deg, rgba(255,255,255,.18), rgba(109,168,45,.34)); transform: rotate(-7deg); box-shadow: -9vw -4vw 0 rgba(255,255,255,.07); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .64; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .65fr); align-items: center; gap: 60px; min-height: 620px; padding: 70px 0 96px; }
.hero-copy { max-width: 720px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); font-size: 13px; letter-spacing: 1px; }
.hero-title { margin: 0; font-family: "STKaiti", "KaiTi", serif; font-size: clamp(42px, 5.7vw, 72px); line-height: 1.13; text-shadow: 0 4px 20px rgba(0,0,0,.15); }
.hero-subtitle { max-width: 660px; margin: 22px 0 28px; color: rgba(255,255,255,.84); font-size: 18px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn-secondary { border-color: rgba(255,255,255,.42); color: #fff; background: rgba(255,255,255,.11); backdrop-filter: blur(8px); }
.hero-emblem { position: relative; display: grid; place-items: center; }
.emblem-ring { display: grid; place-items: center; width: min(340px, 29vw); aspect-ratio: 1; padding: 30px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.12); backdrop-filter: blur(12px); box-shadow: 0 30px 80px rgba(0,0,0,.18), inset 0 0 0 12px rgba(255,255,255,.06); }
.emblem-ring img { width: 100%; filter: drop-shadow(0 14px 22px rgba(0,0,0,.18)); }
.hero-stats { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(4, 1fr); width: var(--container); margin: -55px auto 0; overflow: hidden; border: 1px solid rgba(11,75,143,.08); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.hero-stat { padding: 24px 28px; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: 0; }
.hero-stat strong { display: block; color: var(--brand); font-size: 29px; line-height: 1; }
.hero-stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

.feature-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.feature-card { position: relative; min-height: 150px; padding: 23px 18px; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); transition: .25s ease; }
.feature-card::after { content: ""; position: absolute; right: -25px; bottom: -32px; width: 90px; height: 90px; border-radius: 50%; background: var(--brand-light); transition: .25s ease; }
.feature-card:hover { transform: translateY(-5px); color: #fff; background: var(--brand); }
.feature-card:hover::after { background: rgba(255,255,255,.1); transform: scale(1.3); }
.feature-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 15px; background: var(--brand-light); }
.feature-icon img { width: 28px; height: 28px; object-fit: contain; }
.feature-card:hover .feature-icon { background: #fff; }
.feature-card strong { position: relative; z-index: 1; display: block; font-size: 16px; }
.feature-card small { position: relative; z-index: 1; display: block; margin-top: 6px; color: var(--muted); }
.feature-card:hover small { color: rgba(255,255,255,.75); }

.home-news-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 25px; }
.lead-news { position: relative; min-height: 420px; overflow: hidden; border-radius: 22px; background: var(--brand); color: #fff; }
.lead-news > img, .lead-news > .image-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead-news::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(3,25,50,.88) 100%); }
.lead-news-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 30px; }
.lead-news h3 { margin: 12px 0 10px; font-size: clamp(23px,2.5vw,32px); }
.lead-news p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.7; }
.news-stack { display: grid; gap: 12px; }
.news-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; min-height: 96px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); }
.news-row-image { width: 110px; height: 78px; overflow: hidden; border-radius: 12px; }
.news-row-image img, .news-row-image .image-fallback { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.news-row h4 { margin: 7px 0; font-size: 16px; line-height: 1.45; }
.news-row time { color: var(--muted); font-size: 12px; }

.event-card, .article-card, .specialty-card, .product-card { overflow: hidden; transition: .25s ease; }
.event-card:hover, .article-card:hover, .specialty-card:hover, .product-card:hover, .member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-cover { position: relative; height: 200px; overflow: hidden; }
.card-cover > img, .card-cover > .image-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-cover > img { transform: scale(1.04); }
.card-cover-badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.card-body { padding: 21px; }
.card-title { margin: 0 0 10px; font-size: 19px; line-height: 1.48; }
.card-copy { margin: 0 0 15px; color: var(--muted); line-height: 1.7; }
.event-date { display: inline-grid; place-items: center; min-width: 58px; min-height: 62px; padding: 7px; border-radius: 14px; background: var(--brand); color: #fff; }
.event-date strong { font-size: 23px; }
.event-date span { font-size: 11px; }
.event-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }

.member-strip { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 16px; }
.member-card { padding: 22px 14px; text-align: center; transition: .25s ease; }
.member-avatar { display: grid; place-items: center; width: 82px; height: 82px; margin: 0 auto 14px; overflow: hidden; border: 4px solid #fff; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #54a4d6); color: #fff; box-shadow: 0 0 0 3px var(--brand-light); font-weight: 800; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-card h3 { margin: 0; font-size: 17px; }
.member-card p { min-height: 38px; margin: 7px 0 10px; color: var(--muted); font-size: 13px; }
.supply-board { display: grid; grid-template-columns: .75fr 1.25fr; overflow: hidden; border-radius: 24px; background: var(--brand); color: #fff; }
.supply-intro { position: relative; padding: 42px; overflow: hidden; }
.supply-intro::after { content: "供需"; position: absolute; right: -20px; bottom: -35px; color: rgba(255,255,255,.06); font-size: 120px; font-weight: 900; }
.supply-intro h2 { margin: 0 0 14px; font-size: 34px; }
.supply-intro p { color: rgba(255,255,255,.74); line-height: 1.8; }
.supply-list { padding: 18px; background: #fff; color: var(--ink); }
.supply-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 17px 14px; border-bottom: 1px solid var(--line); }
.supply-item:last-child { border-bottom: 0; }
.supply-type { display: grid; place-items: center; height: 38px; border-radius: 10px; background: var(--brand-light); color: var(--brand); font-weight: 800; }
.supply-type.demand { background: #fff1ea; color: #c95123; }
.supply-item h4 { margin: 0 0 5px; }
.supply-item p { margin: 0; color: var(--muted); font-size: 13px; }

/* Inner pages */
.page-hero { position: relative; overflow: hidden; padding: 76px 0 66px; color: #fff; background: linear-gradient(125deg, var(--brand-dark), var(--brand) 62%, #2789b5); }
.page-hero::after { content: ""; position: absolute; top: -100px; right: -40px; width: 430px; height: 430px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 54px rgba(255,255,255,.05), 0 0 0 110px rgba(255,255,255,.03); }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 18px; color: rgba(255,255,255,.67); font-size: 13px; }
.page-hero h1 { margin: 0; font-family: "STKaiti", "KaiTi", serif; font-size: clamp(34px, 4.5vw, 54px); }
.page-hero p { max-width: 660px; margin: 14px 0 0; color: rgba(255,255,255,.76); line-height: 1.8; }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.search-box { display: flex; align-items: center; gap: 9px; min-width: min(390px, 100%); min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.pagination button { min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; }
.pagination button.active { border-color: var(--brand); background: var(--brand); color: #fff; }

.article-list { display: grid; gap: 17px; }
.article-list-item { display: grid; grid-template-columns: 260px 1fr; min-height: 190px; overflow: hidden; }
.article-list-cover { height: 100%; min-height: 190px; }
.article-list-cover img, .article-list-cover .image-fallback { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.article-list-copy { display: flex; flex-direction: column; padding: 26px; }
.article-list-copy h2 { margin: 11px 0 9px; font-size: 22px; }
.article-list-copy p { margin: 0; color: var(--muted); line-height: 1.75; }
.article-list-copy .meta-row { margin-top: auto; padding-top: 15px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.detail-main { padding: 34px; }
.detail-title { margin: 0 0 15px; color: var(--brand-dark); font-family: "STKaiti", "KaiTi", serif; font-size: clamp(29px,4vw,43px); line-height: 1.3; }
.detail-cover { width: 100%; max-height: 480px; margin: 25px 0; border-radius: 18px; object-fit: cover; }
.rich-content { color: #334155; font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.rich-content img { display: block; height: auto; margin: 20px auto; border-radius: 12px; }
.rich-content h2, .rich-content h3 { margin-top: 30px; color: var(--brand-dark); line-height: 1.45; }
.detail-side { position: sticky; top: calc(var(--header-height) + 24px); display: grid; gap: 18px; }
.info-list { display: grid; gap: 14px; }
.info-row { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--muted); line-height: 1.55; }
.info-row strong { display: block; margin-bottom: 3px; color: var(--ink); }

.about-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.about-visual { position: relative; min-height: 440px; border-radius: 28px; background: linear-gradient(145deg, var(--brand), #2483b0); box-shadow: var(--shadow); }
.about-visual img { position: absolute; left: 50%; top: 50%; width: 54%; transform: translate(-50%,-50%); filter: drop-shadow(0 20px 28px rgba(0,0,0,.2)); }
.about-visual::before, .about-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.about-visual::before { inset: 40px; }
.about-visual::after { inset: 75px; }
.about-copy { font-size: 16px; line-height: 2; }
.mission-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 35px; }
.mission-item { padding: 22px; border-radius: 18px; background: var(--brand-light); }
.mission-item strong { display: block; margin-bottom: 8px; color: var(--brand); font-size: 18px; }

.leadership-group { margin-bottom: 35px; }
.leadership-group h2 { margin: 0 0 18px; color: var(--brand-dark); }
.leader-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.leader-card { overflow: hidden; }
.leader-photo { height: 280px; }
.leader-photo img, .leader-photo .image-fallback { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.leader-card .card-body { text-align: center; }

.member-directory { grid-template-columns: repeat(4,minmax(0,1fr)); }
.member-directory .member-card { min-height: 250px; }
.member-profile { display: grid; grid-template-columns: 300px 1fr; overflow: hidden; }
.member-profile-aside { padding: 34px; color: #fff; background: linear-gradient(145deg,var(--brand-dark),var(--brand)); text-align: center; }
.member-profile-aside .member-avatar { width: 132px; height: 132px; margin-bottom: 22px; }
.member-profile-aside h1 { margin: 0 0 7px; }
.member-profile-main { padding: 38px; }
.definition-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.definition-item { padding: 17px; border-radius: 14px; background: var(--canvas); }
.definition-item span { display: block; color: var(--muted); font-size: 13px; }
.definition-item strong { display: block; margin-top: 7px; }

.supply-card { display: grid; gap: 12px; padding: 23px; }
.supply-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.supply-card h3 { margin: 0; font-size: 19px; }
.supply-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.points-podium { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: end; gap: 18px; max-width: 800px; margin: 0 auto 38px; }
.podium-card { padding: 28px 20px; text-align: center; }
.podium-card.first { padding-top: 45px; border: 2px solid #e7bf68; background: linear-gradient(180deg,#fff9e8,#fff); order: 2; }
.podium-card.second { order: 1; }
.podium-card.third { order: 3; }
.podium-rank { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; background: var(--brand-light); color: var(--brand); font-size: 20px; font-weight: 900; }
.podium-card.first .podium-rank { background: #e9b84f; color: #fff; }
.points-table { width: 100%; border-collapse: collapse; overflow: hidden; }
.points-table th, .points-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; }
.points-table th { color: var(--muted); background: #f8fafc; font-size: 13px; }

.specialty-card .price, .product-card .price { color: var(--red); font-size: 21px; font-weight: 900; }
.product-card .card-body { display: flex; flex-direction: column; min-height: 190px; }
.product-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 15px; }
.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 24px; align-items: start; }
.cart-items { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 18px; align-items: center; padding: 16px; }
.cart-item-cover { width: 100px; height: 90px; overflow: hidden; border-radius: 13px; }
.cart-item-cover img, .cart-item-cover .image-fallback { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.quantity { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.quantity button { width: 35px; height: 35px; border: 0; background: #f7f9fb; }
.quantity input { width: 42px; height: 35px; border: 0; outline: 0; text-align: center; }
.cart-summary { position: sticky; top: calc(var(--header-height) + 24px); }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 26px; }
.contact-panel { padding: 32px; color: #fff; background: linear-gradient(145deg,var(--brand-dark),var(--brand)); }
.contact-panel h2 { margin-top: 0; font-size: 30px; }
.contact-info { display: grid; gap: 20px; margin-top: 30px; }
.contact-info .info-row { color: rgba(255,255,255,.75); }
.contact-info .info-row strong { color: #fff; }
.qr-card { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.1); }
.qr-card img { width: 84px; height: 84px; border-radius: 10px; background: #fff; object-fit: cover; }
.form-card { padding: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.form-group { display: grid; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { color: #3b4859; font-size: 14px; font-weight: 700; }
.form-control { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #dbe2e9; border-radius: 12px; outline: 0; background: #fff; color: var(--ink); transition: .2s ease; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,75,143,.10); }
textarea.form-control { min-height: 126px; resize: vertical; }
.form-help { color: var(--muted); font-size: 12px; line-height: 1.55; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 23px; }

.profile-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 25px; align-items: start; }
.profile-sidebar { position: sticky; top: calc(var(--header-height) + 24px); padding: 18px; }
.profile-user { padding: 15px 8px 22px; text-align: center; border-bottom: 1px solid var(--line); }
.profile-user .member-avatar { width: 76px; height: 76px; }
.profile-menu { display: grid; gap: 5px; margin-top: 14px; }
.profile-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 0; border-radius: 11px; background: transparent; color: #465365; text-align: left; }
.profile-menu button.active, .profile-menu button:hover { background: var(--brand-light); color: var(--brand); font-weight: 700; }
.profile-content { min-height: 520px; padding: 30px; }
.profile-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin-bottom: 24px; }
.profile-stat { padding: 20px; border-radius: 16px; background: var(--canvas); }
.profile-stat strong { display: block; margin-bottom: 5px; color: var(--brand); font-size: 27px; }
.order-list { display: grid; gap: 14px; }
.order-card { padding: 20px; }
.order-card-head, .order-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.order-card-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.order-card-foot { padding-top: 14px; }

/* Modal, toast, footer */
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; background: rgba(8,20,36,.64); backdrop-filter: blur(8px); }
.modal { width: min(560px, 100%); max-height: min(88vh, 820px); overflow: auto; border-radius: 24px; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.28); }
.modal-lg { width: min(820px, 100%); }
.modal-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px 25px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); }
.modal-header h2 { margin: 0; color: var(--brand-dark); }
.modal-close { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--canvas); color: var(--muted); }
.modal-body { padding: 25px; }
#auth-form form { display: grid; gap: 18px; }
.auth-tabs { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; margin-bottom: 22px; padding: 5px; border-radius: 13px; background: var(--canvas); }
.auth-tabs button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 700; }
.auth-tabs button.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-soft); }
.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.auth-links button, .auth-back button { min-height: 38px; padding: 4px 0; border: 0; background: transparent; color: var(--brand); font-weight: 700; }
.auth-links button:hover, .auth-back button:hover { color: var(--brand-dark); text-decoration: underline; }
.auth-back { margin: -6px 0 20px; }
.auth-back button::before { content: "←"; margin-right: 7px; }
.captcha-line, .sms-line { display: grid; grid-template-columns: 1fr 132px; gap: 10px; }
.captcha-image { width: 132px; height: 46px; border: 1px solid var(--line); border-radius: 10px; object-fit: cover; background: var(--canvas); }
.toast-root { position: fixed; z-index: 2000; top: 100px; right: 22px; display: grid; gap: 10px; pointer-events: none; }
.toast { min-width: 260px; max-width: min(390px,calc(100vw - 30px)); padding: 15px 18px; border-radius: 13px; background: #12243a; color: #fff; box-shadow: var(--shadow); animation: toast-in .25s ease; }
.toast.success { background: #387b45; }
.toast.error { background: #b83d37; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }
.site-footer { padding: 55px 0 28px; color: rgba(255,255,255,.72); background: #071f3b; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr 1fr; gap: 38px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: #fff; }
.footer-brand img { width: 64px; height: 64px; }
.footer-brand strong { display: block; font-family: "STKaiti","KaiTi",serif; font-size: 23px; }
.footer-title { margin: 0 0 15px; color: #fff; font-size: 16px; }
.footer-links { display: grid; gap: 11px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 24px; min-height: 22px; margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: 13px; }
.footer-record { color: rgba(255,255,255,.72); text-align: center; text-decoration: none; }
.footer-record:hover { color: #fff; text-decoration: underline; }
.mobile-nav { display: none; }

@media (max-width: 1120px) {
  :root { --container: min(960px, calc(100vw - 40px)); }
  .desktop-nav .nav-link:nth-child(n+7) { display: none; }
  .feature-grid { grid-template-columns: repeat(4,1fr); }
  .member-strip { grid-template-columns: repeat(3,1fr); }
  .member-directory, .leader-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1.2fr repeat(2,.8fr); }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-height: 72px; --container: calc(100vw - 32px); }
  .site-header { height: var(--header-height); }
  .brand { min-width: 0; flex: 1; }
  .brand img { width: 50px; height: 50px; }
  .brand-title { font-size: 19px; }
  .desktop-nav, .header-actions > .btn { display: none; }
  .mobile-menu-button { display: inline-grid; }
  .hero, .hero-inner { min-height: 560px; }
  .hero-inner { grid-template-columns: 1fr; padding: 60px 0 100px; }
  .hero-emblem { display: none; }
  .hero-copy { max-width: 680px; }
  .hero-stats { grid-template-columns: repeat(2,1fr); margin-top: -50px; }
  .hero-stat:nth-child(2) { border-right: 0; }
  .hero-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature-grid { grid-template-columns: repeat(3,1fr); }
  .home-news-layout, .supply-board, .about-layout, .contact-grid, .detail-layout, .cart-layout, .profile-layout { grid-template-columns: 1fr; }
  .detail-side, .cart-summary, .profile-sidebar { position: static; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .leader-grid, .member-directory { grid-template-columns: repeat(3,1fr); }
  .mission-grid { grid-template-columns: 1fr; }
  .article-list-item { grid-template-columns: 210px 1fr; }
  .member-profile { grid-template-columns: 240px 1fr; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid > :last-child { grid-column: auto; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .mobile-nav { position: fixed; z-index: 90; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5,1fr); min-height: 62px; padding: 7px; border: 1px solid rgba(11,75,143,.1); border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: 0 16px 45px rgba(5,32,59,.22); backdrop-filter: blur(18px); }
  .mobile-nav a { display: grid; place-items: center; gap: 2px; color: var(--muted); font-size: 11px; }
  .mobile-nav a.active { color: var(--brand); font-weight: 800; }
  .mobile-nav .icon { width: 21px; height: 21px; }
}

@media (max-width: 620px) {
  :root { --container: calc(100vw - 24px); --radius: 17px; }
  .header-inner { gap: 10px; }
  .brand { gap: 9px; }
  .brand img { width: 44px; height: 44px; }
  .brand-title { font-size: 16px; }
  .icon-button, .mobile-menu-button { width: 39px; height: 39px; }
  .mobile-drawer.open { grid-template-columns: repeat(2,1fr); }
  .hero, .hero-inner { min-height: 520px; }
  .hero-bg { opacity: .3; }
  .hero::before { background: rgba(3,27,54,.68); }
  .hero-inner { padding-top: 42px; }
  .hero-kicker { font-size: 11px; }
  .hero-title { font-size: 42px; }
  .hero-subtitle { margin-top: 17px; font-size: 15px; line-height: 1.75; }
  .hero-actions .btn { flex: 1; padding: 0 13px; }
  .hero-stat { padding: 19px; }
  .hero-stat strong { font-size: 23px; }
  .section { padding: 52px 0; }
  .section-heading { align-items: start; margin-bottom: 21px; }
  .section-title { font-size: 29px; }
  .section-link { font-size: 13px; }
  .feature-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .feature-card { min-height: 132px; padding: 18px 14px; }
  .feature-icon { width: 42px; height: 42px; margin-bottom: 13px; }
  .home-news-layout { gap: 12px; }
  .lead-news { min-height: 330px; }
  .lead-news-copy { padding: 22px; }
  .news-row { grid-template-columns: 92px 1fr; gap: 12px; }
  .news-row-image { width: 92px; height: 72px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .member-strip, .leader-grid, .member-directory { grid-template-columns: repeat(2,1fr); gap: 11px; }
  .member-card { padding: 18px 9px; }
  .member-avatar { width: 68px; height: 68px; }
  .supply-intro { padding: 30px 24px; }
  .supply-list { padding: 10px; }
  .supply-item { grid-template-columns: 60px 1fr; padding: 14px 8px; }
  .supply-item time { display: none; }
  .page-hero { padding: 55px 0 48px; }
  .page-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; }
  .article-list-item { grid-template-columns: 1fr; }
  .article-list-cover { height: 190px; }
  .article-list-copy { padding: 20px; }
  .detail-main { padding: 22px 18px; }
  .padded-card { padding: 20px; }
  .about-visual { min-height: 330px; }
  .member-profile { grid-template-columns: 1fr; }
  .member-profile-main, .member-profile-aside { padding: 25px 20px; }
  .definition-grid, .form-grid, .profile-stats { grid-template-columns: 1fr; }
  .points-podium { grid-template-columns: 1fr; }
  .podium-card.first, .podium-card.second, .podium-card.third { order: initial; padding-top: 28px; }
  .points-table th:nth-child(4), .points-table td:nth-child(4) { display: none; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item-cover { width: 80px; height: 74px; }
  .cart-item > :last-child { grid-column: 2; }
  .contact-panel, .form-card, .profile-content { padding: 24px 19px; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; }
  .modal-body { padding: 21px 18px 30px; }
  .captcha-line, .sms-line { grid-template-columns: 1fr 112px; }
  .captcha-image { width: 112px; }
  .toast-root { top: 82px; right: 15px; left: 15px; }
  .toast { min-width: 0; max-width: none; }
}

/* Extended responsive pages and interactions */
.service-links, .center-actions, .inline-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.service-links { justify-content: flex-end; margin: 0 0 22px; }
.center-actions { justify-content: center; margin-top: 20px; }
.table-scroll { overflow-x: auto; }
.notice-card { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 22px; padding: 16px 18px; border: 1px solid #cfe0ee; border-radius: 14px; background: var(--brand-light); color: var(--brand-dark); line-height: 1.7; }
.notice-card .icon { flex: 0 0 auto; margin-top: 2px; }
.points-rules { margin-top: 28px; }
.specialty-banner { height: min(340px, 32vw); margin-top: 28px; overflow: hidden; border-radius: var(--radius); }
.specialty-banner img, .specialty-banner .image-fallback { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-bottom: 24px; }
.detail-gallery img, .detail-gallery .image-fallback { width: 100%; min-height: 220px; max-height: 420px; object-fit: cover; border-radius: 14px; }
.detail-gallery > :first-child:last-child { grid-column: 1 / -1; }
.product-detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(380px,.85fr); gap: 25px; align-items: start; }
.product-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 10px; overflow: hidden; }
.product-gallery img, .product-gallery .image-fallback { width: 100%; min-height: 220px; object-fit: cover; border-radius: 12px; }
.product-gallery > :first-child:last-child { grid-column: 1 / -1; min-height: 480px; }
.product-info { position: sticky; top: calc(var(--header-height) + 24px); padding: 34px; }
.product-info h1 { margin: 14px 0 6px; font-size: clamp(28px,3vw,42px); }
.product-price { display: flex; align-items: baseline; gap: 13px; margin: 22px 0; }
.product-price strong { color: var(--red); font-size: 35px; }
.product-price s { color: var(--muted); }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cart-item.unavailable { opacity: .65; }
.cart-item-actions { display: grid; justify-items: end; gap: 9px; }
.summary-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.summary-row.total { margin-bottom: 18px; color: var(--red); font-size: 20px; }
.text-danger { color: #b83d37 !important; }
.join-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 28px; }
.join-step { display: grid; gap: 8px; padding: 22px; }
.join-step > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 900; }
.join-step small { color: var(--muted); line-height: 1.6; }
.checkbox-field label { display: flex; gap: 9px; align-items: center; }
.profile-user small { display: block; margin-top: 6px; color: var(--muted); }
.avatar-editor { display: flex; align-items: center; gap: 18px; margin-bottom: 25px; }
.avatar-editor .member-avatar { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.narrow-form { display: grid; gap: 18px; max-width: 520px; }
.modal-open { overflow: hidden; }
.additional-attendee { position: relative; margin: 15px 0; padding: 17px; background: var(--canvas); box-shadow: none; }
.additional-attendee > .btn { position: absolute; top: 9px; right: 9px; }
.success-panel { text-align: center; }
.success-panel .state-icon { margin: 0 auto 12px; }
.qr-card { display: grid; grid-template-columns: 94px 1fr; gap: 15px; align-items: center; margin-top: 28px; padding: 14px; border-radius: 15px; background: rgba(255,255,255,.12); }
.qr-card img { width: 94px; height: 94px; object-fit: cover; border-radius: 10px; }
.supply-card .meta-row .icon { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-info { position: static; }
  .join-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .service-links { justify-content: stretch; }
  .service-links .btn { flex: 1; }
  .specialty-banner { height: 190px; }
  .detail-gallery, .product-gallery { grid-template-columns: 1fr; }
  .detail-gallery > *, .product-gallery > * { grid-column: 1 !important; min-height: 220px !important; }
  .product-info { padding: 23px 18px; }
  .buy-row .btn { flex: 1 1 calc(50% - 5px); }
  .buy-row .quantity { flex: 1 1 100%; justify-content: center; }
  .cart-item-actions { justify-items: stretch; }
  .join-steps { grid-template-columns: 1fr; }
  .join-step { grid-template-columns: 42px 1fr; align-items: center; }
  .join-step small { grid-column: 2; }
  .order-card-head, .order-card-foot { align-items: flex-start; flex-direction: column; }
  .inline-actions { width: 100%; }
  .inline-actions .btn { flex: 1; }
  .qr-card { grid-template-columns: 78px 1fr; }
  .qr-card img { width: 78px; height: 78px; }
}
.location-control { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: stretch; }
.location-control .btn { min-width: 112px; }
.location-control textarea[readonly] { background: #f7faf9; color: #34463f; }
.location-picker-overlay { position: fixed; inset: 0; z-index: 1200; }
.location-picker-backdrop { display: grid; width: 100%; height: 100%; place-items: center; padding: 18px; background: rgba(8,20,36,.7); backdrop-filter: blur(8px); }
.location-picker-panel { display: grid; width: min(1080px,100%); max-height: 94vh; grid-template-rows: auto minmax(0,1fr); overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.location-picker-panel .modal-header > div { min-width: 0; }
.location-picker-panel .modal-header p { margin: 5px 0 0; }
.location-picker-body { display: grid; min-height: 0; gap: 12px; padding: 18px 22px 22px; overflow: auto; }
.location-picker-toolbar { display: grid; grid-template-columns: minmax(0,1fr) minmax(130px,190px) auto; gap: 10px; }
.location-picker-toolbar label { min-width: 0; }
.location-picker-workspace { display: grid; min-height: 420px; grid-template-columns: minmax(0,1.65fr) minmax(260px,.75fr); overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--canvas); }
.location-picker-map { min-height: 420px; background: #e9efed; }
.location-picker-results { display: flex; min-width: 0; max-height: 420px; flex-direction: column; overflow: auto; border-left: 1px solid var(--line); background: #fff; }
.location-picker-result { display: grid; width: 100%; gap: 5px; padding: 14px 15px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-align: left; }
.location-picker-result:hover { background: #f5f9f8; }
.location-picker-result.active { box-shadow: inset 4px 0 0 var(--brand); background: #edf7f5; }
.location-picker-result strong, .location-picker-result span, .location-picker-result small { overflow-wrap: anywhere; }
.location-picker-result strong { color: var(--brand-dark); font-size: 14px; }
.location-picker-result span { font-size: 13px; line-height: 1.5; }
.location-picker-result small { color: var(--muted); }
.location-picker-empty, .location-picker-loading, .location-picker-error, .location-picker-reverse { display: grid; min-height: 160px; padding: 24px; place-content: center; gap: 7px; color: var(--muted); line-height: 1.65; text-align: center; }
.location-picker-loading::before { content: ''; width: 26px; height: 26px; margin: 0 auto 4px; border: 3px solid #d9e6e2; border-top-color: var(--brand); border-radius: 50%; animation: location-spin .75s linear infinite; }
.location-picker-error { color: var(--danger); }
.location-picker-reverse strong { color: var(--brand-dark); }
.location-picker-reverse span { color: var(--ink); }
.location-picker-selection { min-height: 46px; margin: 0; padding: 12px 14px; border-radius: 12px; background: #eef7f5; color: var(--brand-dark); line-height: 1.55; overflow-wrap: anywhere; }
.location-picker-help { margin: -2px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
@keyframes location-spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .location-picker-workspace { min-height: 0; grid-template-columns: 1fr; }
  .location-picker-map { min-height: 360px; }
  .location-picker-results { max-height: 250px; border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 620px) {
  .location-control { grid-template-columns: 1fr; }
  .location-picker-backdrop { align-items: end; padding: 0; }
  .location-picker-panel { width: 100%; max-height: 96vh; border-radius: 24px 24px 0 0; }
  .location-picker-panel .modal-header { padding: 16px; }
  .location-picker-panel .modal-header p { font-size: 12px; }
  .location-picker-body { padding: 12px 12px calc(16px + env(safe-area-inset-bottom)); }
  .location-picker-toolbar { grid-template-columns: minmax(0,1fr) auto; }
  .location-picker-region { grid-column: 1 / -1; grid-row: 2; }
  .location-picker-map { min-height: 300px; }
  .location-picker-results { max-height: 210px; }
  .location-picker-body .form-actions { margin-top: 0; }
}
