/* ============================================================
   C端样式：典雅酒红 + 鎏金，自动适配 PC / 手机
   ============================================================ */
:root {
    --wine: #6e0b1a;
    --wine-2: #8c1326;
    --wine-3: #3d060d;
    --crimson: #a3132b;
    --gold: #c9a24d;
    --gold-light: #f3dc9a;
    --gold-dark: #8a6a24;
    --gold-pale: #e9cf8b;
    --cream: #f7efdf;
    --ink: #2b1a12;
    --ink-soft: #6b5a4d;
    --muted: rgba(247, 239, 223, .72);
    --radius: 16px;
    --shadow: 0 18px 40px rgba(20, 0, 4, .35);
    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", "KaiTi", serif;
    --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--cream);
    background-color: var(--wine-3);
    background-image:
        radial-gradient(ellipse 120% 55% at 50% -8%, rgba(255, 205, 120, .30), transparent 62%),
        linear-gradient(180deg, #5a0a15 0%, #7c1020 34%, #470810 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 0L48 24L24 48L0 24Z' fill='none' stroke='%23f6dc94' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 48px 48px;
}
img { max-width: 100%; }
a { color: var(--gold-pale); }
::selection { background: rgba(201, 162, 77, .45); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- 头部 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(61, 6, 13, .80);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 162, 77, .35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-light); text-decoration: none; min-width: 0; }
.brand-logo { height: 36px; width: auto; max-width: 180px; object-fit: contain; }
.brand-name {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(180deg, #fff2c4, #d7ad55 60%, #f4df9f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.site-nav { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nav-link {
    display: inline-block;
    padding: 8px 10px;
    color: rgba(247, 239, 223, .85);
    text-decoration: none;
    font-size: 15px;
    border-radius: 8px;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.nav-link:hover { color: #fff3cf; background: rgba(255, 230, 170, .1); }
.nav-link.is-active { color: var(--gold-light); }
.nav-login { border: 1px solid rgba(201, 162, 77, .6); color: var(--gold-light); padding: 6px 16px; border-radius: 999px; }
.nav-form { display: inline; margin: 0; }
.nav-button { background: none; border: 0; font: inherit; font-size: 15px; cursor: pointer; font-family: inherit; }
.show-sm { display: none; }

/* ---------- 主体 / 底部 ---------- */
.site-main { position: relative; z-index: 1; flex: 1; padding: 20px 0 56px; }
.site-footer {
    position: relative;
    z-index: 1;
    padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
    text-align: center;
    font-size: 13px;
    color: rgba(247, 239, 223, .6);
    border-top: 1px solid rgba(201, 162, 77, .25);
}
.footer-html p { margin: 0 0 4px; }
.footer-html a { color: rgba(247, 239, 223, .78); }
.footer-icp { display: inline-block; margin-top: 4px; color: rgba(247, 239, 223, .6); text-decoration: none; }
.footer-icp:hover { color: var(--gold-pale); }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 68px; text-align: center; }
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-size: 14px;
    letter-spacing: 6px;
    color: var(--gold-pale);
}
.hero-eyebrow span { display: inline-block; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-eyebrow span + span { transform: scaleX(-1); }
.hero-title {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(30px, 6vw, 56px);
    line-height: 1.2;
    letter-spacing: 4px;
    background: linear-gradient(180deg, #fff4cf 0%, #e9c877 45%, #b98a2e 72%, #f7e4a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .35));
    text-wrap: balance;
}
.hero-sub { margin: 14px auto 0; max-width: 560px; color: var(--muted); font-size: 16px; }
.hero-actions { margin-top: 30px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-deco {
    position: absolute;
    z-index: 1;
    right: -150px;
    top: 50%;
    width: 520px;
    height: 520px;
    margin-top: -260px;
    opacity: .5;
    pointer-events: none;
}
.medallion {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from -22.5deg,
        #a3132b 0 45deg, #fbf3e0 0 90deg, #a3132b 0 135deg, #fbf3e0 0 180deg,
        #a3132b 0 225deg, #fbf3e0 0 270deg, #a3132b 0 315deg, #fbf3e0 0 360deg);
    box-shadow: 0 0 0 6px rgba(201, 162, 77, .95), 0 0 0 14px rgba(109, 10, 23, .9), 0 30px 80px rgba(0, 0, 0, .5);
    animation: rotate 60s linear infinite;
}
.medallion::after {
    content: '';
    position: absolute;
    inset: 36%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #c21f38, #6e0b1a 70%);
    border: 4px solid #dcb35a;
}
@keyframes rotate { to { transform: rotate(360deg); } }

/* ---------- 区块 ---------- */
.section { padding: 36px 0; }
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 28px;
    font-family: var(--font-serif);
    font-size: clamp(22px, 3.4vw, 30px);
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--gold-light);
    text-align: center;
}
.section-title::before, .section-title::after { content: ''; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.section-title::after { background: linear-gradient(90deg, var(--gold), transparent); }

.prize-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.prize-card {
    position: relative;
    background: linear-gradient(180deg, #fff8e8, #f3e6c8);
    color: var(--ink);
    border-radius: 14px;
    padding: 34px 14px 18px;
    text-align: center;
    border: 1px solid #e4cf9a;
    box-shadow: 0 10px 26px rgba(30, 0, 5, .3);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.prize-card::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(201, 162, 77, .55);
    border-radius: 10px;
    pointer-events: none;
}
.prize-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(30, 0, 5, .38); }
.prize-level {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #b8172e, #7a0f1f);
    color: #fbe9b8;
    font-size: 13px;
    letter-spacing: 2px;
    padding: 4px 16px;
    border-radius: 0 0 10px 10px;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prize-figure {
    width: 112px;
    height: 112px;
    margin: 0 auto 12px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 20deg, #f3dc9a, #b9852c, #f3dc9a, #8f6420, #f3dc9a);
}
.prize-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #fff, #f1e2bf);
    display: block;
}
.prize-name {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.prize-value { margin: 6px 0 0; font-size: 13px; color: var(--ink-soft); }
.prize-value strong { color: #a8232f; font-size: 15px; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* ---------- 卡片 / 富文本 ---------- */
.card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 244, 220, .10), rgba(255, 244, 220, .05));
    border: 1px solid rgba(201, 162, 77, .45);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 14px;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 2px;
}
.card-title small { font-family: var(--font-sans); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.paper-card {
    background: linear-gradient(180deg, #fbf5e8, #f4e9d2);
    color: var(--ink);
    padding: 28px clamp(16px, 4vw, 40px) 32px;
}
.paper-card .section-title { color: #7a0f1f; }
.rich-text { line-height: 1.9; font-size: 15px; }
.rich-text ul, .rich-text ol { padding-left: 1.4em; margin: 0; }
.rich-text p { margin: 0 0 .6em; }
.rich-text a { color: #a8232f; }

/* ---------- 提示 ---------- */
.alert { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-size: 15px; border: 1px solid transparent; }
.alert-success { background: rgba(70, 160, 100, .18); border-color: rgba(120, 220, 160, .45); color: #d9f7e4; }
.alert-error { background: rgba(200, 40, 60, .25); border-color: rgba(255, 120, 140, .5); color: #ffdbe0; }
.error-list {
    margin: 0 0 18px;
    padding: 12px 16px 12px 32px;
    border-radius: 10px;
    background: rgba(200, 40, 60, .25);
    border: 1px solid rgba(255, 120, 140, .5);
    color: #ffdbe0;
    font-size: 14px;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s, box-shadow .2s, filter .2s, background .2s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-gold {
    position: relative;
    overflow: hidden;
    color: #3a0a0f;
    background: linear-gradient(180deg, #fbe9b0 0%, #e4bf6a 50%, #c99a3e 100%);
    border-color: #f6e3a5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.btn-gold::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -80%;
    width: 50%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-20deg);
    animation: shine 3.4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes shine { 0%, 60% { left: -80%; } 100% { left: 140%; } }
.btn-gold:hover { filter: brightness(1.05); box-shadow: 0 8px 22px rgba(0, 0, 0, .32), 0 0 18px rgba(246, 220, 148, .45), inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn-outline { color: var(--gold-light); border-color: rgba(201, 162, 77, .75); background: rgba(61, 6, 13, .35); }
.btn-outline:hover { background: rgba(201, 162, 77, .15); }
.btn-lg { min-height: 52px; padding: 12px 40px; font-size: 18px; letter-spacing: 2px; }
.btn-block { width: 100%; }
.btn[hidden] { display: none; }

/* ---------- 表单 ---------- */
.form .field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--gold-pale); letter-spacing: 1px; }
.field input, .field select, .field textarea {
    width: 100%;
    font: inherit;
    font-size: 16px;
    color: var(--cream);
    background: rgba(40, 4, 9, .45);
    border: 1px solid rgba(201, 162, 77, .45);
    border-radius: 10px;
    padding: 11px 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 77, .25); }
.field input::placeholder { color: rgba(247, 239, 223, .4); }
.field input[readonly] { color: rgba(247, 239, 223, .62); background: rgba(0, 0, 0, .22); cursor: default; }
.field-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.form-actions { margin-top: 6px; }

/* ---------- 登录 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 24px 20px 40px; }
.auth-card { width: 100%; max-width: 420px; padding: 36px 28px 28px; text-align: center; }
.auth-title { margin: 0; font-family: var(--font-serif); font-size: 26px; letter-spacing: 4px; color: var(--gold-light); font-weight: 700; }
.auth-sub { margin: 8px 0 24px; font-size: 14px; color: var(--muted); }
.auth-card .field { text-align: left; }
.auth-links { margin: 18px 0 0; font-size: 14px; }

/* ---------- 页面标题 / 会员信息 ---------- */
.page-head { text-align: center; margin: 10px 0 26px; }
.page-title { margin: 0; font-family: var(--font-serif); font-size: clamp(24px, 4vw, 32px); letter-spacing: 4px; color: var(--gold-light); font-weight: 700; }
.page-sub { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.profile-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.profile-summary { padding: 28px 20px; text-align: center; }
.avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 700;
    color: #3a0a0f;
    background: linear-gradient(180deg, #fbe9b0, #c99a3e);
    border: 3px solid #fff0bf;
}
.profile-username { margin: 0; font-family: var(--font-serif); font-size: 22px; color: #fff3cf; letter-spacing: 1px; word-break: break-all; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.badge-gold { margin-top: 6px; color: #3a0a0f; background: linear-gradient(180deg, #fbe9b0, #dcb35a); }
.profile-meta { margin: 18px 0 0; text-align: left; font-size: 14px; }
.profile-meta dt { color: var(--muted); }
.profile-meta dd { margin: 0 0 8px; }
.form-card { padding: 26px clamp(16px, 4vw, 32px) 30px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .hero { padding: 40px 0 52px; }
    .hero-deco { right: 50%; margin-right: -220px; top: 46%; margin-top: -220px; width: 440px; height: 440px; opacity: .16; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-summary { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; text-align: left; padding: 18px 20px; }
    .profile-summary .avatar { grid-row: span 2; margin: 0; width: 56px; height: 56px; font-size: 24px; }
    .profile-username { align-self: end; }
    .profile-summary .badge { justify-self: start; align-self: start; margin-top: 2px; }
    .profile-meta { grid-column: 1 / -1; margin-top: 12px; }
}
@media (max-width: 600px) {
    .container { padding: 0 14px; }
    .header-inner { min-height: 54px; gap: 6px; }
    .brand { flex: 1; min-width: 0; }
    .brand-logo { height: 30px; max-width: 120px; }
    .brand-name { font-size: 17px; letter-spacing: 1px; max-width: none; min-width: 0; }
    .site-nav { gap: 0; }
    /* 手机端隐藏「首页」：点击左上角 Logo 即返回首页，为品牌名腾出空间 */
    .nav-home { display: none; }
    .nav-link { padding: 6px 5px; font-size: 14px; }
    .hide-sm { display: none; }
    .nav-login { padding: 5px 12px; margin-left: 4px; }
    .section { padding: 26px 0; }
    .hero-title { font-size: clamp(28px, 7.2vw, 56px); letter-spacing: 2px; }
    .hero-eyebrow { letter-spacing: 4px; }
    .show-sm { display: inline; }
    .prize-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .prize-card { padding: 30px 8px 14px; }
    .prize-figure { width: 88px; height: 88px; }
    .prize-name { font-size: 15px; }
    .prize-level { font-size: 12px; padding: 3px 12px; letter-spacing: 1px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .auth-card { padding: 28px 18px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
