* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 暗黑模式下的公告弹窗样式 */
html[data-theme='dark'] .notice-modal {
    /* 稍亮一点的渐变背景，和整体背景拉开层次 */
    background: radial-gradient(circle at top, #0b1120 0%, #020617 55%, #000000 100%);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.9);
    border: 1px solid #1f2937;
}

html[data-theme='dark'] .notice-modal h2 {
    color: #a5f3fc;
}

html[data-theme='dark'] .notice-modal p {
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 10px;
    padding: 12px 14px;
}

html[data-theme='dark'] .notice-modal button.btn-primary {
    background: #22c55e;
    border: none;
    color: #020617;
}

html[data-theme='dark'] .notice-modal button.btn-primary:hover {
    background: #16a34a;
}

/* 暗黑模式下的每日排行榜奖励说明文本 */
html[data-theme='dark'] .ranking-reward-notice {
    color: #9ca3af;
}

:root {
    --primary: #0049ff;
    --secondary: #ffb600;
    --accent: #9ac1f0;
    --bg: #ffffff;
    --text: #333333;
    --border: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 73, 255, 0.1);
}

html[data-theme='dark'] {
    --primary: #00ff9d;
    --secondary: #00ff9d;
    --accent: #00ff9d;
    --bg: #121212;
    --text: #e0e0e0;
    --border: #333333;
    --shadow: 0 4px 12px rgba(0, 255, 157, 0.1);
}

html[data-theme='dark'] .form-group input,
html[data-theme='dark'] .form-group textarea {
    background-color: #2a2a2a;
    border-color: #444444;
    color: var(--text);
}

html[data-theme='dark'] .form-group input:focus,
html[data-theme='dark'] .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.1);
}

html[data-theme='dark'] .btn-primary {
    color: #121212;
}

html[data-theme='dark'] .btn-primary:hover {
    background: #00b36e;
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.2);
}

html[data-theme='dark'] .btn-secondary:hover {
    color: #121212;
}

/* Dark mode responsive styles */
@media (max-width: 768px) {
    html[data-theme='dark'] .nav-links {
        background: #1a1a1a;
        border-bottom: 1px solid var(--border);
    }

    html[data-theme='dark'] .nav-links a:hover {
        background: #2a2a2a;
    }

    html[data-theme='dark'] .btn-secondary {
        background: #121212;
    }
    
    html[data-theme='dark'] .auth-buttons-mobile {
        background: linear-gradient(135deg, rgba(0, 255, 157, 0.05) 0%, rgba(0, 179, 110, 0.1) 100%);
        border-top-color: #333;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* 导航栏 */
nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: block;
    flex-shrink: 0;
}

/* PC端导航链接居中 */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
}

.hamburger {
    display: none;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

/* PC端认证按钮 - 默认显示 */
.auth-buttons-desktop {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

/* 移动端认证按钮 - 默认隐藏 */
.nav-auth-mobile {
    display: none;
}

.auth-buttons-mobile {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(0, 73, 255, 0.05) 0%, rgba(154, 193, 240, 0.1) 100%);
    border-top: 1px solid var(--border);
    justify-content: center;
    align-items: center;
}

.auth-buttons-mobile .btn {
    flex: 1;
    max-width: 120px;
    padding: 10px 15px;
    font-size: 14px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #0038cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 73, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面内容 */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 首页 */
.hero {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 73, 255, 0.05) 0%, rgba(154, 193, 240, 0.05) 100%);
    border-radius: 12px;
    margin: 40px 0;
}

.hero h1 {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    font-size: 16px;
    padding: 15px 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 60px 0;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
}

.disclaimer {
    background: linear-gradient(135deg, rgba(255, 182, 0, 0.05) 0%, rgba(0, 73, 255, 0.05) 100%);
    border-left: 4px solid var(--secondary);
    border-radius: 8px;
    padding: 20px;
    margin: 40px 0;
}

.disclaimer h3 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.disclaimer p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* 解析页面 */
.parse-section {
    margin: 40px 0;
}

.parse-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 73, 255, 0.1);
}

.parse-result {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    display: none !important;
}

.parse-result.show {
    display: block !important;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-item {
    background: linear-gradient(135deg, rgba(0, 73, 255, 0.05) 0%, rgba(154, 193, 240, 0.05) 100%);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.result-item label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.result-item .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    word-break: break-all;
}

.parse-tabs-container {
    margin-top: 40px;
    margin-bottom: 40px;
}

.parse-tabs {
    display: flex;
    gap: 12px;
    background: #f5f5f5;
    padding: 8px;
    border-radius: 12px;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.parse-tab-btn {
    padding: 12px 32px;
    background: white;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.parse-tab-btn.active {
    background: linear-gradient(135deg, #0049ff 0%, #0038cc 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 73, 255, 0.3);
}

html[data-theme='dark'] .parse-tabs {
    background: #2a2a2a;
}

html[data-theme='dark'] .parse-tab-btn {
    background: #333333;
    color: #a0a0a0;
}

html[data-theme='dark'] .parse-tab-btn.active {
    background: linear-gradient(135deg, #00ff9d 0%, #00b36e 100%);
    color: #121212;
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.2);
}

/* 会员价格页面 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pricing-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
}

.pricing-card.featured {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(255, 182, 0, 0.05) 0%, rgba(0, 73, 255, 0.05) 100%);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card h3 {
    color: var(--primary);
    font-size: 24px;
    margin: 20px 0;
}

.pricing-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    margin: 20px 0;
}

.pricing-price span {
    font-size: 16px;
    color: #999;
}

.pricing-features {
    text-align: left;
    margin: 20px 0;
    list-style: none;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: #666;
}

.pricing-features li:before {
    content: "✓ ";
    color: var(--primary);
    font-weight: 700;
    margin-right: 8px;
}

/* 卡密兑换页面 */
.redeem-section {
    margin: 40px 0;
}

.redeem-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    margin: 0 auto;
}

/* 暗黑模式下的卡密兑换布局与说明卡片 */
html[data-theme='dark'] .redeem-form {
    background: #111827 !important;
    border-color: #1f2937 !important;
}

html[data-theme='dark'] .redeem-help {
    background: #020617 !important;
    border-color: #1f2937 !important;
    color: #e5e7eb !important;
}

html[data-theme='dark'] .redeem-help p {
    color: #e5e7eb !important;
}

.redeem-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    display: none;
}

.redeem-result.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
    display: block;
}

.redeem-result.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
    display: block;
}

/* 暗黑模式下的卡密兑换结果提示 */
html[data-theme='dark'] .redeem-result.success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #6ee7b7 !important;
    border-left-color: #10b981 !important;
}

html[data-theme='dark'] .redeem-result.error {
    background: rgba(248, 113, 113, 0.12) !important;
    color: #fecaca !important;
    border-left-color: #f87171 !important;
}

/* 用户中心 */
.user-center {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin: 40px 0;
}

.user-profile {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.user-info {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
}

/* 暗黑模式下的用户信息与积分记录卡片 */
html[data-theme='dark'] .user-info {
    background: #111827;
    border-color: #1f2937;
}

html[data-theme='dark'] .points-history-card {
    background: #0f172a !important;
    border-color: #1f2937 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.6);
}

html[data-theme='dark'] #pointsHistoryList {
    color: #e5e7eb;
}

html[data-theme='dark'] #pointsHistoryList div {
    border-color: rgba(55, 65, 81, 0.8);
}

/* 暗黑模式下积分记录标题与文字对比度优化 */
html[data-theme='dark'] .points-history-card h4 {
    color: #e5e7eb !important;
}

html[data-theme='dark'] #pointsHistoryList .points-type-title {
    color: #e5e7eb !important;
}

html[data-theme='dark'] #pointsHistoryList .points-type-desc {
    color: #9ca3af !important;
}

/* 用户中心：积分记录列表滚动条美化，仅作用于该区域 */
#pointsHistoryList {
    scrollbar-width: thin;               /* Firefox */
    scrollbar-color: rgba(148, 163, 184, 0.8) transparent;
}

/* WebKit 浏览器自定义滚动条 */
#pointsHistoryList::-webkit-scrollbar {
    width: 6px;
}

#pointsHistoryList::-webkit-scrollbar-track {
    background: transparent;
}

#pointsHistoryList::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.8); /* slate-400 */
    border-radius: 999px;
}

#pointsHistoryList::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.95); /* slate-500 */
}

/* 暗黑模式下稍微提升对比度 */
html[data-theme='dark'] #pointsHistoryList {
    scrollbar-color: rgba(148, 163, 184, 0.9) transparent;
}

html[data-theme='dark'] #pointsHistoryList::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.9);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: var(--primary);
    font-weight: 600;
}

.vip-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.vip-badge.vip1 {
    background: #e3f2fd;
    color: #1976d2;
}

.vip-badge.vip2 {
    background: #fff3e0;
    color: #f57c00;
}

.vip-badge.vip3 {
    background: #f3e5f5;
    color: #7b1fa2;
}

.vip-badge.free {
    background: #f5f5f5;
    color: #999;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal:not(.show) {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--bg);
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal:not(.show) .modal-content {
    animation: slideOut 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-50px);
        opacity: 0;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: var(--primary);
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text);
}

/* 通知 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 2000;
    animation: slideInRight 0.3s ease;
    max-width: 380px;
    word-wrap: break-word;
    line-height: 1.8;
    border-left: 5px solid #2196f3;
}

.notification div {
    margin: 8px 0;
    font-size: 14px;
}

.notification div:first-child {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left: 5px solid #4caf50;
    background: linear-gradient(135deg, #ffffff 0%, #f1f8f4 100%);
}

.notification.success div:first-child {
    color: #2e7d32;
}

.notification.error {
    border-left: 5px solid #f44336;
    background: linear-gradient(135deg, #ffffff 0%, #ffebee 100%);
}

.notification.error div:first-child {
    color: #c62828;
}

.notification.info {
    border-left: 5px solid #2196f3;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}

.notification.info div:first-child {
    color: #1565c0;
}

/* 响应式设计 - 平板设备 */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }

    .result-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    /* 导航栏 */
    .nav-container {
        height: auto;
        padding: 10px 15px;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 18px;
        flex: 0 0 auto;
    }

    /* 汉堡菜单按钮 - 手机端显示 */
    .hamburger {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        gap: 5px;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* 导航链接 - 手机端下拉菜单 */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        list-style: none;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 99;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.show {
        display: flex;
        max-height: 500px;
    }

    .nav-links li {
        padding: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 12px 20px;
        color: var(--text);
        text-decoration: none;
        transition: background 0.2s ease;
    }

    .nav-links a:hover {
        background: #f5f5f5;
        color: var(--primary);
    }

    /* PC端认证按钮 - 移动端隐藏 */
    .auth-buttons-desktop {
        display: none !important;
    }

    /* 移动端认证按钮 - 移动端显示 */
    .nav-auth-mobile {
        display: block !important;
        padding: 0;
        border-bottom: none !important;
        border-top: 1px solid var(--border);
        margin-top: 5px;
    }
    
    .auth-buttons-mobile {
        display: flex !important;
        gap: 10px;
        padding: 15px 20px;
        background: linear-gradient(135deg, rgba(0, 73, 255, 0.05) 0%, rgba(154, 193, 240, 0.1) 100%);
        justify-content: center;
        align-items: center;
    }

    .auth-buttons-mobile .btn {
        flex: 1;
        max-width: 100px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .btn-secondary {
        background: white;
        color: var(--primary);
        border: 1px solid var(--primary);
    }

    .btn-secondary:hover {
        background: #f0f7ff;
    }

    /* 首页 */
    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    /* 功能特性 */
    .features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-item {
        padding: 15px;
    }

    .feature-item h3 {
        font-size: 16px;
    }

    /* 会员价格 */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pricing-card {
        padding: 20px;
    }

    .pricing-card h3 {
        font-size: 16px;
    }

    /* 用户中心 */
    .user-center {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .user-profile {
        text-align: center;
        padding: 20px;
    }

    .user-avatar {
        width: 80px;
        height: 80px;
    }

    .user-info {
        padding: 20px;
    }

    .info-row {
        padding: 10px 0;
        font-size: 13px;
    }

    /* 解析结果 */
    .result-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .result-item {
        padding: 10px;
    }

    .result-item label {
        font-size: 12px;
    }

    .result-item .value {
        font-size: 14px;
    }

    .parse-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .parse-tab-btn {
        padding: 12px 5px;
        font-size: 13px;
        text-align: center;
    }

    /* 模态框 */
    .modal-content {
        padding: 20px;
        width: 95%;
        max-width: 100%;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    /* 按钮 */
    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    .btn-primary {
        padding: 12px 20px;
    }

    /* 表单 */
    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 8px;
    }

    /* 通知 */
    .notification {
        max-width: 90vw;
        right: 5vw;
        left: auto;
        padding: 15px;
    }

    /* 公告弹窗 */
    .notice-modal {
        width: 95%;
        padding: 20px;
    }

    .notice-modal h2 {
        font-size: 18px;
    }

    .notice-modal p {
        font-size: 13px;
    }

    /* 表格 */
    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .action-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* 响应式设计 - 超小屏幕 */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    /* 导航栏 */
    .nav-container {
        padding: 8px 10px;
    }

    .logo {
        font-size: 16px;
    }

    .auth-buttons {
        gap: 6px;
    }

    .auth-buttons .btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 13px;
    }

    .modal-content {
        padding: 15px;
    }

    .btn {
        padding: 8px;
        font-size: 12px;
    }

    .notification {
        max-width: 85vw;
        right: 7.5vw;
        font-size: 12px;
    }

    .notice-modal {
        width: 90%;
        padding: 15px;
    }

    table {
        font-size: 11px;
    }

    th, td {
        padding: 5px;
    }
}

/* 公告弹窗 */
.notice-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    max-width: 500px;
    width: 90%;
    animation: slideDown 0.3s ease;
}

.notice-modal h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 20px;
}

.notice-modal p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 20px;
    word-wrap: break-word;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
}

.notice-modal button {
    margin-top: 10px;
}

/* 用户中心：积分记录基础行样式 */
.points-history-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #e5e7eb;
}

html[data-theme='dark'] .points-history-row {
    border-bottom-color: rgba(148, 163, 184, 0.4);
}

/* 每日排行榜奖励：使用更醒目的颜色 */
.points-amount {
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
}

.points-history-row-ranking {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.0));
    border-radius: 4px;
    padding-left: 6px;
    padding-right: 6px;
}

.points-amount-ranking {
    color: #ea580c;
}

html[data-theme='dark'] .points-history-row-ranking {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.22), rgba(234, 179, 8, 0.02));
}

html[data-theme='dark'] .points-amount-ranking {
    color: #facc15;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 每日调用排行榜样式 */
.ranking-section {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.ranking-section h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-container {
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ranking-table thead {
    background: linear-gradient(135deg, rgba(0, 73, 255, 0.05), rgba(154, 193, 240, 0.05));
    border-bottom: 2px solid var(--primary);
}

html[data-theme='dark'] .ranking-table thead {
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.08), rgba(0, 255, 157, 0.05));
}

.ranking-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.ranking-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.ranking-table tbody tr {
    transition: all 0.3s ease;
}

.ranking-table tbody tr:hover {
    background: rgba(0, 73, 255, 0.05);
}

html[data-theme='dark'] .ranking-table tbody tr:hover {
    background: rgba(0, 255, 157, 0.08);
}

.ranking-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.ranking-rank.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.5);
    animation: rankingGlowGold 2.4s ease-in-out infinite;
}

.ranking-rank.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
    box-shadow: 0 0 0 0 rgba(192, 192, 192, 0.45);
    animation: rankingGlowSilver 2.6s ease-in-out infinite;
}

.ranking-rank.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    box-shadow: 0 0 0 0 rgba(205, 127, 50, 0.45);
    animation: rankingGlowBronze 2.8s ease-in-out infinite;
}

.ranking-rank.rank-other {
    background: var(--primary);
    color: white;
}

html[data-theme='dark'] .ranking-rank.rank-other {
    background: var(--primary);
    color: #121212;
}

.ranking-username {
    font-weight: 600;
    color: var(--primary);
}

.ranking-calls {
    font-weight: bold;
    color: var(--primary);
    font-size: 16px;
}

.ranking-response-time {
    color: #666;
    font-size: 12px;
}

html[data-theme='dark'] .ranking-response-time {
    color: #aaa;
}

.ranking-vip-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* 白天模式 */
.ranking-vip-badge.vip-free {
    background: rgba(153, 153, 153, 0.08);
    color: #999;
    border: 1px solid #ddd;
}

.ranking-vip-badge.vip-1 {
    background: rgba(0, 73, 255, 0.08);
    color: #0049ff;
    border: 1px solid rgba(0, 73, 255, 0.3);
}

.ranking-vip-badge.vip-2 {
    background: rgba(255, 182, 0, 0.08);
    color: #ffb600;
    border: 1px solid rgba(255, 182, 0, 0.3);
}

.ranking-vip-badge.vip-3 {
    background: rgba(154, 193, 240, 0.12);
    color: #0049ff;
    border: 1px solid rgba(154, 193, 240, 0.5);
}

/* 暗黑模式 */
html[data-theme='dark'] .ranking-vip-badge.vip-free {
    background: rgba(100, 100, 100, 0.15);
    color: #888;
    border: 1px solid rgba(100, 100, 100, 0.4);
}

html[data-theme='dark'] .ranking-vip-badge.vip-1 {
    background: rgba(0, 255, 157, 0.1);
    color: #00ff9d;
    border: 1px solid rgba(0, 255, 157, 0.4);
}

html[data-theme='dark'] .ranking-vip-badge.vip-2 {
    background: rgba(0, 255, 157, 0.08);
    color: #00ff9d;
    border: 1px solid rgba(0, 255, 157, 0.3);
}

html[data-theme='dark'] .ranking-vip-badge.vip-3 {
    background: rgba(0, 255, 157, 0.12);
    color: #00ff9d;
    border: 1px solid rgba(0, 255, 157, 0.5);
}

.ranking-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text);
    font-size: 14px;
}

.ranking-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

.ranking-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* 排行榜前三名发光呼吸动画 */
@keyframes rankingGlowGold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.15);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 18px 4px rgba(255, 215, 0, 0.55);
        transform: scale(1.06);
    }
}

@keyframes rankingGlowSilver {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(192, 192, 192, 0.12);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 16px 3px rgba(192, 192, 192, 0.5);
        transform: scale(1.05);
    }
}

@keyframes rankingGlowBronze {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(205, 127, 50, 0.12);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 14px 3px rgba(205, 127, 50, 0.5);
        transform: scale(1.04);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ranking-section {
        padding: 20px;
        margin: 30px 0;
    }

    .ranking-section h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .ranking-table {
        font-size: 12px;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 10px 8px;
    }

    .ranking-rank {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .ranking-calls {
        font-size: 14px;
    }
}

