/* CSS变量定义 - 配色方案 */
:root {
    --primary-color: #4BB13F;
    --secondary-color: #2C3E50;
    --accent-color: #EA5624;
    --background-color: #F8F9FA;
    --card-background: rgba(255, 255, 255, 0.8);
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: rgba(224, 224, 224, 0.8);
    --shadow: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: 10px;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    font-size: 14px;
    padding-bottom: 60px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 头部样式 */
.header {
    background: var(--card-background);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo h1 {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: bold;
}

.logo p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 卡片样式 */
.card {
    background: var(--card-background);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px) scale(1.02);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.card-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0 24px;
    height: 48px;
    line-height: 48px;
    border-radius: 24px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #E74C3C);
    color: #fff;
    box-shadow: 0 6px 24px rgba(192, 57, 43, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #A93226, #C0392B);
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 12px 32px rgba(192, 57, 43, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color), #F39C12);
    color: #fff;
    box-shadow: 0 6px 24px rgba(230, 126, 34, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #D35400, #E67E22);
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 12px 32px rgba(230, 126, 34, 0.5);
}

.btn-outline {
    background: var(--card-background);
    backdrop-filter: blur(var(--glass-blur));
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 12px 32px rgba(192, 57, 43, 0.4);
}

/* 按钮脉冲效果 */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(192, 57, 43, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(192, 57, 43, 0);
    }
}

.btn-block {
    display: block;
    width: 100%;
}

/* 键盘焦点样式 */
.btn:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    z-index: 10;
}

/* 底部导航栏无障碍样式 */
.nav-item-icon {
    aria-hidden: true;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--card-background);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.2);
}

.form-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--card-background);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.2);
}

.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--card-background);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.2);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    background-color: var(--background-color);
    color: var(--text-secondary);
    margin-right: 8px;
    margin-bottom: 8px;
}

.tag.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* 列表样式 */
.list {
    list-style: none;
}

.list-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.list-item:last-child {
    border-bottom: none;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--card-background);
    backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.nav-item:hover {
    background: rgba(192, 57, 43, 0.1);
    transform: translateY(-2px);
}

.nav-item.active {
    color: var(--primary-color);
    background: rgba(192, 57, 43, 0.15);
    transform: translateY(-4px);
}

.nav-item-icon {
    font-size: 24px;
    transition: all 0.3s ease;
}

.nav-item.active .nav-item-icon {
    transform: scale(1.2);
}

/* 版本信息 */
.version-info {
    position: fixed;
    bottom: 64px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    color: var(--text-secondary);
    padding: 8px 0;
    background-color: transparent;
    z-index: 999;
}

/* 页面标题 */
.page-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
    text-align: center;
    padding: 20px 0;
}

/* 分区标题 */
.section-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    margin: 24px 0 16px 0;
    padding-left: 12px;
    border-left: 3px solid var(--primary-color);
}

/* 价格样式 */
.price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.price-small {
    font-size: 14px;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    background-color: var(--accent-color);
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    .card {
        padding: 12px;
        margin-bottom: 12px;
    }

    .page-title {
        font-size: 18px;
        padding: 16px 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .card {
        padding: 10px;
        margin-bottom: 10px;
    }

    .btn {
        height: 40px;
        line-height: 40px;
        padding: 0 16px;
        font-size: 13px;
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-secondary);
}

.mt-8 {
    margin-top: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-16 {
    margin-bottom: 16px;
}

.p-8 {
    padding: 8px;
}

.p-16 {
    padding: 16px;
}