* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1890ff;
    --primary-hover: #40a9ff;
    --primary-light: #e6f7ff;
    --success-color: #52c41a;
    --error-color: #ff4d4f;
    --warning-color: #faad14;
    --text-primary: #262626;
    --text-secondary: #595959;
    --text-tertiary: #8c8c8c;
    --border-color: #d9d9d9;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f5f7fa;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.navbar-brand h1 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

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

.navbar-menu a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.navbar-menu a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.navbar-menu a.logout-btn {
    color: var(--error-color);
}

.navbar-menu a.logout-btn:hover {
    background: #fff1f0;
    color: var(--error-color);
}

.points-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: var(--shadow-sm);
}

/* 主容器 */
.main-content {
    padding: 30px 20px;
    min-height: calc(100vh - 80px);
}

/* 页面 */
.page {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.page.active {
    display: block;
}

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

/* 登录/注册框 */
.login-box {
    max-width: 420px;
    margin: 60px auto;
    padding: 40px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.login-box h2 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.form-group input[readonly] {
    background-color: var(--bg-tertiary);
    cursor: not-allowed;
}

.form-box {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.form-box:hover {
    box-shadow: var(--shadow-lg);
}

.form-box h3 {
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

/* 按钮 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
    color: white;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    width: auto;
}

/* 结果框 */
.result-box {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    animation: slideUp 0.3s ease-out;
}

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

.result-box h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.result-item {
    margin-bottom: 20px;
}

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

.copy-input {
    display: flex;
    gap: 12px;
}

.copy-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg-secondary);
}

/* 管理记录 */
.history-box {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.history-box h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.history-item {
    padding: 20px;
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: var(--bg-primary);
}

.history-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.history-item-info {
    flex: 1;
}

.history-item-url {
    color: var(--text-tertiary);
    font-size: 13px;
    margin-top: 6px;
    word-break: break-all;
}

/* 英雄区 */
.hero {
    text-align: center;
    padding: 80px 20px;
    background-image: url('../imgs/34.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    border-radius: var(--radius-lg);
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: heroPulse 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes heroPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    width: 100%;
}

.hero-logo {
    margin-bottom: 24px;
    display: inline-block;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-logo-img {
    width: auto;
    max-width: 200px;
    height: auto;
    max-height: 120px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    backdrop-filter: blur(10px);
    object-fit: contain;
    display: block;
}

.hero h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
    word-wrap: break-word;
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    word-wrap: break-word;
}

/* 首页轮播广告区域 */
.hero-slider {
    position: relative;
    z-index: 2;
    margin-top: 16px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.hero-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
}

.hero-slide a,
.hero-slide img {
    display: block;
    width: 100%;
}

.hero-slide img {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    max-height: 260px;
    object-fit: cover;
}

/* 功能卡片 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-card {
    background: #ffffff;
    padding: 40px 32px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(102, 126, 234, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.1), 0 16px 48px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    margin-bottom: 24px;
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25), 0 8px 24px rgba(102, 126, 234, 0.15), 0 12px 32px rgba(102, 126, 234, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto 24px;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.feature-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.feature-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.feature-card:hover .feature-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* 标签页 */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--bg-tertiary);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

.desktop-only.tab-content.active {
    display: block !important;
}

/* 表格 */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

table th {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
    border-bottom: 2px solid var(--border-color);
}

table td {
    padding: 16px;
    border-bottom: 1px solid var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 14px;
}

table tr:hover {
    background-color: var(--primary-light);
}

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

/* 提示信息 */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

/* 居中显示的提示消息 */
.alert-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    margin: 0;
    padding: 16px 24px;
    min-width: 280px;
    max-width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
}

.alert-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background-color: #f6ffed;
    border-color: var(--success-color);
    color: #389e0d;
}

.alert-error {
    background-color: #fff1f0;
    border-color: var(--error-color);
    color: #cf1322;
}

.alert-info {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: #0958d9;
}

.alert-warning {
    background-color: #fffbe6;
    border-color: var(--warning-color);
    color: #d48806;
}

/* 居中提示消息的背景色 */
.alert-toast.alert-success {
    background-color: #ffffff;
    border: 2px solid var(--success-color);
    color: var(--success-color);
}

.alert-toast.alert-error {
    background-color: #ffffff;
    border: 2px solid var(--error-color);
    color: var(--error-color);
}

.alert-toast.alert-info {
    background-color: #ffffff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.alert-toast.alert-warning {
    background-color: #ffffff;
    border: 2px solid var(--warning-color);
    color: var(--warning-color);
}

/* 公告样式 - 滚动文字框 */
.announcement-marquee {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    position: relative;
}

.announcement-close-btn {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    border-radius: 4px;
    padding: 0;
    margin-left: 4px;
}

.announcement-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.announcement-close-btn:active {
    transform: scale(0.9);
}

.announcement-close-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.announcement-label {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.announcement-scroll-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 24px;
    display: flex;
    align-items: center;
}

.announcement-scroll-content {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    display: inline-block;
    animation: scroll-left 60s linear infinite;
    will-change: transform;
    padding-left: 100%;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 鼠标悬停时暂停滚动 */
.announcement-marquee:hover .announcement-scroll-content {
    animation-play-state: paused;
}

.announcement-content {
    display: inline;
    margin: 0;
}

.announcement-content p {
    display: inline;
    margin: 0 20px 0 0;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .announcement-marquee {
        padding: 10px 12px;
        margin: 16px 0;
        gap: 8px;
    }

    .announcement-label {
        font-size: 12px;
    }

    .announcement-scroll-content {
        font-size: 12px;
    }

    .announcement-scroll-wrapper {
        min-height: 20px;
    }
}

/* 注册协议样式 */
.agreement-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.agreement-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.agreement-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
}

.agreement-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 13px;
    margin-bottom: 12px;
}

.agreement-content p {
    margin: 6px 0;
}

.agreement-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(24, 144, 255, 0.2);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* 底部菜单栏 */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.bottom-nav-item:active {
    opacity: 0.7;
}

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

.bottom-nav-item-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    line-height: 1;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav-item-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
}

.bottom-nav-item-text {
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition);
}

.bottom-nav-item.active .bottom-nav-item-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.bottom-nav-item.active .bottom-nav-item-icon svg {
    stroke: var(--primary-color);
}

.bottom-nav-item:not(.active) .bottom-nav-item-icon svg {
    stroke: var(--text-secondary);
}

.bottom-nav-item.active .bottom-nav-item-text {
    color: var(--primary-color);
    font-weight: 600;
}

/* 为底部菜单预留空间 */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }

    .main-content {
        padding-bottom: 80px;
    }

    .bottom-nav {
        display: flex;
    }
}

/* 公告确认弹窗样式 */
#announcementConfirmModal {
    user-select: none;
    -webkit-user-select: none;
}

#announcementConfirmModal > div {
    pointer-events: auto;
}

#announcementConfirmModal {
    pointer-events: auto;
}

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

    .navbar-brand h1 {
        font-size: 18px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        gap: 0;
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-menu a {
        width: 100%;
        padding: 14px 16px;
        border-radius: var(--radius-sm);
        margin-bottom: 8px;
        text-align: left;
    }

    .points-badge {
        margin: 8px 0 0 0;
        width: 100%;
        text-align: center;
    }

    .main-content {
        padding: 20px 16px;
    }

    .container {
        padding: 0 16px;
    }

    .login-box {
        margin: 30px auto;
        padding: 24px;
    }

    .login-box h2 {
        font-size: 24px;
    }

    .form-box {
        padding: 24px;
    }

    /* 手机版：顶部横幅使用横向长方形比例（比电脑端更矮） */
    .hero {
        padding: 24px 16px;
        min-height: 140px;
        aspect-ratio: 16 / 9;
        max-height: 160px;
        width: 100%;
        box-sizing: border-box;
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .hero-logo-img {
        max-width: 150px;
        max-height: 90px;
        padding: 12px;
    }

    .hero h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 14px;
        line-height: 1.4;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 4px;
    }

    .feature-card {
        padding: 24px 16px;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(102, 126, 234, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        min-height: 160px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .feature-card:active {
        transform: translateY(-2px) scale(0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(102, 126, 234, 0.12);
    }

    .feature-icon {
        width: 64px;
        height: 64px;
        margin: 0 auto 16px;
        border-radius: 18px;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2), 0 4px 16px rgba(102, 126, 234, 0.15), 0 8px 24px rgba(102, 126, 234, 0.1);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .feature-icon-img {
        width: 36px;
        height: 36px;
    }

    .feature-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
        font-weight: 700;
        color: #1a1a1a;
        line-height: 1.3;
    }

    .feature-card p {
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 0;
        color: #666;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .feature-arrow {
        display: none;
    }

    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table th,
    table td {
        padding: 12px 8px;
        font-size: 13px;
    }

    .copy-input {
        flex-direction: column;
    }

    .copy-input .btn {
        width: 100%;
    }

    .result-box,
    .history-box {
        padding: 20px;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* 手机端公告确认弹窗适配 */
    #announcementConfirmModal {
        padding: 10px;
    }

    #announcementConfirmModal > div {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 12px;
    }

    #announcementConfirmContent {
        padding: 16px !important;
        font-size: 13px !important;
        max-height: calc(90vh - 140px) !important;
    }

    /* 手机端公告滚动框适配 */
    .announcement-marquee {
        padding: 10px 12px;
        gap: 8px;
    }

    .announcement-close-btn {
        width: 20px;
        height: 20px;
        margin-left: 2px;
    }

    .announcement-close-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .navbar-brand h1 {
        font-size: 16px;
    }

    .hero {
        padding: 20px 12px;
        min-height: 120px;
        aspect-ratio: 16 / 9;
        max-height: 140px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .hero-logo-img {
        max-width: 120px;
        max-height: 70px;
        padding: 10px;
    }

    .hero h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .hero p {
        font-size: 13px;
        line-height: 1.4;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 2px;
    }

    .feature-card {
        padding: 20px 12px;
        border-radius: 14px;
        min-height: 150px;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
        border-radius: 16px;
    }

    .feature-icon-img {
        width: 32px;
        height: 32px;
    }

    .feature-card h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .feature-card p {
        font-size: 11px;
        line-height: 1.5;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 2px;
    }

    .feature-card {
        padding: 20px 12px;
        border-radius: 14px;
        min-height: 150px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2), 0 4px 16px rgba(102, 126, 234, 0.15), 0 8px 24px rgba(102, 126, 234, 0.1);
    }

    .feature-icon-img {
        width: 24px;
        height: 24px;
    }

    .feature-card h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .feature-card p {
        font-size: 10px;
        line-height: 1.4;
        margin-bottom: 6px;
    }

    .form-box h3 {
        font-size: 18px;
    }

    .login-box {
        padding: 20px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选择文本样式 */
::selection {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* ========== 抖音卡片模块手机端优化 ========== */

/* 抖音卡片容器 - 电脑端两列布局，手机端单列 */
.douyin-card-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* 卡片描述输入框 - 手机端和标题一样大 */
.card-description-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 38px; /* 和input一样高 */
}

/* 封面图上传区域 */
.cover-image-upload-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.cover-image-preview {
    width: 100px;
    height: 100px;
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.cover-image-actions {
    flex: 1;
}

.cover-image-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.cover-image-buttons .btn {
    flex: 1;
}

/* 电脑端预览区域 */
.desktop-card-preview {
    display: block;
}

.desktop-preview-content {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    display: flex;
    gap: 12px;
}

.desktop-preview-image {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.desktop-preview-text {
    flex: 1;
}

/* 手机端预览区域 - 默认隐藏 */
.mobile-card-preview {
    display: none;
    margin-top: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.mobile-preview-title {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 500;
}

.mobile-preview-content {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mobile-preview-image {
    width: 60px;
    height: 60px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-preview-text {
    flex: 1;
    min-width: 0;
}

/* 我的卡片列表 - 手机端卡片式布局 */
.card-list-mobile {
    display: none;
}

/* ========== 生成管理卡片样式 ========== */

/* 桌面端表格 - 默认显示 */
.desktop-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* 手机端卡片列表 - 默认隐藏 */
.history-cards-mobile {
    display: none;
}

/* 历史记录卡片项 */
.history-card-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.history-card-item:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.history-card-content {
    margin-bottom: 12px;
}

/* 小圆码卡片 - 图片在左，信息在右 */
.history-card-image-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.history-card-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    flex-shrink: 0;
}

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

/* 短链接卡片 - 纯文本布局 */
.history-card-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
    font-weight: 500;
}

.history-card-value {
    font-size: 14px;
    color: #333;
    word-break: break-all;
    line-height: 1.5;
    margin-bottom: 8px;
}

.history-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.history-card-type {
    display: inline-block;
    padding: 4px 8px;
    background: #f0f9ff;
    color: #1890ff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.history-card-time {
    font-size: 12px;
    color: #999;
}

.history-card-actions {
    display: flex;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.history-card-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
    text-align: center;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.history-card-actions .btn-view {
    background: linear-gradient(135deg, #1890ff 0%, #764ba2 100%);
    color: white;
}

.history-card-actions .btn-view:active {
    opacity: 0.8;
    transform: scale(0.98);
}

.history-card-actions .btn-delete {
    background: #ff4d4f;
    color: white;
}

.history-card-actions .btn-delete:active {
    opacity: 0.8;
    transform: scale(0.98);
}

.card-item-mobile {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.card-item-mobile-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-item-mobile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-item-mobile-info {
    flex: 1;
    min-width: 0;
}

.card-item-mobile-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-item-mobile-desc {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-item-mobile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.card-item-mobile-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-item-mobile-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.card-item-mobile-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    text-align: center;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.card-item-mobile-actions .btn-primary {
    background: linear-gradient(135deg, #1890ff 0%, #764ba2 100%);
    color: white;
}

.card-item-mobile-actions .btn-danger {
    background: #ff4d4f;
    color: white;
}

.card-item-mobile-actions .btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #d9d9d9;
}

/* 手机端媒体查询 */
@media (max-width: 768px) {
    /* 抖音卡片容器 - 手机端单列 */
    .douyin-card-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 隐藏电脑端预览 */
    .desktop-card-preview {
        display: none !important;
    }
    
    /* 显示手机端预览 */
    .mobile-card-preview {
        display: block;
    }
    
    /* 封面图上传区域 - 手机端：图片在左，按钮在右 */
    .cover-image-upload-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }
    
    .cover-image-preview {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        margin: 0;
    }
    
    .cover-image-actions {
        flex: 1;
        min-width: 0;
    }
    
    .cover-image-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .cover-image-buttons .btn {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
    
    .cover-image-tips {
        margin-top: 8px;
    }
    
    /* 我的卡片列表 - 手机端显示卡片式，隐藏表格 */
    .data-table {
        display: none !important;
    }
    
    .card-list-mobile {
        display: block;
    }
    
    /* 卡片描述输入框 - 手机端和标题一样高 */
    .card-description-input {
        min-height: 38px;
        max-height: 38px;
        resize: none;
    }
    
    /* 生成管理 - 手机端显示卡片，隐藏表格 */
    .desktop-table {
        display: none !important;
    }
    
    .history-cards-mobile {
        display: block;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .cover-image-preview {
        width: 80px;
        height: 80px;
    }
    
    .mobile-preview-image {
        width: 50px;
        height: 50px;
    }
    
    .card-item-mobile-image {
        width: 50px;
        height: 50px;
    }
}

/* ==================== 个人中心手机端样式 ==================== */

/* 电脑端显示，手机端隐藏 */
.desktop-only {
    display: block;
}

.desktop-only.tab-content {
    display: none;
}

.desktop-only.tab-content.active {
    display: block !important;
}

/* 手机端显示，电脑端隐藏 */
.mobile-only {
    display: none;
}

/* 手机端用户信息卡片 */
.mobile-user-info-card {
    display: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(24, 144, 255, 0.2);
    color: white;
}

.user-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.user-info-item:last-child {
    margin-bottom: 0;
}

.user-info-label {
    font-size: 15px;
    opacity: 0.9;
    font-weight: 500;
}

.user-info-value {
    font-size: 18px;
    font-weight: 700;
    text-align: right;
}

/* 手机端菜单卡片 */
.mobile-user-menu-card {
    display: none;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #f0f0f0;
}

.mobile-menu-card-title {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 设置卡片如果没有标题，第一个菜单项不需要上边框 */
.mobile-user-menu-card:not(:has(.mobile-menu-card-title)) .mobile-menu-item:first-child {
    border-top: none;
}

/* 手机端个人中心菜单 */
.mobile-user-menu {
    display: none;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-primary);
    position: relative;
}

.mobile-menu-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: #f5f5f5;
}

.mobile-menu-item:active {
    background: #f8f9fa;
    transform: scale(0.98);
}

.mobile-menu-item-danger {
    color: var(--error-color);
}

.mobile-menu-item-danger:active {
    background: #fff1f0;
}

.mobile-menu-item-text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.mobile-menu-item-arrow {
    font-size: 18px;
    color: #bfbfbf;
    font-weight: 300;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 8px;
}

.mobile-menu-item-with-submenu {
    font-weight: 600;
}

.mobile-menu-item-with-submenu.active {
    background: linear-gradient(90deg, rgba(24, 144, 255, 0.06) 0%, rgba(24, 144, 255, 0.02) 100%);
}

.mobile-menu-item-with-submenu.active .mobile-menu-item-text {
    color: var(--primary-color);
}

.mobile-menu-item-with-submenu.active .mobile-menu-item-arrow {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.mobile-submenu {
    background: #fafafa;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.mobile-submenu.show {
    max-height: 500px;
    opacity: 1;
}

.mobile-submenu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px 16px 48px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    position: relative;
}

.mobile-submenu-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 48px;
    right: 20px;
    height: 1px;
    background: #f0f0f0;
}

.mobile-submenu-item:active {
    background: #f0f0f0;
    transform: translateX(4px);
}

.mobile-submenu-item .mobile-menu-item-text {
    font-size: 15px;
    color: #666;
    font-weight: 400;
}

.mobile-submenu-item .mobile-menu-item-arrow {
    font-size: 16px;
    color: #bfbfbf;
}

.mobile-submenu-item:active .mobile-menu-item-text {
    color: var(--primary-color);
}

.mobile-submenu-item:active .mobile-menu-item-arrow {
    color: var(--primary-color);
}

/* 手机端功能页面 - 默认隐藏 */
.mobile-user-section {
    display: none !important;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 20px;
    margin-bottom: 20px;
}

.mobile-user-section.active {
    display: block !important;
}

.mobile-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bg-tertiary);
}

.mobile-back-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    margin-right: 10px;
    font-weight: 600;
}

.mobile-section-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 手机端积分信息卡片 */
.mobile-points-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: white;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.mobile-points-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.mobile-points-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

/* 手机端充值样式 */
.recharge-amount-display {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    border: 2px solid var(--primary-color);
}

.recharge-amount-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.recharge-amount-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-primary);
}

.payment-method-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.payment-method-item input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}


.payment-method-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.payment-method-item input[type="radio"]:checked ~ .payment-method-text {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-recharge {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
    border: none;
    box-shadow: var(--shadow-md);
}

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

/* 手机端充值记录 */
.mobile-recharge-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-recharge-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-recharge-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-recharge-order-no {
    font-size: 12px;
    color: var(--text-tertiary);
    font-family: monospace;
}

.mobile-recharge-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.mobile-recharge-status.success {
    background: #f6ffed;
    color: var(--success-color);
    border: 1px solid #b7eb8f;
}

.mobile-recharge-status.pending {
    background: #fffbe6;
    color: var(--warning-color);
    border: 1px solid #ffe58f;
}

.mobile-recharge-status.failed {
    background: #fff1f0;
    color: var(--error-color);
    border: 1px solid #ffccc7;
}

.mobile-recharge-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--bg-tertiary);
}

.mobile-recharge-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-recharge-detail-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.mobile-recharge-detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-recharge-time {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

/* 手机端消费记录 */
.mobile-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-history-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-history-type {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-history-points {
    font-size: 18px;
    font-weight: 700;
}

.mobile-history-points.positive {
    color: var(--success-color);
}

.mobile-history-points.negative {
    color: var(--error-color);
}

.mobile-history-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.mobile-history-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* 响应式：手机端显示手机布局，电脑端显示电脑布局 */
@media (max-width: 768px) {
    .desktop-only,
    .desktop-only.tab-content,
    .desktop-only.tab-content.active,
    .tabs.desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .mobile-user-info-card,
    .mobile-user-menu-card {
        display: block;
    }
    
    #userPage h2 {
        margin-bottom: 20px;
    }
}
