/* 全局样式变量 */
:root {
    --primary: #d4af37;
    --primary-dark: #b8962e;
    --primary-light: #e8c547;
    --sky-blue: #87CEEB;
    --sky-light: #B8D4E3;
    --bg-page: #1a1a2e;
    --bg-white: #252542;
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-input: rgba(255, 255, 255, 0.05);
    --text-primary: #e8e8e8;
    --text-secondary: #aaa;
    --text-muted: #888;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-float: 0 8px 30px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    padding-bottom: 60px;
}

.container {
    min-height: 100vh;
    padding-bottom: 70px;
}

/* 顶部导航 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

/* 底部标签栏 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-item.active .tab-icon,
.tab-item.active .tab-text {
    color: var(--primary);
}

.tab-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.tab-text {
    font-size: 10px;
    color: #888;
}

/* 卡片样式 */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    margin: 10px;
    padding: 14px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #1a1a2e;
    border-radius: 20px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
    cursor: pointer;
}

.btn-primary:active {
    opacity: 0.9;
    transform: scale(0.98);
}

/* 输入框样式 */
.input-field {
    background: var(--bg-input);
    border-radius: 6px;
    padding: 12px;
    font-size: 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transition: all 0.3s;
    width: 100%;
}

.input-field:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

/* 标题样式 */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin: 12px 10px;
    padding-left: 10px;
    border-left: 2px solid var(--primary);
}

/* 分割线 */
.divider {
    height: 1px;
    background: var(--border-light);
    margin: 12px 0;
}

/* 主题色 */
.primary-color {
    color: var(--primary);
}

.bg-primary {
    background-color: var(--primary);
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.empty-icon {
    font-size: 50px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* 页面切换动画 */
.page-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
