/* ============================================
   神韵麟州-神木信息平台 主样式表
   文化红 + 金色 · 现代简约
   ============================================ */
:root {
    --red: #B11D2C;
    --red-dark: #8B1422;
    --red-light: #E84455;
    --gold: #D4AF37;
    --gold-light: #F0D070;
    --ink: #1B1F3B;
    --ink-soft: #4A4E69;
    --bg: #FAF8F5;
    --bg-card: #FFFFFF;
    --bg-muted: #F2EEE8;
    --border: #E6DFD6;
    --text: #2D2D3A;
    --text-muted: #8A8896;
    --green: #2E8B57;
    --shadow: 0 4px 24px rgba(27, 31, 59, 0.08);
    --shadow-lg: 0 12px 40px rgba(27, 31, 59, 0.14);
    --radius: 14px;
    --radius-sm: 8px;
    --max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-light); }

img { max-width: 100%; display: block; }

/* ========== Header ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 12px rgba(27, 31, 59, 0.04);
}
.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 800;
    box-shadow: 0 4px 12px rgba(177, 29, 44, 0.3);
}
.logo-text strong {
    display: block;
    font-size: 19px;
    color: var(--ink);
    line-height: 1.2;
}
.logo-text small {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
}
.main-nav { display: flex; gap: 8px; align-items: center; }
.main-nav a {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--ink-soft);
    font-weight: 500;
    transition: all .2s;
}
.main-nav a:hover { background: var(--bg-muted); color: var(--red); }
.main-nav a.active { background: var(--red); color: #fff; }
.main-nav a.nav-admin { border: 1px solid var(--border); }
.main-nav a.nav-admin:hover { border-color: var(--red); }

/* ========== Main ========== */
.site-main { min-height: calc(100vh - 280px); }

/* ========== Hero ========== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1B1F3B 0%, #2D1B2E 40%, #5C1A2B 100%);
    color: #fff;
    overflow: hidden;
    padding: 80px 24px 100px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(177, 29, 44, 0.25) 0%, transparent 50%);
}
.hero::after {
    content: '麟州';
    position: absolute;
    right: -20px; bottom: -40px;
    font-size: 200px;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.06);
    letter-spacing: 20px;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: var(--gold-light);
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}
.hero h1 span { color: var(--gold); }
.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s;
    font-family: inherit;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(177, 29, 44, 0.35); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.3); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: var(--bg-muted); color: var(--ink-soft); }
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ========== Sections ========== */
.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 72px 24px;
}
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow {
    font-size: 13px;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-head h2 {
    font-size: 34px;
    color: var(--ink);
    font-weight: 800;
    margin-bottom: 14px;
}
.section-head p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ========== Platform Cards ========== */
.platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.platform-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all .3s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.platform-banner {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.platform-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.1));
}
.banner-douyin { background: linear-gradient(135deg, #1a1a2e, #25255E); }
.banner-shipinhao { background: linear-gradient(135deg, #07C160, #0A8F4A); }
.banner-wechat { background: linear-gradient(135deg, #2E8B57, #176B3A); }
.platform-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}
.platform-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.platform-body h3 {
    font-size: 22px;
    color: var(--ink);
    margin-bottom: 8px;
}
.platform-body .sub { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.platform-body .desc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; flex: 1; }
.platform-features { list-style: none; margin-bottom: 24px; }
.platform-features li {
    font-size: 14px;
    color: var(--ink-soft);
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}
.platform-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 12px;
}
.platform-stats {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-bottom: 20px;
}
.platform-stat strong { display: block; font-size: 24px; color: var(--red); font-weight: 800; }
.platform-stat span { font-size: 12px; color: var(--text-muted); }

/* ========== Stats Strip ========== */
.stats-strip {
    background: var(--ink);
    color: #fff;
}
.stats-strip .section { padding: 56px 24px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.stat-item strong {
    display: block;
    font-size: 42px;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 6px;
}
.stat-item span { font-size: 15px; color: rgba(255, 255, 255, 0.6); }

/* ========== Activity Cards ========== */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 8px 22px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--ink-soft);
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active { background: var(--red); color: #fff; border-color: var(--red); }

.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.activity-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all .3s;
    display: flex;
    flex-direction: column;
}
.activity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.activity-img {
    height: 180px;
    background: linear-gradient(135deg, var(--ink), var(--red-dark));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.activity-img .placeholder-icon { font-size: 48px; opacity: 0.3; }
.activity-status {
    position: absolute;
    top: 14px; left: 14px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.status-active { background: var(--green); }
.status-upcoming { background: var(--gold); }
.status-ended { background: var(--text-muted); }
.activity-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.activity-body h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.activity-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.activity-meta span { margin-right: 14px; }
.activity-body p { font-size: 14px; color: var(--ink-soft); flex: 1; margin-bottom: 16px; }

/* ========== Appointment Cards ========== */
.appt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.appt-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    transition: all .3s;
}
.appt-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.appt-icon-box {
    width: 100px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
}
.appt-content { padding: 24px; flex: 1; }
.appt-content h3 { font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.appt-content .tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--bg-muted);
    border-radius: 4px;
    font-size: 12px;
    color: var(--ink-soft);
    margin-bottom: 10px;
}
.appt-content p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.appt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.appt-price { font-size: 22px; font-weight: 800; color: var(--red); }
.appt-price small { font-size: 13px; color: var(--text-muted); font-weight: 400; }

/* ========== Modal ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 31, 59, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}
.modal-overlay.show { display: flex; }
.modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal-head {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-head h3 { font-size: 20px; color: var(--ink); }
.modal-close {
    width: 34px; height: 34px;
    border: none;
    background: var(--bg-muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    color: var(--ink-soft);
    transition: all .2s;
}
.modal-close:hover { background: var(--border); }
.modal-body { padding: 28px; }

/* ========== Form ========== */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}
.form-group label .req { color: var(--red); }
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
    transition: border-color .2s;
    color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--red); background: #fff; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ========== Toast ========== */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--ink);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transition: all .3s;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

/* ========== Empty State ========== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}
.empty-state .icon { font-size: 56px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }

/* ========== Footer ========== */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    margin-top: 80px;
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 56px 24px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col p { font-size: 14px; margin-bottom: 8px; }
.footer-col a { color: rgba(255, 255, 255, 0.7); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ========== Page Banner ========== */
.page-banner {
    background: linear-gradient(135deg, var(--ink), #2D1B2E);
    color: #fff;
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
}
.page-banner h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; position: relative; }
.page-banner p { font-size: 16px; color: rgba(255, 255, 255, 0.65); position: relative; }

/* ============================================
   后台管理样式
   ============================================ */
.admin-body { background: #F0EDE8; }
.admin-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
    width: 240px;
    background: var(--ink);
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0; top: 0;
    z-index: 50;
}
.sidebar-logo {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-logo .logo-mark { width: 38px; height: 38px; font-size: 19px; border-radius: 10px; }
.sidebar-logo strong { font-size: 16px; display: block; }
.sidebar-logo small { font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.sidebar-nav { padding: 16px 12px; flex: 1; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    margin-bottom: 4px;
    transition: all .2s;
}
.sidebar-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.sidebar-nav a.active { background: var(--red); color: #fff; }
.sidebar-nav .icon { font-size: 18px; width: 22px; text-align: center; }
.sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* Main */
.admin-main {
    flex: 1;
    margin-left: 240px;
    padding: 28px 32px;
}
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.admin-topbar h1 { font-size: 24px; color: var(--ink); }
.admin-user { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); }
.admin-user .avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}

/* Dashboard */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.dash-stat {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.dash-stat .label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.dash-stat .value { font-size: 32px; font-weight: 800; color: var(--ink); }
.dash-stat .change { font-size: 13px; margin-top: 6px; }
.dash-stat .change.up { color: var(--green); }
.dash-stat .change.down { color: var(--red); }
.dash-stat .icon-box {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}
.icon-red { background: rgba(177, 29, 44, 0.1); color: var(--red); }
.icon-gold { background: rgba(212, 175, 55, 0.1); color: var(--gold); }
.icon-green { background: rgba(46, 139, 87, 0.1); color: var(--green); }
.icon-blue { background: rgba(52, 120, 198, 0.1); color: #3478C6; }

/* Admin panels */
.admin-panel {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    overflow: hidden;
}
.panel-head {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.panel-head h2 { font-size: 18px; color: var(--ink); }
.panel-body { padding: 24px; }

/* Table */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 2px solid var(--border);
    background: var(--bg-muted);
}
.admin-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--ink-soft);
}
.admin-table tr:hover td { background: var(--bg-muted); }
.table-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.badge-green { background: rgba(46, 139, 87, 0.12); color: var(--green); }
.badge-gold { background: rgba(212, 175, 55, 0.15); color: #9A7B14; }
.badge-red { background: rgba(177, 29, 44, 0.1); color: var(--red); }
.badge-gray { background: rgba(138, 136, 150, 0.15); color: var(--text-muted); }
.action-btn {
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: var(--ink-soft);
    transition: all .2s;
    font-family: inherit;
    margin-right: 6px;
}
.action-btn:hover { border-color: var(--red); color: var(--red); }
.action-btn.danger:hover { border-color: var(--red); background: var(--red); color: #fff; }

/* Login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ink), #2D1B2E, #5C1A2B);
    padding: 24px;
}
.login-card {
    background: #fff;
    border-radius: 18px;
    padding: 44px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.login-card .logo-mark { margin: 0 auto 20px; }
.login-card h2 { text-align: center; font-size: 24px; color: var(--ink); margin-bottom: 6px; }
.login-card .sub { text-align: center; font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.login-hint {
    margin-top: 20px;
    padding: 12px 16px;
    background: var(--bg-muted);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
    .platforms, .activity-grid { grid-template-columns: repeat(2, 1fr); }
    .appt-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; }
    .hero h1 { font-size: 36px; }
}
@media (max-width: 640px) {
    .platforms, .activity-grid, .form-row { grid-template-columns: 1fr; }
    .header-inner { height: 60px; padding: 0 16px; }
    .main-nav a { padding: 6px 12px; font-size: 13px; }
    .logo-text small { display: none; }
    .hero { padding: 48px 20px 60px; }
    .hero h1 { font-size: 28px; }
    .section { padding: 48px 16px; }
    .section-head h2 { font-size: 26px; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-main { margin-left: 0; padding: 20px 16px; }
    .dash-stats, .stats-grid { grid-template-columns: 1fr; }
}
