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

:root {
    --bg-base: #06061a;
    --bg-deep: #0a0a24;
    --bg-card: rgba(20, 20, 40, 0.6);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(120, 115, 245, 0.3);
    
    --c-red: #ef4444;
    --c-gold: #fbbf24;
    --c-pink: #ff6ec7;
    --c-purple: #7873f5;
    --c-blue: #4facfe;
    --c-cyan: #00f2fe;
    --c-green: #4ade80;
    
    --gradient-rainbow: linear-gradient(135deg, #ff6ec7 0%, #7873f5 50%, #4facfe 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    
    --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Orbitron', 'Inter', monospace;
    --font-chinese: 'Ma Shan Zheng', 'Noto Sans SC', cursive;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-sans);
    background: var(--bg-base);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.app {
    position: relative;
    min-height: 100vh;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(at 30% 30%, rgba(239, 68, 68, 0.12) 0px, transparent 50%),
        radial-gradient(at 70% 20%, rgba(251, 191, 36, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 80%, rgba(120, 115, 245, 0.1) 0px, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.bg-orb-1 {
    width: 450px;
    height: 450px;
    background: var(--c-pink);
    top: -120px;
    right: -80px;
    animation: orbFloat1 22s ease-in-out infinite;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--c-purple);
    bottom: -100px;
    left: -80px;
    animation: orbFloat2 20s ease-in-out infinite;
}

.bg-orb-3 {
    width: 350px;
    height: 350px;
    background: var(--c-gold);
    top: 50%;
    left: 60%;
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 50px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -30px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.15); }
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(239, 68, 68, 0.02) 50%, transparent 100%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    animation: scanlineMove 8s linear infinite;
    opacity: 0.5;
}

@keyframes scanlineMove {
    from { background-position: 0 0; }
    to { background-position: 0 100%; }
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 110, 199, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 110, 199, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon-wrap {
    width: 40px;
    height: 40px;
    background: var(--gradient-rainbow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 110, 199, 0.4);
}

.logo-icon {
    font-size: 20px;
    color: white;
    animation: spin 8s linear infinite;
}

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

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
}

.logo-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-tertiary);
    letter-spacing: 1.5px;
}

.nav-tabs {
    display: flex;
    gap: 8px;
}

.nav-tab {
    padding: 10px 20px;
    background: rgba(20, 20, 40, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.nav-tab:hover {
    border-color: var(--border-glow);
    color: var(--text-primary);
}

.nav-tab.active {
    background: var(--gradient-rainbow);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(255, 110, 199, 0.3);
}

.main {
    position: relative;
    z-index: 5;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 48px 80px;
}

.wish-section {
    animation: fadeInUp 0.6s ease-out;
}

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

.wish-header {
    text-align: center;
    margin-bottom: 40px;
}

.wish-title {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 12px;
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-icon {
    font-size: 40px;
    filter: drop-shadow(0 0 10px rgba(255, 110, 199, 0.5));
}

.wish-desc {
    font-size: 15px;
    color: var(--text-secondary);
}

.write-wish {
    margin-bottom: 40px;
}

.wish-input-area {
    background: rgba(20, 20, 40, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.input-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.input-counter {
    font-size: 12px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.wish-input {
    width: 100%;
    min-height: 100px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s;
}

.wish-input:focus {
    outline: none;
    border-color: var(--c-pink);
    box-shadow: 0 0 20px rgba(255, 110, 199, 0.2);
}

.wish-input::placeholder {
    color: var(--text-tertiary);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 16px;
    gap: 20px;
}

.name-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.name-label {
    font-size: 13px;
    color: var(--text-tertiary);
}

.name-field {
    width: 140px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.name-field:focus {
    outline: none;
    border-color: var(--border-glow);
}

.submit-btn {
    padding: 12px 28px;
    background: var(--gradient-rainbow);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(255, 110, 199, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 110, 199, 0.4);
}

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

.wishes-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
    padding: 20px 32px;
    background: rgba(20, 20, 40, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-num {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 900;
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.wishes-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.wish-card {
    position: relative;
    background: rgba(20, 20, 40, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s;
    animation: cardAppear 0.5s ease-out;
    animation-fill-mode: both;
}

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

.wish-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.wish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-rainbow);
    border-radius: 16px 16px 0 0;
}

.wish-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 16px;
    word-break: break-word;
}

.wish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.wish-author {
    font-size: 13px;
    color: var(--text-tertiary);
}

.wish-time {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-left: 8px;
}

.bless-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 110, 199, 0.1);
    border: 1px solid rgba(255, 110, 199, 0.3);
    border-radius: 100px;
    color: var(--c-pink);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.bless-btn:hover {
    background: rgba(255, 110, 199, 0.2);
    transform: scale(1.05);
}

.bless-btn.blessed {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.3);
    color: var(--c-green);
}

.bless-count {
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
    color: var(--text-tertiary);
}

.empty-state.hidden {
    display: none;
}

.footer {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 24px;
    color: var(--text-tertiary);
    font-size: 12px;
}

@media (max-width: 768px) {
    .header {
        padding: 16px 24px;
        flex-direction: column;
        gap: 16px;
    }

    .nav-tabs {
        width: 100%;
        justify-content: center;
    }

    .nav-tab {
        padding: 8px 14px;
        font-size: 12px;
    }

    .main {
        padding: 24px 24px 60px;
    }

    .wish-title {
        font-size: 32px;
    }

    .input-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .name-input {
        width: 100%;
    }

    .name-field {
        flex: 1;
        width: auto;
    }

    .submit-btn {
        width: 100%;
    }

    .wishes-stats {
        gap: 20px;
        padding: 16px 24px;
    }

    .stat-num {
        font-size: 24px;
    }

    .wishes-wall {
        grid-template-columns: 1fr;
    }
}

/* ===== 网易云音乐顶部播放器条 ===== */
.netease-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: linear-gradient(90deg, rgba(10, 10, 26, 0.95), rgba(20, 20, 40, 0.95));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 20px;
    z-index: 10000;
    transition: height 0.3s ease;
    overflow: hidden;
}

.netease-bar.expanded {
    height: 110px;
}

.netease-label {
    color: #fbbf24;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    white-space: nowrap;
}

.netease-bar iframe {
    border: none;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.netease-bar.expanded iframe {
    opacity: 1;
}

.netease-toggle {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.netease-toggle:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.app {
    margin-top: 52px;
}

/* 返回销售学习系统按钮 */
.nav-tabs { flex-wrap: wrap; }
.nav-return {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s, border-color 0.3s;
}
.nav-return:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 768px) {
    .nav-return { margin-left: 0; font-size: 12px; padding: 6px 12px; }
}
