/* ========== 主题色（传奇暗金红配色） ========== */
:root {
    --gold: #c9a96e;
    --gold-dark: #a07830;
    --red: #c0392b;
    --dark: #1a1410;
    --dark2: #241e18;
}

/* ========== 顶部导航栏 ========== */
.top-bar {
    background: linear-gradient(180deg, #2a1f14 0%, #1a1410 100%);
    border-bottom: 2px solid var(--gold-dark);
}
.logo { display: flex; align-items: center; gap: 6px; }
.logo-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    border-radius: 8px;
    box-shadow: 0 0 14px rgba(201,169,110,0.45);
}
.logo-icon svg { width: 26px; height: 26px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong {
    color: var(--gold);
    font-size: 22px;
    letter-spacing: 2px;
}
.logo-text small {
    color: #c0a080;
    font-size: 12px;
}
.top-link {
    color: #baa98a;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
    letter-spacing: 1px;
}
.top-link:hover { color: var(--gold); text-decoration: none; }
.text-gold { color: var(--gold) !important; }

/* 未登录状态 */
.avatar-default {
    width: 36px; height: 36px;
    border: 1px solid #4a4038;
    border-radius: 50%;
    color: #8a8070;
    background: rgba(0,0,0,0.3);
}
.avatar-default svg { width: 20px; height: 20px; }
.user-info .btn-login-sm,
.user-info .btn-register-sm {
    display: inline-block;
    font-size: 13px; font-weight: 700;
    padding: 6px 16px;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 1px;
}
.user-info .btn-login-sm {
    background: linear-gradient(135deg, var(--red), #8b0000);
    color: #fff;
    border: none;
}
.user-info .btn-login-sm:hover {
    background: linear-gradient(135deg, #e74c3c, var(--red));
    color: #fff;
    text-decoration: none;
}
.user-info .btn-register-sm {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold-dark);
    margin-left: 4px;
}
.user-info .btn-register-sm:hover {
    background: rgba(201,169,110,0.1);
    color: var(--gold);
    text-decoration: none;
}

/* ========== 二级导航 ========== */
.sub-nav {
    background: var(--dark2);
    border-bottom: 1px solid #3a3028;
}
.sub-nav .nav-link {
    color: #baa98a;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 32px;
    letter-spacing: 2px;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}
.sub-nav .nav-link:hover {
    color: var(--gold);
    border-bottom-color: var(--gold-dark);
}
.sub-nav .nav-link.active {
    background: linear-gradient(180deg, var(--red), #8b0000);
    color: #fff;
    border-bottom-color: var(--gold);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .top-nav { display: none !important; }
    .sub-nav .nav-link { padding: 12px 18px; font-size: 12px; letter-spacing: 1px; }
    .footer-main { padding: 32px 0 20px; }
    .footer-main .row > div { margin-bottom: 24px; }
    .ft-col-title { margin-top: 8px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
/* ========== 底部 ========== */
.footer-wrap {
    background: linear-gradient(180deg, #1a1410 0%, #140f0c 100%);
    border-top: 2px solid #a07830;
    color: #8a8070;
    font-size: 12px;
    letter-spacing: 1px;
}
.footer-wrap a { color: #baa98a; text-decoration: none; transition: color 0.3s; }
.footer-wrap a:hover { color: #c9a96e; text-decoration: none; }

.footer-main { padding: 50px 0 36px; }
.footer-brand .ft-logo {
    display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.footer-brand .ft-logo-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #c9a96e, #a07830);
    color: #1a1410; border-radius: 6px;
    box-shadow: 0 0 10px rgba(201,169,110,0.35);
}
.footer-brand .ft-logo-text { font-size: 16px; font-weight: 900; color: #c9a96e; letter-spacing: 2px; }
.footer-brand .ft-desc { color: #c0b0a0; font-size: 13px; line-height: 1.6; margin-bottom: 16px; max-width: 220px; }
.footer-brand .ft-stats {
    display: flex; gap: 18px; margin-bottom: 18px;
}
.footer-brand .ft-stats span { color: #b0a090; font-size: 12px; }
.footer-brand .ft-stats strong { color: #c9a96e; font-size: 18px; display: block; line-height: 1.1; }

.ft-col-title {
    color: #c9a96e; font-size: 14px; font-weight: 700;
    letter-spacing: 2px; margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 1px solid #4a4038;
    position: relative;
}
.ft-col-title::after {
    content: '';
    position: absolute; bottom: -1px; left: 0;
    width: 40px; height: 2px;
    background: linear-gradient(90deg, #c9a96e, transparent);
}
.ft-links { list-style: none; padding: 0; margin: 0; }
.ft-links li { margin-bottom: 9px; }
.ft-links li a { font-size: 13px; color: #c0b0a0; transition: all 0.3s; }
.ft-links li a:hover { color: #c9a96e; padding-left: 4px; text-shadow: 0 0 8px rgba(201,169,110,0.3); }

.ft-contact p {
    display: flex; align-items: flex-start; gap: 8px;
    margin-bottom: 10px; color: #c0b0a0; font-size: 13px; line-height: 1.6;
}
.ft-contact p .ft-icon { color: #c9a96e; margin-top: 1px; flex-shrink: 0; }
.ft-contact .ft-qr-row { display: flex; gap: 16px; margin-top: 12px; }
.ft-contact .ft-qr-item { text-align: center; }
.ft-contact .ft-qr-item .ft-qr-box {
    width: 80px; height: 80px;
    border: 1px solid #4a4038;
    background: #0f0c0a;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 6px;
    border-radius: 4px;
    overflow: hidden;
}
.ft-contact .ft-qr-item .ft-qr-box img { width: 68px; height: 68px; object-fit: contain; }
.ft-contact .ft-qr-item small { color: #c0b0a0; font-size: 12px; }

.footer-bottom {
    border-top: 1px solid #4a4038;
    padding: 18px 0;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
    color: #a09890; font-size: 12px;
}
.footer-bottom a { color: #b0a090; }
.footer-bottom a:hover { color: #c9a96e; }
.footer-bottom .ft-cert {
    display: flex; align-items: center; gap: 12px;
}
.footer-bottom .ft-cert span {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border: 1px solid #4a4038;
    font-size: 12px; color: #a09890;
}

/* ========== 用户中心侧边栏 ========== */
.uc-wrapper {
    display: flex;
    gap: 20px;
    padding: 30px 0 60px;
}
.uc-sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.uc-profile {
    background: linear-gradient(180deg, #2a2218 0%, #1e1814 100%);
    border: 1px solid #3a3028;
    padding: 28px 20px;
    text-align: center;
}
.uc-avatar {
    width: 72px; height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex; align-items: center; justify-content: center;
    color: var(--dark);
    box-shadow: 0 0 20px rgba(201,169,110,0.3);
}
.uc-avatar svg { width: 36px; height: 36px; }
.uc-welcome {
    color: #baa98a;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.uc-username {
    color: var(--gold);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}
.uc-menu {
    background: linear-gradient(180deg, #2a2218 0%, #1e1814 100%);
    border: 1px solid #3a3028;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.uc-menu-item {
    display: block;
    padding: 12px 16px;
    color: #8a8070;
    font-size: 13px;
    letter-spacing: 1px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s;
    text-align: center;
}
.uc-menu-item:hover {
    color: var(--gold);
    border-color: var(--gold-dark);
    background: rgba(201,169,110,0.05);
    text-decoration: none;
}
.uc-menu-item.active {
    background: linear-gradient(135deg, var(--red), #8b0000);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
}
.uc-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.uc-actions .btn-exit,
.uc-actions .btn-home {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.uc-actions .btn-exit {
    background: linear-gradient(135deg, var(--red), #8b0000);
    color: #fff;
}
.uc-actions .btn-exit:hover {
    background: linear-gradient(135deg, #e74c3c, var(--red));
    text-decoration: none;
    color: #fff;
}
.uc-actions .btn-home {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold-dark);
}
.uc-actions .btn-home:hover {
    background: rgba(201,169,110,0.1);
    text-decoration: none;
    color: var(--gold);
}

/* 用户中心侧边栏响应式 */
@media (max-width: 992px) {
    .uc-wrapper { flex-direction: column; }
    .uc-sidebar { width: 100%; }
}

/* ========== 页面头部（通用） ========== */
.page-hero {
    position: relative;
    background: linear-gradient(180deg, #1a1410 0%, #15100c 100%);
    border-bottom: 2px solid var(--gold-dark);
    overflow: hidden;
    padding: 60px 0 50px;
}
.page-hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(201,169,110,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(192,57,43,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; text-align: center; }
.page-title {
    color: var(--gold); font-size: 32px; font-weight: 900;
    letter-spacing: 6px; margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(201,169,110,0.3);
}
.page-title-deco {
    color: var(--gold-dark); font-size: 16px;
    vertical-align: middle; margin: 0 12px; opacity: 0.6;
}
.page-subtitle {
    color: #6a5040; font-size: 13px;
    letter-spacing: 2px; margin-bottom: 30px;
}

/* ========== 统计行 ========== */
.stats-row {
    display: inline-flex; align-items: center;
    background: rgba(0,0,0,0.3); border: 1px solid rgba(201,169,110,0.15);
    padding: 16px 36px;
}
.stat-item { text-align: center; padding: 0 28px; }
.stat-num {
    display: block; font-size: 28px; font-weight: 900;
    color: var(--gold); line-height: 1.2;
    text-shadow: 0 0 15px rgba(201,169,110,0.3);
}
.stat-desc {
    display: block; font-size: 11px; color: #6a5040;
    letter-spacing: 1px; margin-top: 4px;
}
.stat-divider {
    width: 1px; height: 36px;
    background: linear-gradient(180deg, transparent, rgba(201,169,110,0.3), transparent);
}

/* ========== 区块标题 ========== */
.section-header { text-align: center; margin-bottom: 36px; }
.section-title {
    display: flex; align-items: center; justify-content: center;
    gap: 20px; margin-bottom: 24px;
}
.title-line {
    display: block; width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}
.title-text {
    font-size: 24px; font-weight: 900; color: var(--gold);
    letter-spacing: 4px; text-shadow: 0 0 20px rgba(201,169,110,0.3);
}

/* ========== 选项卡 ========== */
.section-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab-btn {
    background: transparent; color: #8a8070; border: 1px solid #3a3028;
    font-size: 12px; padding: 7px 18px; cursor: pointer;
    letter-spacing: 1px; transition: all 0.3s;
}
.tab-btn:hover { color: var(--gold); border-color: var(--gold-dark); }
.tab-btn.active {
    background: linear-gradient(135deg, var(--gold-dark), rgba(201,169,110,0.3));
    color: var(--gold); border-color: var(--gold);
}

/* ========== 排序栏 ========== */
.sort-bar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    max-width: 800px; margin: 14px auto 0; padding: 0 10px;
}
.result-hint { color: #6a5040; font-size: 12px; letter-spacing: 1px; flex-shrink: 0; }
.result-hint strong { color: var(--gold); font-weight: 700; }
.sort-options { display: flex; align-items: center; gap: 8px; }
.sort-btn {
    background: transparent; color: #6a5040;
    border: 1px solid transparent;
    font-size: 11px; padding: 5px 12px; cursor: pointer;
    letter-spacing: 1px; transition: all 0.3s;
}
.sort-btn:hover { color: var(--gold); }
.sort-btn.active { color: var(--gold); border-color: var(--gold-dark); }

/* ========== 面包屑 ========== */
.breadcrumb-bar {
    padding-bottom: 16px; margin-bottom: 24px;
    border-bottom: 1px solid #2a2018;
    font-size: 11px; letter-spacing: 1px;
}
.breadcrumb-bar a { color: #6a5040; text-decoration: none; transition: color 0.3s; }
.breadcrumb-bar a:hover { color: var(--gold); }
.breadcrumb-bar .bc-sep { color: #3a3028; margin: 0 8px; }
.breadcrumb-bar .bc-current { color: #8a8070; }

/* ========== 侧边栏 ========== */
.sidebar { position: sticky; top: 20px; }
.sidebar-block {
    background: linear-gradient(180deg, #2a2218 0%, #1e1814 100%);
    border: 1px solid #3a3028;
    padding: 20px; margin-bottom: 20px;
}
.sidebar-title {
    font-size: 14px; font-weight: 700; color: var(--gold);
    letter-spacing: 2px; margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 1px solid #2a2018; position: relative;
}
.sidebar-title::after {
    content: ''; position: absolute; bottom: -1px; left: 0;
    width: 24px; height: 2px; background: var(--gold-dark);
}

/* ========== 空状态 ========== */
.empty-state { text-align: center; padding: 80px 20px; color: #6a5040; }
.empty-state svg { color: #4a4038; margin-bottom: 20px; opacity: 0.5; }
.empty-state p { font-size: 15px; margin-bottom: 6px; color: #8a8070; }
.empty-state span { font-size: 12px; }

/* ========== 加载更多按钮 ========== */
.btn-load-more {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; color: var(--gold);
    font-size: 12px; letter-spacing: 2px;
    padding: 12px 40px;
    border: 1px solid var(--gold-dark);
    cursor: pointer; transition: all 0.3s;
}
.btn-load-more:hover {
    background: rgba(201,169,110,0.1);
    box-shadow: 0 0 16px rgba(201,169,110,0.2);
}

/* ========== 用户中心主内容 ========== */
.uc-main { flex: 1; display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ========== 通用页面响应式 ========== */
@media (max-width: 768px) {
    .page-hero { padding: 40px 0 32px; }
    .page-title { font-size: 24px; letter-spacing: 4px; }
    .page-subtitle { font-size: 11px; }
    .stats-row { padding: 12px 20px; }
    .stat-item { padding: 0 16px; }
    .stat-num { font-size: 22px; }
    .sort-bar { flex-direction: column; align-items: center; }
}