/**
 * 世和算力彩 - 响应式样式文件
 * 移动端优先设计
 */

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

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #51cf66;
    --warning-color: #ffd43b;
    --danger-color: #ff6b6b;
    --text-color: #333;
    --text-muted: #999;
    --bg-color: #f5f5f5;
    --border-color: #e5e5e5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-bottom: 65px; /* 底部导航栏高度 */
    -webkit-font-smoothing: antialiased;
}

.home-bg-matrix {
    background-color: #05050a;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    grid-auto-rows: 40px;
    min-width: 1920px;
    min-height: 1080px;
    font-size: 32px;
    color: rgba(0, 150, 255, 0.4);
    font-family: "Courier New", Courier, monospace;
    justify-content: center;
    align-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

.home-bg-matrix > span {
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 150, 255, 0.5);
    user-select: none;
    transition: color 0.5s, text-shadow 0.5s;
    line-height: 1;
}

.home-bg-matrix > span:nth-child(19n + 2) { animation: smooth-pulse 3.5s ease-in-out infinite 0.2s; }
.home-bg-matrix > span:nth-child(29n + 1) { animation: smooth-pulse 4.1s ease-in-out infinite 0.7s; }
.home-bg-matrix > span:nth-child(11n) { color: rgba(100, 200, 255, 0.7); animation: smooth-pulse 2.9s ease-in-out infinite 1.1s; }
.home-bg-matrix > span:nth-child(37n + 10) { animation: smooth-pulse 5.3s ease-in-out infinite 1.5s; }
.home-bg-matrix > span:nth-child(41n + 1) { animation: smooth-pulse 3.9s ease-in-out infinite 0.4s; }
.home-bg-matrix > span:nth-child(17n + 9) { animation: smooth-pulse 2.8s ease-in-out infinite 0.9s; }
.home-bg-matrix > span:nth-child(23n + 18) { animation: smooth-pulse 4.3s ease-in-out infinite 1.3s; }
.home-bg-matrix > span:nth-child(31n + 4) { animation: smooth-pulse 5.6s ease-in-out infinite 0.1s; }
.home-bg-matrix > span:nth-child(43n + 20) { animation: smooth-pulse 3.6s ease-in-out infinite 1.8s; }
.home-bg-matrix > span:nth-child(13n + 6) { animation: smooth-pulse 3.2s ease-in-out infinite 1.2s; }
.home-bg-matrix > span:nth-child(53n + 5) { animation: smooth-pulse 4.9s ease-in-out infinite 0.5s; }
.home-bg-matrix > span:nth-child(47n + 15) { animation: smooth-pulse 5.9s ease-in-out infinite 1s; }

@keyframes smooth-pulse {
    0%, 100% { color: rgba(0, 150, 255, 0.4); text-shadow: 0 0 5px rgba(0, 150, 255, 0.5); }
    30% { color: rgba(100, 200, 255, 1); text-shadow: 0 0 10px rgba(100, 200, 255, 1), 0 0 15px rgba(100, 200, 255, 1); }
    50% { color: rgba(255, 105, 180, 1); text-shadow: 0 0 10px rgba(255, 105, 180, 1), 0 0 15px rgba(255, 105, 180, 1); }
    70% { color: #ffffff; text-shadow: 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #fff; }
}

.home-content {
    position: relative;
    z-index: 1;
}

/* ==================== 轮播广告 ==================== */
.banner-container {
    width: 100%;
    background: #fff;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.banner-slide {
    position: relative;
    height: 180px;
    display: flex;
    align-items: flex-end;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.banner-text {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 20px 15px;
    font-size: 15px;
    font-weight: 500;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
    width: 100%;
}

.banner-action-bar {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.banner-action-btn {
    pointer-events: auto;
    width: 46%;
    padding: 10px 6px;
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    background: rgba(0,0,0,0.28);
    box-shadow: 0 6px 12px rgba(0,0,0,0.22);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.banner-action-btn:active {
    transform: scale(0.98);
}

/* ==================== 广告语 ==================== */
.banner-brand {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
    pointer-events: none;
}

.banner-brand-title {
    font-size: 24px;
    font-weight: 800;
    font-family: "STXingkai", "HanziPen SC", "STKaiti", "KaiTi", "STSong", "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 1.2px;
}

.banner-brand-subtitle {
    font-size: 16px;
    margin-top: 6px;
    font-weight: 700;
    color: #ffe2e2;
    font-family: "STXingkai", "HanziPen SC", "STKaiti", "KaiTi", "STSong", "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0.8px;
}

.result-countdown {
    font-size: 12px;
    color: #ff6b6b;
    font-weight: 700;
    margin-left: 6px;
}

/* ==================== 实时开奖区 ==================== */
.lottery-result-area {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
    display: block;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.result-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

.result-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.result-clock {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.history-link {
    border: none;
    background: transparent;
    color: #d0021b;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.result-list {
    max-height: none;
    overflow-y: visible;
}

.result-item {
    padding: 10px 12px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fff;
    color: #333;
}

.result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 6px;
}

.result-head-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.result-game {
    font-weight: 700;
    color: #333;
}

.result-period {
    color: #333;
}

.result-period em {
    color: #d0021b;
    font-style: normal;
    font-weight: 700;
}

.result-time {
    color: #333;
    font-weight: 600;
}

.result-number {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.result-number .fenfen-attrs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    height: 36px;
    padding: 0 12px;
    border-radius: 18px;
    background: rgba(102, 126, 234, 0.15);
    color: #5a4fcf;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
    border: 1px solid rgba(102, 126, 234, 0.35);
}

.result-number .number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    padding: 0 5px;
}

/* 球形号码列表（6+1） */
.ball-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 6px;
}

.ball-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 36px;
}

.ball-meta {
    font-size: 11px;
    color: #333;
    line-height: 1;
    white-space: nowrap;
}

.ball.plus {
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    color: #d0021b;
    font-size: 18px;
    font-weight: 800;
    padding: 0 2px;
}

.ball-img {
    width: 36px;
    height: 36px;
    display: block;
}

.ball-img.special {
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.4));
}

/* 波色数字气泡（按波色着色） */
.result-number .number.num-red { background: rgba(255, 77, 79, 0.55); }
.result-number .number.num-blue { background: rgba(24, 144, 255, 0.55); }
.result-number .number.num-green { background: rgba(82, 196, 26, 0.55); }

.result-number .attrs {
    font-size: 14px;
    font-weight: 500;
}

.result-number .attrs {
    font-size: 14px;
    font-weight: 500;
}

/* ==================== 合规提示 ==================== */
.compliance-notice {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    margin-bottom: 10px;
    font-size: 12px;
    border-left: 4px solid var(--warning-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==================== 玩法入口区 ==================== */
.game-entrance {
    padding: 10px 15px 15px;
}

.rules-entry {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.rules-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 22px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: #7b2d2d;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(255, 154, 158, 0.35);
    cursor: pointer;
}

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

.game-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.game-card:active {
    transform: translateY(2px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.game-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.game-info {
    flex: 1;
    min-width: 0;
}

.game-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.game-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.game-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    color: #fff;
    background: var(--text-muted);
}

.game-tag.hot {
    background: var(--danger-color);
}

.game-tag.new {
    background: var(--success-color);
}

/* ==================== 底部导航栏 ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    position: relative;
    padding: 8px 0;
}

.nav-item:active {
    background: rgba(0,0,0,0.03);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
}

.nav-text {
    font-size: 11px;
    line-height: 1;
}

/* ==================== 弹窗样式 ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.image-viewer-modal {
    background-color: rgba(0,0,0,0.92);
}

.image-viewer-content {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
}

.image-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    color: #fff;
    background: rgba(0,0,0,0.8);
}

.image-viewer-title {
    font-size: 18px;
    font-weight: 800;
}

.image-viewer-controls {
    display: flex;
    gap: 8px;
}

.viewer-btn {
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    background: #2c2c2c;
    color: #fff;
}

.viewer-btn.danger {
    background: #e74c3c;
}

.image-viewer-tabs {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.7);
}

.image-viewer-tabs.hidden {
    display: none;
}

.image-viewer-tabs .tab-btn {
    padding: 6px 12px;
    border: 1px solid #555;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-weight: 700;
}

.image-viewer-tabs .tab-btn.active {
    background: #ffffff;
    color: #111;
    border-color: #fff;
}

.image-viewer-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-viewer-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    transform: scale(1);
}


#loginModal.show {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 16px;
}

#loginModal {
    background-color: transparent;
    width: 100%;
    height: 100%;
}

.login-hero-title {
    position: absolute;
    top: 14vh;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 4px;
    text-align: center;
    background: linear-gradient(90deg, #ffe066, #ffd43b, #ff6b6b, #69db7c, #4dabf7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    z-index: 1;
    animation: hero-glow 3.5s ease-in-out infinite;
    pointer-events: none;
    font-family: "STXingkai", "HanziPen SC", "STKaiti", "KaiTi", "STSong", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.jp-matrix {
    background-color: #05050a;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    grid-auto-rows: 40px;
    min-width: 100%;
    min-height: 100%;
    font-size: 32px;
    color: rgba(0, 150, 255, 0.4);
    font-family: "Courier New", Courier, monospace;
    justify-content: center;
    align-content: center;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.jp-matrix > span {
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 150, 255, 0.5);
    user-select: none;
    transition: color 0.5s, text-shadow 0.5s;
    line-height: 1;
}

.jp-matrix > span:nth-child(19n + 2) {
    animation: smooth-pulse 3.5s ease-in-out infinite 0.2s;
}
.jp-matrix > span:nth-child(29n + 1) {
    animation: smooth-pulse 4.1s ease-in-out infinite 0.7s;
}
.jp-matrix > span:nth-child(11n) {
    color: rgba(100, 200, 255, 0.7);
    animation: smooth-pulse 2.9s ease-in-out infinite 1.1s;
}
.jp-matrix > span:nth-child(37n + 10) {
    animation: smooth-pulse 5.3s ease-in-out infinite 1.5s;
}
.jp-matrix > span:nth-child(41n + 1) {
    animation: smooth-pulse 3.9s ease-in-out infinite 0.4s;
}
.jp-matrix > span:nth-child(17n + 9) {
    animation: smooth-pulse 2.8s ease-in-out infinite 0.9s;
}
.jp-matrix > span:nth-child(23n + 18) {
    animation: smooth-pulse 4.3s ease-in-out infinite 1.3s;
}
.jp-matrix > span:nth-child(31n + 4) {
    animation: smooth-pulse 5.6s ease-in-out infinite 0.1s;
}
.jp-matrix > span:nth-child(43n + 20) {
    animation: smooth-pulse 3.6s ease-in-out infinite 1.8s;
}
.jp-matrix > span:nth-child(13n + 6) {
    animation: smooth-pulse 3.2s ease-in-out infinite 1.2s;
}
.jp-matrix > span:nth-child(53n + 5) {
    animation: smooth-pulse 4.9s ease-in-out infinite 0.5s;
}
.jp-matrix > span:nth-child(47n + 15) {
    animation: smooth-pulse 5.9s ease-in-out infinite 1s;
}

@keyframes smooth-pulse {
    0%,
    100% {
        color: rgba(0, 150, 255, 0.4);
        text-shadow: 0 0 5px rgba(0, 150, 255, 0.5);
    }
    30% {
        color: rgba(100, 200, 255, 1);
        text-shadow:
            0 0 10px rgba(100, 200, 255, 1),
            0 0 15px rgba(100, 200, 255, 1);
    }
    50% {
        color: rgba(255, 105, 180, 1);
        text-shadow:
            0 0 10px rgba(255, 105, 180, 1),
            0 0 15px rgba(255, 105, 180, 1);
    }
    70% {
        color: #ffffff;
        text-shadow:
            0 0 10px #fff,
            0 0 15px #fff,
            0 0 20px #fff;
    }
}

.login-modal-content {
    border-radius: 16px 16px 0 0;
    height: 70vh;
    max-height: 70vh;
    position: relative;
    width: min(92vw, 420px);
    margin: 0 auto;
    z-index: 2;
    box-sizing: border-box;
}

.login-board {
    margin-top: 14px;
    padding: 14px 12px 50px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #fff;
    position: relative;
    min-height: 160px;
}

.login-board-title {
    display: inline-block;
    padding: 6px 14px;
    background: #1f1f1f;
    color: #fff;
    font-size: 13px;
    border-radius: 8px;
    position: relative;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
}

.login-board-title::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 10px;
    border-style: solid;
    border-color: transparent transparent transparent #1f1f1f;
}

.login-board-body {
    min-height: 60px;
}

.login-board-qr {
    position: absolute;
    right: 6px;
    bottom: 12px;
    display: flex;
    align-items: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    padding: 6px;
}

.login-board-qr img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

/* 留言板二维码右侧文案已移除 */

.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
}

@keyframes hero-glow {
    0%,
    100% {
        opacity: 0.9;
        text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    }
    50% {
        opacity: 1;
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 16px rgba(255, 255, 255, 0.8);
    }
}

.modal-content {
    background-color: #fff;
    margin: 0 20px;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    animation: slideUp 0.3s;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-large {
    max-width: 90%;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 18px;
    margin: 0;
}

.close {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabs {
    display: flex;
    gap: 16px;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
}

.tab {
    padding: 5px 0;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    position: relative;
    white-space: nowrap;
}

.tab.active {
    color: var(--primary-color);
    font-weight: bold;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

@media (max-width: 420px) {
    .tabs {
        gap: 12px;
    }
    .tab {
        font-size: 14px;
    }
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

.form-group input[type="tel"],
.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-group input {
    flex: 1;
}

.captcha-img {
    width: 100px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    object-fit: cover;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    cursor: pointer;
}

.notice-link {
    color: #ff6b6b;
    font-weight: 700;
    text-decoration: none;
}

.notice-link:hover {
    text-decoration: underline;
}

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

.btn-primary {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:active {
    opacity: 0.9;
}

.form-tips {
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* ==================== 历史记录 ==================== */
.history-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.history-list {
    max-height: 60vh;
    overflow-y: auto;
}

/* ==================== 加载动画 ==================== */
.loading {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

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

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

/* ==================== 响应式适配 ==================== */
@media (min-width: 768px) {
    body {
        max-width: 500px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
        position: relative;
    }
    
    .banner-slide {
        height: 250px;
    }
    
    .bottom-nav {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 360px) {
    .nav-text {
        font-size: 10px;
    }
    
    .nav-icon {
        font-size: 22px;
    }
}
