/* ============================================================
   iOS 26 液态效果 UI 样式表
   和平精英地铁逃生装备交易系统
   ============================================================ */

/* CSS 变量 - iOS 系统色 */
:root {
    --ios-blue: #007AFF;
    --ios-green: #34C759;
    --ios-indigo: #5856D6;
    --ios-orange: #FF9500;
    --ios-pink: #FF2D55;
    --ios-purple: #AF52DE;
    --ios-red: #FF3B30;
    --ios-teal: #5AC8FA;
    --ios-yellow: #FFCC00;
    
    --bg-primary: #F2F2F7;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #E5E5EA;
    
    --text-primary: #000000;
    --text-secondary: #3C3C43;
    --text-tertiary: #8E8E93;
    
    --separator: rgba(60, 60, 67, 0.12);
    
    --liquid-blur: 20px;
    --liquid-saturation: 180%;
    --liquid-border: rgba(255, 255, 255, 0.18);
    
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 暗色模式 */
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #1C1C1E;
    --bg-tertiary: #2C2C2E;
    
    --text-primary: #FFFFFF;
    --text-secondary: #EBEBF5;
    --text-tertiary: #8E8E93;
    
    --separator: rgba(84, 84, 88, 0.36);
    --liquid-border: rgba(255, 255, 255, 0.1);
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

/* 液态背景动画 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 122, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(88, 86, 214, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(52, 199, 89, 0.04) 0%, transparent 50%);
    z-index: -1;
    animation: liquidBgFlow 20s ease-in-out infinite alternate;
}

@keyframes liquidBgFlow {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(-5deg); }
}

/* ============================================================
   液态玻璃卡片 - 核心组件
   ============================================================ */
.liquid-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturation));
    -webkit-backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturation));
    border: 0.5px solid var(--liquid-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.5s var(--spring);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .liquid-card {
    background: rgba(28, 28, 30, 0.72);
}

.liquid-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.liquid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

/* ============================================================
   布局
   ============================================================ */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturation));
    -webkit-backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturation));
    border-right: 0.5px solid var(--separator);
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.5s var(--spring);
}

[data-theme="dark"] .sidebar {
    background: rgba(28, 28, 30, 0.8);
}

.sidebar-logo {
    padding: 0 24px 24px;
    border-bottom: 0.5px solid var(--separator);
    margin-bottom: 16px;
}

.sidebar-logo img {
    max-height: 40px;
    width: auto;
    border-radius: var(--radius-sm);
}

.sidebar-logo .logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.sidebar-logo .logo-sub {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.sidebar-menu {
    list-style: none;
    padding: 0 12px;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.sidebar-menu a i {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.sidebar-menu a:hover {
    background: rgba(0, 122, 255, 0.08);
    color: var(--ios-blue);
    transform: translateX(4px);
}

.sidebar-menu a.active {
    background: rgba(0, 122, 255, 0.12);
    color: var(--ios-blue);
}

.sidebar-menu a.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--ios-blue);
    border-radius: 0 3px 3px 0;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px 32px;
    min-height: 100vh;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.topbar h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.topbar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ============================================================
   按钮 - 液态效果
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--spring);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--ios-blue);
    color: #fff;
}

.btn-primary:hover {
    background: #0066D6;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
}

.btn-success {
    background: var(--ios-green);
    color: #fff;
}

.btn-success:hover {
    background: #2BB24C;
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.4);
}

.btn-danger {
    background: var(--ios-red);
    color: #fff;
}

.btn-danger:hover {
    background: #E02E23;
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.4);
}

.btn-warning {
    background: var(--ios-orange);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--ios-blue);
    border: 0.5px solid var(--separator);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 0.5px solid var(--separator);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s var(--ease-out);
    font-family: inherit;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .form-control {
    background: rgba(44, 44, 46, 0.8);
}

.form-control:focus {
    outline: none;
    border-color: var(--ios-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238E8E93'%3E%3Cpath d='M6 8.825L1.175 4 2.5 2.675 6 6.175 9.5 2.675 10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ============================================================
   表格
   ============================================================ */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    text-align: left;
    padding: 14px 16px;
    color: var(--text-tertiary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 0.5px solid var(--separator);
    background: rgba(0, 0, 0, 0.02);
    white-space: nowrap;
}

td {
    padding: 14px 16px;
    border-bottom: 0.5px solid var(--separator);
    color: var(--text-primary);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: rgba(0, 122, 255, 0.03);
}

/* ============================================================
   统计卡片
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 24px;
    position: relative;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    margin-bottom: 16px;
}

.stat-card .stat-icon.blue { background: linear-gradient(135deg, #007AFF, #5AC8FA); }
.stat-card .stat-icon.green { background: linear-gradient(135deg, #34C759, #30D158); }
.stat-card .stat-icon.orange { background: linear-gradient(135deg, #FF9500, #FFB340); }
.stat-card .stat-icon.purple { background: linear-gradient(135deg, #5856D6, #AF52DE); }
.stat-card .stat-icon.red { background: linear-gradient(135deg, #FF3B30, #FF6961); }

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.stat-card .stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ios-green);
    margin-top: 8px;
}

/* ============================================================
   徽章/标签
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    gap: 4px;
}

.badge-blue { background: rgba(0, 122, 255, 0.12); color: var(--ios-blue); }
.badge-green { background: rgba(52, 199, 89, 0.12); color: var(--ios-green); }
.badge-orange { background: rgba(255, 149, 0, 0.12); color: var(--ios-orange); }
.badge-red { background: rgba(255, 59, 48, 0.12); color: var(--ios-red); }
.badge-gray { background: rgba(142, 142, 147, 0.12); color: var(--text-tertiary); }
.badge-purple { background: rgba(88, 86, 214, 0.12); color: var(--ios-indigo); }

/* ============================================================
   登录页面
   ============================================================ */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
}

.auth-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 122, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(88, 86, 214, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(52, 199, 89, 0.08) 0%, transparent 50%);
    z-index: -1;
    animation: liquidBgFlow 15s ease-in-out infinite alternate;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo img {
    max-height: 64px;
    width: auto;
    border-radius: var(--radius-md);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-tertiary);
    text-align: center;
    margin-bottom: 32px;
}

.captcha-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.captcha-group .form-control {
    flex: 1;
}

.captcha-img {
    height: 48px;
    width: 130px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 0.5px solid var(--separator);
    object-fit: cover;
}

/* ============================================================
   提示/通知
   ============================================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success { background: rgba(52, 199, 89, 0.12); color: var(--ios-green); }
.alert-error { background: rgba(255, 59, 48, 0.12); color: var(--ios-red); }
.alert-warning { background: rgba(255, 149, 0, 0.12); color: var(--ios-orange); }
.alert-info { background: rgba(0, 122, 255, 0.12); color: var(--ios-blue); }

/* ============================================================
   聊天界面
   ============================================================ */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 0.5px solid var(--separator);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 70%;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    animation: chatMsgIn 0.3s var(--spring);
}

@keyframes chatMsgIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-message.outgoing {
    align-self: flex-end;
    background: var(--ios-blue);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-message.incoming {
    align-self: flex-start;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-message .msg-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
}

.chat-input-area {
    padding: 16px 20px;
    border-top: 0.5px solid var(--separator);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input-area input {
    flex: 1;
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.page-btn, .page-dots {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.6);
    border: 0.5px solid var(--separator);
    transition: all 0.3s var(--ease-out);
}

[data-theme="dark"] .page-btn {
    background: rgba(44, 44, 46, 0.6);
}

.page-btn:hover {
    background: rgba(0, 122, 255, 0.08);
    color: var(--ios-blue);
}

.page-btn.active {
    background: var(--ios-blue);
    color: #fff;
    border-color: var(--ios-blue);
}

.page-dots {
    background: transparent;
    border: none;
}

/* ============================================================
   工具类
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--ios-blue); }
.text-success { color: var(--ios-green); }
.text-danger { color: var(--ios-red); }
.text-warning { color: var(--ios-orange); }
.text-muted { color: var(--text-tertiary); }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 24px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.w-full { width: 100%; }
.hidden { display: none; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 200;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .topbar h1 {
        font-size: 22px;
    }
    
    .auth-card {
        padding: 28px 24px;
    }
}

/* 移动端遮罩 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 150;
}

.sidebar-overlay.show {
    display: block;
}

/* ============================================================
   加载动画
   ============================================================ */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--ios-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================================
   切换开关
   ============================================================ */
.toggle {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-tertiary);
    border-radius: 31px;
    transition: 0.3s var(--ease-out);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 27px;
    width: 27px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.3s var(--spring);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.toggle input:checked + .toggle-slider {
    background: var(--ios-green);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* ============================================================
   头像
   ============================================================ */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 0.5px solid var(--separator);
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

/* ============================================================
   订单卡片
   ============================================================ */
.order-card {
    padding: 20px;
    margin-bottom: 16px;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 0.5px solid var(--separator);
}

.order-no {
    font-size: 13px;
    color: var(--text-tertiary);
    font-family: 'SF Mono', monospace;
}

.order-amount {
    font-size: 22px;
    font-weight: 700;
}

/* ============================================================
   进度条
   ============================================================ */
.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 20px 0;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bg-tertiary);
    z-index: 0;
}

.progress-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.progress-step .step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 16px;
    transition: all 0.4s var(--spring);
}

.progress-step.active .step-dot {
    background: var(--ios-blue);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(0, 122, 255, 0.15);
}

.progress-step.completed .step-dot {
    background: var(--ios-green);
    color: #fff;
}

.progress-step .step-label {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--ios-blue);
    font-weight: 600;
}

/* ============================================================
   上传区域
   ============================================================ */
.upload-area {
    border: 2px dashed var(--separator);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.upload-area:hover {
    border-color: var(--ios-blue);
    background: rgba(0, 122, 255, 0.04);
}

.upload-area i {
    font-size: 32px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

/* 图片预览 */
.image-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--radius-md);
    margin-top: 12px;
}

/* ============================================================
   模态框
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s var(--ease-out);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    width: 90%;
    max-width: 500px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: modalIn 0.4s var(--spring);
}

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

.modal-header {
    padding: 20px 24px;
    border-bottom: 0.5px solid var(--separator);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-tertiary);
    padding: 4px 8px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 0.5px solid var(--separator);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ============================================================
   移动端菜单按钮
   ============================================================ */
.mobile-menu-btn {
    display: none;
    background: var(--bg-tertiary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* ============================================================
公告弹窗 液态效果
============================================================ */
.announcement-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.announcement-modal {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.announcement-modal-overlay.show .announcement-modal {
    transform: scale(1) translateY(0);
}

.announcement-modal-header {
    padding: 20px 24px 12px;
    text-align: center;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.announcement-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 12px;
}

.announcement-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.announcement-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.announcement-modal-body img {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
}

.announcement-modal-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.announcement-modal-content p {
    margin-bottom: 8px;
}

.announcement-modal-footer {
    padding: 12px 24px 20px;
    flex-shrink: 0;
}

.announcement-modal-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #007AFF, #0a84ff);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.announcement-modal-btn:active {
    transform: scale(0.97);
}
