/* common.css - 统一所有页面的样式 */
:root {
    --primary-color: #1a365d;
    --secondary-color: #e6b31e;
    --accent-color: #2d5a8c;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #8a9bae;
    --light-gray: #f0f2f5;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --border-color: #eaeaea;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    background-color: #fff;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    min-height: 100vh;
}

/* 统一按钮样式 */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    background-color: #d19c0f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* 统一卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* 统一底部标签栏样式 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
}

.tab-bar-border {
    height: 1px;
    background-color: var(--border-color);
}

.tab-bar-items {
    display: flex;
    height: 60px;
}

.tab-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.tab-bar-item:hover {
    background-color: var(--light-gray);
}

.tab-bar-item.active {
    color: var(--primary-color);
}

.tab-bar-item.inactive {
    color: var(--gray-color);
}

.tab-bar-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.tab-bar-label {
    font-size: 10px;
    font-weight: 600;
}

/* 页面占位符 */
.page-placeholder {
    height: 60px;
}

/* 响应式调整 */
@media (max-width: 380px) {
    .hero-title {
        font-size: 20px;
    }
    
    .brand-name {
        font-size: 24px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}