:root {
    /* --- 核心奢华黑绿 + 纯金配色 (Luxury Dark Theme) --- */
    --bg-main: #061511;           /* 主暗黑绿背景 */
    --bg-card: #0c231d;           /* 暗绿卡片背景 */
    --bg-card-hover: #112e27;     /* 卡片悬停/点击背景 */
    --bg-input: #081a15;          /* 输入框/内部暗底 */
    --bg-header: #04100d;         /* 顶栏/底栏暗底 */
    
    --primary: #0a2e24;          /* 墨翠绿 */
    --primary-light: #154538;    /* 亮翠绿 */
    
    /* 黄金系列高光与渐变 */
    --gold: #d4af37;             /* 经典纯金 */
    --gold-light: #f7e8a4;       /* 浅金辉光 */
    --gold-dark: #997c23;        /* 沉稳暗金 */
    --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    --gold-gradient-soft: linear-gradient(135deg, #d4af37 0%, #f3e5ab 50%, #c59b27 100%);
    --gold-border: 1px solid rgba(212, 175, 55, 0.35);
    --gold-border-glow: 0 0 10px rgba(212, 175, 55, 0.2);
    
    /* 文字颜色 */
    --text: #f0f7f4;             /* 亮白主文字 */
    --text-muted: #8ea89f;       /* 次要银绿文字 */
    --text-gold: #f4dc8a;        /* 黄金点缀文字 */
    --border: rgba(212, 175, 55, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.07);
    
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-main);
    color: var(--text);
    margin: 0;
    padding-top: 60px;
    padding-bottom: 75px;
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- 1. App Header (奢华暗黑绿顶部) --- */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(4, 16, 13, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    box-sizing: border-box;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    min-width: 40px;
    justify-content: flex-start;
}

.header-right {
    gap: 16px;
    min-width: 40px;
    justify-content: flex-end;
}

.header-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-title img {
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.icon-btn {
    font-size: 18px;
    color: #e5d5a5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.15s;
}

.icon-btn:hover, .icon-btn:active {
    color: #ffd700;
    transform: scale(1.1);
}

/* --- 2. App Bottom Nav (高奢磨砂暗黑绿导航) --- */
.app-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 62px;
    background: rgba(4, 16, 13, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.7);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #7b948c;
    font-size: 10px;
    flex: 1;
    height: 100%;
    position: relative;
    transition: all 0.25s ease;
}

.tab-item i {
    font-size: 19px;
    margin-bottom: 3px;
    transition: transform 0.2s ease;
}

.tab-item.active {
    color: #fce79f;
    font-weight: 700;
}

.tab-item.active i {
    transform: translateY(-2px);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(212, 175, 55, 0.4));
}

.cart-badge {
    position: absolute;
    top: 6px;
    right: 22px;
    background: linear-gradient(135deg, #d4af37, #aa771c);
    color: #041410;
    font-weight: 900;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
    border: 1.5px solid #041410;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* --- 3. Mobile Sidebar (黑金至尊侧边栏) --- */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-panel {
    position: fixed;
    top: 0;
    left: -290px;
    width: 290px;
    height: 100%;
    background: #071c16;
    z-index: 2001;
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.7);
}

.sidebar-panel.active {
    left: 0;
}

.sidebar-head {
    background: linear-gradient(135deg, #0d382c 0%, #03140f 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 20px;
}

.sidebar-list {
    background: #071c16;
}

.sidebar-list a {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cfded9;
    transition: background 0.2s, color 0.2s;
}

.sidebar-list a:hover, .sidebar-list a:active {
    background: rgba(212, 175, 55, 0.15);
    color: #f7e8a4;
}

.sidebar-list i {
    width: 20px;
    text-align: center;
    color: #d4af37;
}

/* 4. 通用 Dark 元素 */
.section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 20px 0 12px;
    border-left: 3px solid #d4af37;
    padding-left: 10px;
    color: #f4dc8a;
    letter-spacing: 0.5px;
}

/* 按钮通用类 */
.btn-gold {
    background: var(--gold-gradient);
    color: #061c16;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-gold:active {
    transform: scale(0.98);
}
