/* Mall Fake Orders - 主样式表 */
:root {
    /* 亮色模式变量 */
    --bg-primary: #6c5ce714;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f2f4f6;
    --text-primary: #333333;
    --text-secondary: #8e8e93;
    --accent-primary: #6c5ce7;
    --accent-secondary: #00cec9;
    --accent-warning: #fdcb6e;
    --accent-danger: #ff7675;
    --border-color: #e1e1e1;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --glass-border: 1px solid rgba(255, 255, 255, 0.25);
}

/* 暗色模式变量 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #121212;
        --bg-secondary: #1e1e1e;
        --bg-tertiary: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #b0b0b0;
        --accent-primary: #9b7efa;
        --accent-secondary: #00b5b5;
        --accent-warning: #ffd369;
        --accent-danger: #ff6b6b;
        --border-color: #383838;
        --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        --glass-bg: rgba(30, 30, 30, 0.65);
        --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* 玻璃拟态效果 */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

/* 容器样式 */
.container {
    max-width: 100%;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-primary);
}

/* 状态栏样式 */
.status-bar {
    height: 44px;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* 导航栏样式 */
.nav-bar {
    height: 50px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 20px;
}

.nav-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-back {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--accent-primary);
    cursor: pointer;
}

/* 内容区域样式 */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px calc(80px + env(safe-area-inset-bottom, 0px)) 20px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    background-color: var(--bg-primary);
}

.content-area::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 底部标签栏样式 */
.tab-bar {
    height: 60px;
    background-color: var(--bg-secondary);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-bottom: calc(5px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 20%;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
}

.tab-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-secondary);
    transition: all 0.2s ease;
}

.tab-label {
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-weight: 500;
}

.tab-item.active .tab-label {
    color: var(--accent-primary);
    font-weight: 600;
}

.tab-item.active .tab-icon svg {
    stroke: var(--accent-primary);
    fill: rgba(108, 92, 231, 0.1);
}
.tab-item:active {
    transform: scale(0.95);
}

/* 卡片样式 */
.card {
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    border: var(--glass-border);
    transition: all 0.3s ease;
}

/* 按钮样式 */
.button {
    background-color: var(--accent-primary);
    color: white;
    border-radius: 12px;
    padding: 15px 25px;
    text-align: center;
    font-weight: 600;
    margin: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.2);
}

.button:hover {
    opacity: 0.9;
}

.button:active {
    transform: scale(0.98);
}

.button.secondary {
    background-color: var(--bg-tertiary);
    color: var(--accent-primary);
}

/* 输入框样式 */
.input-field {
    background-color: var(--bg-tertiary);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 12px 0;
    width: 100%;
    font-size: 16px;
    border: 1px solid transparent;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-primary);
}

/* 列表项样式 */
.list-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.list-item-title {
    font-weight: 500;
    color: var(--text-primary);
}

.list-item-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* 徽章样式 */
.badge {
    background-color: var(--accent-danger);
    color: white;
    border-radius: 15px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
}

.badge.success {
    background-color: var(--accent-secondary);
}

.badge.pending {
    background-color: var(--accent-warning);
}

/* 搜索栏样式 */
.search-bar {
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.search-icon {
    width: 15px;
    height: 15px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    margin-right: 10px;
}

.search-placeholder {
    color: var(--text-secondary);
    font-size: 16px;
}

/* 分段控制器样式 */
.segment-control {
    display: flex;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: 2px;
    margin: 15px 0;
}

.segment-item {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.segment-item.active {
    background-color: var(--bg-secondary);
    border-radius: 6px;
    color: var(--accent-primary);
    font-weight: 500;
}

/* 充值金额输入样式 */
.recharge-amount-input {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.recharge-amount-input:focus {
    border: 2px solid var(--accent-primary);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 122, 255, 0.3);
}

/* 快捷充值网格样式 */
.quick-recharge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.quick-recharge-item {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: 15px 0;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-primary);
}

.quick-recharge-item:hover,
.quick-recharge-item.active {
    background-color: rgba(0, 122, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

/* 充值按钮样式 */
.recharge-button {
    background-color: var(--accent-primary);
    color: white;
    border-radius: 10px;
    padding: 15px 0;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    cursor: pointer;
}

.recharge-button:hover {
    opacity: 0.9;
}

.recharge-button:active {
    transform: scale(0.98);
}

/* 交易记录样式 */
.transaction-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: var(--bg-tertiary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 18px;
}

.transaction-icon.recharge {
    background-color: rgba(0, 122, 255, 0.1);
    color: var(--accent-primary);
}

.transaction-icon.withdraw {
    background-color: rgba(255, 149, 0, 0.1);
    color: var(--accent-warning);
}

.transaction-details {
    flex: 1;
}

.transaction-title {
    font-weight: 500;
    margin-bottom: 3px;
    color: var(--text-primary);
}

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

.transaction-amount {
    font-weight: 600;
    text-align: right;
}

.transaction-amount.positive {
    color: var(--accent-secondary);
}

.transaction-amount.negative {
    color: var(--accent-danger);
}

.date-divider {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 10px 0;
    background-color: var(--bg-tertiary);
    text-align: center;
    margin: 10px 0;
    border-radius: 5px;
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background-color: var(--bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--card-shadow);
    z-index: 1000;
    cursor: pointer;
}

.theme-toggle-icon {
    font-size: 24px;
}

/* 动画效果