/* 上传指南 */
.upload-guide {
    max-width: 900px;
    margin: 30px auto;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.03);
}
.upload-guide h3 { margin: 0 0 12px; font-size: 20px; color: #fff; }
.upload-guide ul { color: #ccc; margin: 0; padding-left: 18px; }
.upload-guide li { margin: 8px 0; line-height: 1.5; }

/* 确保上传指南与功能预览区位于画布之上 */
.upload-guide, .features {
    position: relative;
    z-index: 1;
}
    
/* 上传指南卡片布局 */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.upload-guide .card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px; border-radius: 12px; }
.upload-guide .card .icon { width: 72px; height: 72px; border-radius: 50%; background: #fff; display:flex; align-items:center; justify-content:center; font-size:28px; margin-bottom:12px; }
.upload-guide .card.good { background: rgba(200,250,230,0.12); border: 1px solid rgba(120,220,170,0.12); }
.upload-guide .card.bad { background: rgba(200,200,200,0.06); border: 1px solid rgba(120,120,120,0.06); }
.upload-guide .card h4 { margin: 6px 0 6px; color: #0fffcf; font-size:16px; }
.upload-guide .card.good h4 { color: #0aa36f; }
.upload-guide .card.bad h4 { color: #333; }
.upload-guide .card p { margin: 0; color: #6c6c6c; font-size:13px; }
.upload-guide .card:hover { transform: translateY(-6px); box-shadow: 0 10px 28px rgba(10,10,10,0.45); }

/* 轻量 CSS 动态背景（性能友好） */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(60% 60% at 10% 20%, rgba(130,110,255,0.12), transparent 20%),
                radial-gradient(50% 50% at 80% 80%, rgba(255,120,140,0.10), transparent 15%);
    filter: blur(36px);
    opacity: 1;
    animation: bgDrift 18s linear infinite;
}

@keyframes bgDrift {
    0% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(4%, -2%, 0) scale(1.02); }
    100% { transform: translate3d(0,0,0) scale(1); }
}

/* Modal / Invite styles */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 50; }
.modal[aria-hidden="false"] { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal-panel { position: relative; background: #fff; color: #111; width: min(760px, 92%); max-width: 760px; border-radius: 10px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.45); z-index: 2; }

/* 登录模态面板深色主题样式 */
#login-modal .modal-panel {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #fff;
    width: min(420px, 92%);
    max-width: 420px;
    border: 1px solid rgba(255, 77, 77, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

#login-modal .modal-close {
    color: #fff;
}

/* 登录模态内的表单样式 */
#login-modal .auth-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
}

#login-modal .auth-header p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

#login-modal .form-group label {
    color: #ddd;
    font-size: 13px;
    font-weight: 500;
}

#login-modal .form-group input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 77, 77, 0.2);
    color: #fff;
    padding: 12px 14px;
    border-radius: 8px;
}

#login-modal .form-group input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 77, 77, 0.5);
    box-shadow: 0 0 12px rgba(255, 77, 77, 0.15);
}

#login-modal .btn-auth {
    background: linear-gradient(135deg, #ff4d4d 0%, #c40000 100%);
    color: white;
    margin-top: 8px;
}
.modal-panel h2 { margin: 0 0 8px; }
.invite-subtitle { color: #555; margin-bottom: 16px; }
.modal-close { position: absolute; right: 14px; top: 10px; border: none; background: transparent; font-size: 22px; cursor: pointer; }
.invite-section { margin: 14px 0; }
.invite-link-box { display: flex; gap: 8px; align-items: center; }
.invite-link-box input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 6px; }
.btn { background: linear-gradient(90deg,#ff6b6b,#ff8a5c); color: white; border: none; padding: 10px 14px; border-radius: 6px; cursor: pointer; }
.btn.small { padding: 8px 10px; font-size: 14px; }
.email-invite { display:flex; gap:8px; align-items:center; }
.email-invite input { flex:1; padding:8px; border-radius:6px; border:1px solid #ddd; }
.invite-stats { margin-top:8px; color:#666; font-size:14px; }
.copy-feedback { margin-top:8px; color: #0a0; font-size:13px; }
.modal-footer { margin-top: 14px; text-align: right; }
.modal-footer a { color: #ff6b6b; text-decoration: none; }

/* Invite modal - modern white card */
.invite-panel {
    width: min(700px, 92%);
    border-radius: 14px;
    padding: 26px;
}
.invite-header h2 { font-size: 22px; margin: 0; }
.invite-subtitle { color: #666; margin: 6px 0 14px; }
.invite-link-box input,
.email-invite input {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 14px;
}
.invite-link-box .btn,
.email-invite .btn {
    background: #ff4d4d;
    box-shadow: 0 8px 18px rgba(255, 77, 77, 0.25);
}
.invite-stats-cards {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: center;
    margin-top: 16px;
}
.invite-card {
    background: #fff6f6;
    border: 1px solid #ffe5e5;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}
.invite-card-value { font-size: 20px; font-weight: 700; color: #111; }
.invite-card-label { font-size: 12px; color: #777; margin-top: 6px; }
.invite-details { color: #999; text-decoration: none; font-size: 13px; justify-self: end; }

/* Recharge modal */
.recharge-panel {
    width: min(980px, 92%);
    border-radius: 14px;
    padding: 26px;
}
.recharge-tabs { display: flex; gap: 12px; margin: 8px 0 18px; border-bottom: 1px solid #eee; }
.r-tab { padding: 8px 12px; border: none; background: transparent; color: #666; border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.2s ease; }
.r-tab:hover { color: #333; }
.r-tab.active { color: #ff4d4d; border-color: #ff4d4d; font-weight: 600; }
.recharge-tab-content { display: none; }
.recharge-tab-content.active { display: block; }
.recharge-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0; }
.r-card { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 18px; position: relative; display: flex; flex-direction: column; }
.r-card.featured { border: 2px solid #ff4d4d; box-shadow: 0 18px 40px rgba(255, 77, 77, 0.08); }
.r-badge { position: absolute; top: -12px; right: 18px; background: #ff4d4d; color: #fff; font-size: 11px; padding: 4px 8px; border-radius: 999px; font-weight: 600; }
.r-title { font-size: 16px; font-weight: 700; color: #111; }
.r-price { font-size: 28px; font-weight: 700; margin: 8px 0 4px; color: #111; }
.r-price span { font-size: 12px; color: #777; font-weight: 500; }
.r-unit { font-size: 12px; color: #999; margin: 0 0 12px 0; }
.r-list { list-style: none; padding: 0; margin: 0 0 16px 0; color: #444; font-size: 13px; flex-grow: 1; }
.r-list li { margin: 8px 0; display: flex; gap: 6px; }
.r-list li::before { content: "✓"; color: #2ecc71; font-weight: 700; }
.r-btn { width: 100%; padding: 10px 16px; background: linear-gradient(135deg, rgba(255, 77, 77, 0.18), rgba(196, 0, 0, 0.25)); color: #ff4d4d; border: 1px solid rgba(255, 77, 77, 0.35); border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; margin-top: auto; }
.r-btn:hover:not(:disabled) { background: linear-gradient(135deg, rgba(255, 77, 77, 0.25), rgba(196, 0, 0, 0.35)); box-shadow: 0 8px 20px rgba(255, 77, 77, 0.15); }
.r-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Purchase modal specific */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.pack { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 14px; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.pack:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.pack.featured { border: 2px solid #222; }
.pack .price { font-size: 20px; font-weight:700; margin-top:8px; }
.pack .meta { color:#888; font-size:12px; }
.pack.selected { outline: 3px solid rgba(255,107,107,0.12); box-shadow: 0 14px 40px rgba(255,107,107,0.08); }

.payment-methods { margin-top: 18px; }
.methods-row { display:flex; gap:12px; align-items:center; padding:12px 6px; }
.pm-icon { width:36px; height:22px; background:#eee; display:inline-block; border-radius:4px; }

.purchase-footer { display:flex; gap:12px; align-items:center; justify-content:space-between; margin-top:18px; }
.selected-price { font-size:18px; color:#333; font-weight:700; }
.btn.big { padding: 14px 26px; font-size:16px; }

/* purchase tabs */
.purchase-tabs { display:flex; gap:8px; margin-top:8px; }
.p-tab { padding:8px 12px; background:transparent; border:1px solid rgba(0,0,0,0.06); border-radius:8px; cursor:pointer; }
.p-tab.active { background:#fff; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.packs { display:flex; gap:12px; margin-top:12px; }
.packs .pack { min-width:200px; flex:0 0 auto; }
.packs-once { overflow:auto; padding-bottom:8px; }


/* Points modal styles */
.points-hero { display:flex; justify-content:center; margin: 12px 0 18px; }
.points-card { width:100%; max-width:560px; background: linear-gradient(90deg,#ff7a59,#ffb86b); color:#fff; padding:18px; border-radius:10px; box-shadow:0 14px 40px rgba(0,0,0,0.2); }
.points-label { font-size:14px; opacity:0.9; }
.points-value { font-size:28px; font-weight:700; margin-top:6px; }
.how-earn { margin-top:12px; }
.how-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap:12px; margin-top:8px; }
.how-item { background:#111; border-radius:8px; padding:12px; color:#eee; border:1px solid rgba(255,255,255,0.03); }
.muted { color: #d6d6d6; font-size:13px; margin-top:6px; }
.points-tabs { display:flex; gap:10px; margin-top:16px; }
.points-tabs .tab { padding:8px 12px; border-radius:8px; background:transparent; border:1px solid rgba(255,255,255,0.03); color:#ddd; cursor:pointer; }
.points-tabs .tab.active { background:#fff; color:#111; }
.points-content { margin-top:12px; }
.history-list { list-style:none; padding:0; margin:0; max-height:240px; overflow:auto; }
.history-list li { padding:10px 12px; border-bottom:1px solid rgba(255,255,255,0.02); display:flex; justify-content:space-between; }
.points-panel { background: transparent; }


/* 功能卡片 */
.features { max-width: 1100px; margin: 30px auto 80px; padding: 8px 16px; }
.features h3 { color: #fff; font-size: 22px; margin-bottom: 12px; }
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.03); padding: 20px; border-radius: 12px; color: #ddd; }
.card h4 { color: #fff; margin: 0 0 8px; }
.card p { margin: 0; color: #bbb; line-height: 1.45; }
/* 基础背景 */
body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
}

/* 背景画布样式：置于页面内容下方并覆盖全屏 */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* 确保页面主要内容位于画布之上 */
.navbar,
.hero-section,
.input-container {
    position: relative;
    z-index: 1;
}

/* --- 解决“页眉丑”的问题 --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #000;
    border-bottom: 1px solid #222;    position: relative;
    z-index: 9998;}

.logo {
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo img {
    height: 200px;
    width: auto;
    display: block;
}

.logo span { color: #ff4d4d; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 9998;
}

/* User dropdown styles */
.user-trigger { position: relative; overflow: visible; z-index: 9999; }
.user-btn {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.18), rgba(196, 0, 0, 0.25));
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.35);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    min-width: 140px;
    max-width: 180px;
    height: 34px;
    box-shadow: 0 6px 16px rgba(255, 77, 77, 0.18);
    transition: all 0.2s ease;
}
.user-btn:hover {
    border-color: rgba(255, 77, 77, 0.65);
    box-shadow: 0 8px 20px rgba(255, 77, 77, 0.28);
}
#user-email {
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.user-dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%); color:#fff; border-radius:10px; box-shadow:0 18px 50px rgba(0,0,0,0.45); padding:16px; z-index:9999; border: 1px solid rgba(255, 77, 77, 0.15); }
.user-dropdown.hidden { display:none; }
.ud-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.ud-balance { color:#888; font-size:13px; }
.ud-balance-value { font-size:20px; font-weight:700; color:#0fffcf; margin-top:4px; }
.user-actions { list-style:none; padding:0; margin:12px 0; }
.user-actions li { margin:6px 0; }
.user-actions button { background:transparent; border:none; color:#ddd; cursor:pointer; text-align:left; width:100%; padding:10px 12px; border-radius:6px; transition:all 0.25s ease; }
.user-actions button:hover { background:rgba(255, 77, 77, 0.15); color:#ff4d4d; }
.ud-id { font-size:13px; color:#888; margin:12px 0; display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-top:1px solid rgba(255,255,255,0.05); border-bottom:1px solid rgba(255,255,255,0.05); }
.btn.ghost { background:linear-gradient(135deg, #ff4d4d 0%, #c40000 100%); border:none; color:#fff; width:100%; margin-top:10px; padding:8px 12px; border-radius:6px; cursor:pointer; font-weight:600; transition:all 0.25s ease; box-shadow: 0 4px 10px rgba(255, 77, 77, 0.2); }
.btn.ghost:hover { transform:translateY(-2px); box-shadow: 0 6px 15px rgba(255, 77, 77, 0.3); }


/* 邀请奖励和积分文字 */
.invite-text, .points-text {
    font-size: 14px;
    color: #aaa;
    cursor: pointer;
}

#user-points {
    color: #f39c12; /* 积分高亮 */
    font-size: 16px;
}

/* 登录/充值按钮精修 */
.login-btn {
    background: linear-gradient(135deg, #ff4d4d 0%, #c40000 100%);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.2);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(255, 77, 77, 0.3);
}

/* 管理员登录链接 */
.admin-link {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 12px;
}

.admin-link:hover {
    color: #0fffcf;
    background: rgba(15, 255, 207, 0.1);
}

.lang-switch {
    background: #111;
    color: #fff;
    border: 1px solid #333;
    padding: 3px;
    border-radius: 4px;
}

/* --- 主体区域优化 --- */
.hero-section {
    padding: 80px 20px;
    text-align: center;
}

.input-container {
    max-width: 700px;
    margin: 0 auto 40px;
    background: #111;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #222;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.input-group input {
    flex: 1;
    background: #000;
    border: 1px solid #333;
    padding: 12px;
    color: #fff;
    border-radius: 6px;
}

.upload-box {
    border: 2px dashed #333;
    padding: 30px;
    margin-bottom: 20px;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.upload-box:hover { 
    border-color: #ff4d4d; 
    background: #161616; 
}

.upload-box.drag-over {
    border-color: #0fffcf;
    background: rgba(15, 255, 207, 0.05);
    transform: scale(1.02);
}

.upload-hint {
    font-size: 12px;
    color: #888;
    margin: 5px 0 0 0;
}

.file-list {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.file-icon {
    font-size: 20px;
}

.file-name {
    flex: 1;
    color: #ccc;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: #888;
    font-size: 12px;
}

.file-remove {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.file-remove:hover {
    background: rgba(255, 77, 77, 0.1);
}

/* 积分显示样式 */
.points-display {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(13, 13, 13, 0.8));
    border: 1px solid rgba(255, 77, 77, 0.15);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
}

.points-info {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.points-label {
    color: #888;
    font-size: 14px;
}

.points-value {
    color: #ff4d4d;
    font-size: 28px;
    font-weight: bold;
}

.points-unit {
    color: #ff4d4d;
    font-size: 16px;
}

.points-breakdown {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 77, 77, 0.1);
    font-size: 12px;
    color: #666;
    text-align: center;
}

.file-points {
    color: #0fffcf;
    font-size: 12px;
    font-weight: 600;
}

.cta-btn {
    width: 100%;
    padding: 15px;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.social-proof {
    margin-top: 15px;
    color: #555;
    font-size: 13px;
}

.counter { color: #f39c12; font-weight: bold; }

h1 { font-size: 42px; margin-top: 50px; }
h2 { color: #888; font-weight: normal; font-size: 18px; }

/* --- 登录模态优化 --- */
.auth-form-container {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-highlight {
    0% { 
        color: #0fffcf;
        text-shadow: 0 0 10px rgba(15, 255, 207, 0.5);
        transform: scale(1);
    }
    50% { 
        color: #ff0055;
        text-shadow: 0 0 20px rgba(255, 0, 85, 0.6);
        transform: scale(1.1);
    }
    100% { 
        color: inherit;
        text-shadow: none;
        transform: scale(1);
    }
}

.auth-header {
    margin-bottom: 24px;
}

.auth-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
}

.auth-subtitle {
    color: #888;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #ddd;
    font-size: 13px;
    font-weight: 500;
}

.form-group input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 77, 77, 0.2);
    color: #fff;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.25s ease;
}

.form-group input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 77, 77, 0.5);
    box-shadow: 0 0 12px rgba(255, 77, 77, 0.15);
}

.form-group input::placeholder {
    color: #555;
}

.form-hint {
    color: #666;
    font-size: 12px;
    margin-top: -10px;
}

.btn-auth {
    background: linear-gradient(135deg, #ff4d4d 0%, #c40000 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.2);
    margin-top: 8px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.3);
}

.btn-auth:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 77, 77, 0.2);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}

.auth-switch span {
    color: #888;
}

.auth-switch a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
    margin-left: 4px;
}

.auth-switch a:hover {
    color: #ff8a5c;
    text-decoration: underline;
}

/* 扫描结果输出区域 */
.scan-output {
    max-width: 700px;
    margin: 30px auto;
    padding: 24px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 77, 77, 0.1);
    border-radius: 10px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scan-line {
    color: #0fffcf;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 上传状态 */
.upload-status {
    color: #0fffcf;
    font-size: 13px;
    margin-top: 12px;
}

.upload-status a {
    color: #0fffcf;
    text-decoration: underline;
}

/* Profile page (sidebar layout) */
.profile-page {
    max-width: 1200px;
    margin: 30px auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.profile-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

.profile-sidebar {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 18px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
}

.sidebar-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    margin: 6px 0;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
}

.sidebar-item.active {
    background: rgba(255, 77, 77, 0.16);
    border-color: rgba(255, 77, 77, 0.35);
    color: #ff4d4d;
    box-shadow: 0 6px 16px rgba(255, 77, 77, 0.15);
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-panel {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.panel-header h2 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #fff;
}

.panel-header p {
    margin: 0 0 16px;
    color: #888;
    font-size: 13px;
}

.panel-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 18px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.label {
    color: #888;
    font-size: 12px;
    margin-bottom: 6px;
}

.value {
    color: #0fffcf;
    font-weight: 600;
    font-size: 14px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #ddd;
}

.setting-row:last-child {
    border-bottom: none;
}

.tag {
    background: rgba(255, 77, 77, 0.18);
    color: #ff4d4d;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.panel-hint {
    color: #888;
    font-size: 13px;
    margin: 6px 0;
}

.panel-hint.error {
    color: #ff6b6b;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.history-item:last-child {
    border-bottom: none;
}

.history-title {
    color: #fff;
    font-size: 14px;
    margin-bottom: 4px;
}

.history-meta {
    color: #777;
    font-size: 12px;
}

.status-tag {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    text-transform: capitalize;
}

.status-pending { background: rgba(255,255,255,0.08); color: #ccc; }
.status-processing { background: rgba(15,255,207,0.15); color: #0fffcf; }
.status-completed { background: rgba(0,200,83,0.2); color: #4caf50; }
.status-failed { background: rgba(255,77,77,0.2); color: #ff6b6b; }

.active-task-btn {
    background: rgba(15, 255, 207, 0.12);
    color: #0fffcf;
    border: 1px solid rgba(15, 255, 207, 0.35);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.active-task-btn:hover {
    background: rgba(15, 255, 207, 0.2);
    box-shadow: 0 6px 14px rgba(15, 255, 207, 0.15);
}

.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #0fffcf;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 6px;
}

.scan-status-page {
    max-width: 960px;
    margin: 40px auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.scan-status-card {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

.scan-status-header {
    text-align: center;
    margin-bottom: 24px;
}

.scan-status-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.scan-status-header h1 {
    margin: 0 0 8px;
    color: #fff;
}

.scan-status-header p {
    margin: 0;
    color: #888;
    font-size: 14px;
}

.scan-status-body {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
}

.scan-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0fffcf;
    font-size: 14px;
}

.scan-meta {
    margin-top: 12px;
    color: #aaa;
    font-size: 13px;
    display: grid;
    gap: 6px;
}

.scan-tip {
    margin-top: 12px;
    color: #666;
    font-size: 12px;
}

.scan-status-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.scan-status-actions .btn-primary,
.scan-status-actions .btn-secondary {
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.scan-status-actions .btn-primary {
    background: #5b6dff;
    color: #fff;
}

.scan-status-actions .btn-secondary {
    background: #222;
    color: #eee;
}

.history-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-link {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #ddd;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

@media (max-width: 960px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }
}

.caret {
    margin-left: auto;
    color: #ff4d4d;
    font-size: 12px;
    opacity: 0.9;
}

/* ===== ������ע����ʽ ===== */
.register-steps { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 32px; padding: 0 20px; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; }
.step-number { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255, 77, 77, 0.3); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; color: #666; transition: all 0.3s ease; }
.step-item.active .step-number { background: linear-gradient(135deg, #ff4d4d 0%, #c40000 100%); border-color: #ff4d4d; color: #fff; box-shadow: 0 0 20px rgba(255, 77, 77, 0.4); }
.step-item.completed .step-number { background: rgba(15, 255, 207, 0.2); border-color: #0fffcf; color: #0fffcf; }
.step-label { font-size: 12px; color: #666; font-weight: 500; white-space: nowrap; }
.step-item.active .step-label { color: #ff4d4d; }
.step-item.completed .step-label { color: #0fffcf; }
.step-divider { flex: 1; height: 2px; background: rgba(255, 77, 77, 0.2); margin: 0 12px; position: relative; top: -10px; }
.register-step { animation: slideIn 0.4s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.verify-email-hint { text-align: center; margin: 0 0 20px; font-size: 14px; color: #aaa; }
.verify-email-hint strong { color: #ff4d4d; display: block; margin-top: 4px; font-size: 15px; }
.verify-success { text-align: center; margin: 0 0 16px; font-size: 16px; color: #0fffcf; display: flex; align-items: center; justify-content: center; gap: 8px; }
.success-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(15, 255, 207, 0.2); border: 2px solid #0fffcf; font-size: 18px; font-weight: bold; }
.verified-email { text-align: center; margin: 0 0 24px; color: #888; font-size: 14px; }
.auth-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.btn-text { background: none; border: none; color: #888; font-size: 13px; cursor: pointer; padding: 8px 12px; transition: color 0.3s ease; }
.btn-text:hover { color: #ff6b6b; }
#send-code-timer, #resend-code-timer { text-align: center; color: #ff6b6b; font-size: 13px; margin-top: 8px; font-weight: 500; }

/* ========================================
   粒子背景效果样式
   ======================================== */

/* 粒子画布 */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* 确保内容在粒子画布之上 */
.main-content,
.container,
header,
nav,
section,
.upload-guide,
.features {
    position: relative;
    z-index: 1;
}


/* ========================================
   移动端响应式样式优化
   ======================================== */

/* ===== 小屏幕设备 (手机) ===== */
@media (max-width: 768px) {
    /* 导航栏优化 */
    .navbar {
        flex-direction: column;
        padding: 12px 16px;
        gap: 12px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .nav-item {
        font-size: 12px;
    }

    .points-text {
        font-size: 13px;
    }

    /* 管理员链接移动端适配 */
    .admin-link {
        font-size: 11px;
        padding: 6px 10px;
        margin-right: 8px;
        order: 10;
    }

    /* 用户菜单优化 */
    .user-btn {
        font-size: 13px;
        padding: 6px 12px;
    }

    .user-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 300px;
    }

    /* 主内容区域 */
    .hero {
        padding: 40px 16px;
        margin: 20px 16px;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.4;
    }

    .hero p {
        font-size: 15px;
    }

    /* 表单优化 */
    .auth-panel {
        padding: 24px 16px;
        margin: 16px;
        max-width: 100%;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* 防止iOS自动缩放 */
    }

    /* 按钮优化 */
    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .btn-large {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
    }

    /* 卡片网格优化 */
    .guide-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .upload-guide .card {
        padding: 16px;
    }

    .upload-guide .card .icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    /* 功能区域优化 */
    .features {
        padding: 20px 16px;
        margin: 20px 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* 积分卡片优化 */
    .points-card {
        padding: 16px;
        margin: 16px;
    }

    /* 注册步骤优化 */
    .register-steps {
        padding: 0 12px;
        margin: 16px 0;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .step-label {
        font-size: 11px;
    }

    /* 模态框优化 */
    .modal-panel {
        width: 95%;
        max-width: 95%;
        margin: 12px;
        padding: 20px 16px;
    }

    #login-modal .modal-panel {
        width: 95%;
        max-width: 95%;
    }

    /* 扫描状态页面 */
    .scan-progress {
        padding: 24px 16px;
        margin: 16px;
    }

    .progress-bar-container {
        height: 24px;
    }

    /* 历史记录优化 */
    .history-item {
        padding: 16px;
        margin: 12px 0;
    }

    .history-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* 文件上传区域 */
    .upload-area {
        padding: 40px 20px;
    }

    .upload-area-text {
        font-size: 15px;
    }

    /* 输入组优化 */
    .input-group {
        flex-direction: column;
        gap: 12px;
    }

    .input-group .form-group {
        width: 100%;
    }

    /* 两列布局改为单列 */
    .two-column {
        grid-template-columns: 1fr;
    }
}

/* ===== 超小屏幕 (小屏手机) ===== */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .navbar {
        padding: 10px 12px;
    }

    .logo {
        font-size: 18px;
    }

    .nav-item {
        font-size: 11px;
        padding: 4px 8px;
    }

    /* 管理员链接超小屏幕适配 */
    .admin-link {
        font-size: 10px;
        padding: 4px 6px;
    }

    /* 更小的按钮 */
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    /* 压缩间距 */
    .auth-panel,
    .scan-progress,
    .points-card {
        margin: 12px;
        padding: 16px 12px;
    }

    /* 卡片图标更小 */
    .upload-guide .card .icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    /* 步骤指示器更紧凑 */
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .step-label {
        font-size: 10px;
    }

    /* 模态框几乎全屏 */
    .modal-panel {
        width: 98%;
        max-width: 98%;
        margin: 8px;
        padding: 16px 12px;
    }

    /* 隐藏一些装饰性元素以节省空间 */
    .bg-pattern {
        display: none;
    }
}

/* ===== 横屏手机优化 ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 20px 16px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .modal-panel {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* ===== 触摸优化 ===== */
@media (hover: none) and (pointer: coarse) {
    /* 增大可点击区域 */
    .btn,
    button,
    a,
    .nav-item,
    select {
        min-height: 44px;
        min-width: 44px;
    }

    /* 移除hover效果 */
    .btn:hover,
    .card:hover {
        transform: none;
    }

    /* 按钮按下效果 */
    .btn:active {
        transform: scale(0.98);
    }
}

/* ===== iOS Safari 特殊优化 ===== */
@supports (-webkit-touch-callout: none) {
    /* 防止iOS自动缩放 */
    input,
    textarea,
    select {
        font-size: 16px !important;
    }

    /* 安全区域适配 */
    .navbar {
        padding-top: max(12px, env(safe-area-inset-top));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

/* ===== 加载和骨架屏优化 ===== */
@media (max-width: 768px) {
    .skeleton {
        height: 40px;
    }

    .skeleton-text {
        height: 12px;
        margin: 8px 0;
    }
}
