/* ========== 基础重置 & 变量 ========== */
:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #4834d4;
    --secondary: #fd79a8;
    --secondary-light: #fab1cc;
    --accent: #fdcb6e;
    --accent-orange: #e17055;
    --bg-dark: #0a0a1a;
    --bg-darker: #050510;
    --bg-card: rgba(20, 20, 50, 0.8);
    --bg-card-hover: rgba(30, 30, 70, 0.9);
    --text-main: #f5f6fa;
    --text-muted: #a0a0c0;
    --text-dim: #6c6c8c;
    --border: rgba(108, 92, 231, 0.3);
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.5);
    --shadow-glow-pink: 0 0 20px rgba(253, 121, 168, 0.5);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========== 星空背景画布 ========== */
#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo-icon {
    font-size: 1.8rem;
    animation: logoSpin 8s linear infinite;
}

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

.logo-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
    background: rgba(108, 92, 231, 0.15);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(108, 92, 231, 0.7);
}

.btn-cart {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-light);
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.btn-cart:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ========== Hero 区域 ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.3); }
}

.title-line:nth-child(2) {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 50%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-glow {
    box-shadow: var(--shadow-glow);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(108, 92, 231, 0.5); }
    50% { box-shadow: 0 0 40px rgba(108, 92, 231, 0.8), 0 0 60px rgba(108, 92, 231, 0.3); }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(108, 92, 231, 0.7);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 16px 36px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* 浮动灯笼 */
.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-lanterns {
    position: relative;
    width: 100%;
    height: 100%;
}

.lantern {
    position: absolute;
    font-size: 2rem;
    animation: floatUp 15s ease-in-out infinite;
    opacity: 0.6;
}

.lantern.l1 { left: 10%; top: 70%; animation-delay: 0s; }
.lantern.l2 { left: 25%; top: 80%; animation-delay: 3s; font-size: 1.5rem; }
.lantern.l3 { right: 15%; top: 75%; animation-delay: 5s; font-size: 2.5rem; }
.lantern.l4 { right: 30%; top: 85%; animation-delay: 7s; font-size: 1.8rem; }
.lantern.l5 { left: 50%; top: 90%; animation-delay: 2s; font-size: 1.3rem; }

@keyframes floatUp {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    10% { opacity: 0.7; }
    50% { transform: translateY(-300px) rotate(5deg); opacity: 0.5; }
    90% { opacity: 0.7; }
}

/* ========== 通用 Section ========== */
section {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-main), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ========== 许愿池 ========== */
.wish-section {
    background: linear-gradient(180deg, transparent, rgba(108, 92, 231, 0.03), transparent);
}

.wish-container {
    max-width: 900px;
    margin: 0 auto;
}

.wish-types {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.wish-type-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.wish-type-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-light);
    transform: translateY(-4px);
}

.wish-type-card.active {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(253, 121, 168, 0.2));
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.type-icon {
    font-size: 1.8rem;
}

.type-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.wish-type-card.active .type-name {
    color: var(--text-main);
}

/* 表单 */
.wish-form {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(20px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select option {
    background: var(--bg-darker);
    color: var(--text-main);
}

.wish-options {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.checkbox-label:hover {
    color: var(--text-main);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.price-preview {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(108, 92, 231, 0.08);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.price-label {
    font-size: 1rem;
    color: var(--text-muted);
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.btn-make-wish {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
    letter-spacing: 2px;
}

.btn-make-wish:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 50px rgba(108, 92, 231, 0.6);
}

/* ========== 心愿墙 ========== */
.wall-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.wish-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.wish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.wish-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.wish-card:hover::before {
    opacity: 1;
}

.wish-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.wish-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.wish-author {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.wish-time {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.wish-type-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(108, 92, 231, 0.2);
    color: var(--primary-light);
    border: 1px solid var(--border);
}

.wish-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    padding-right: 80px;
}

.wish-card-content {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.wish-stats {
    display: flex;
    gap: 16px;
}

.wish-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: var(--transition);
}

.wish-stat:hover {
    color: var(--secondary);
}

.candle-indicator {
    display: flex;
    gap: 4px;
}

.candle-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: candleFlicker 2s ease-in-out infinite;
}

.candle-dot:nth-child(2) { animation-delay: 0.3s; }
.candle-dot:nth-child(3) { animation-delay: 0.6s; }

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

/* ========== 祈福商城 ========== */
.shop-section {
    background: linear-gradient(180deg, transparent, rgba(253, 121, 168, 0.02), transparent);
}

.shop-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-tab {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    padding: 10px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.category-tab:hover,
.category-tab.active {
    background: linear-gradient(135deg, var(--secondary), var(--accent-orange));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-glow-pink);
}

.product-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(253, 121, 168, 0.1));
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.05) 50%, transparent 55%);
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--secondary), var(--accent-orange));
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 40px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.product-price small {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-add-cart:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* ========== 在线祈福 ========== */
.blessing-section {
    text-align: center;
}

.blessing-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.blessing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 36px 24px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.blessing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.15), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.blessing-card:hover::before {
    opacity: 1;
}

.blessing-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(253, 203, 110, 0.3);
}

.blessing-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    position: relative;
}

.blessing-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    position: relative;
}

.blessing-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    position: relative;
}

.blessing-price {
    display: inline-block;
    background: rgba(253, 203, 110, 0.15);
    color: var(--accent);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
}

/* 祈福动画区域 */
.blessing-animation-area {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.incense-sticks {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.incense {
    width: 8px;
    height: 80px;
    background: linear-gradient(180deg, #8B4513, #D2691E);
    border-radius: 4px;
    position: relative;
}

.incense::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, rgba(255,100,0,0.8), rgba(255,200,0,0.4));
    border-radius: 2px;
    animation: smoke 3s ease-in-out infinite;
}

@keyframes smoke {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

.prayer-beads {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.bead {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    animation: beadGlow 2s ease-in-out infinite;
}

.bead:nth-child(odd) { animation-delay: 0.3s; }
.bead:nth-child(3n) { animation-delay: 0.6s; }

@keyframes beadGlow {
    0%, 100% { transform: scale(1); box-shadow: none; }
    50% { transform: scale(1.3); box-shadow: 0 0 15px rgba(108, 92, 231, 0.8); }
}

.blessing-message {
    font-size: 1.3rem;
    color: var(--accent);
    text-align: center;
    line-height: 2;
    animation: fadeInUp 1s ease-out;
}

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

/* ========== 购物车侧边栏 ========== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: var(--bg-darker);
    border-left: 1px solid var(--border);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
}

.cart-header h3 {
    font-size: 1.2rem;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-dim);
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
}

.cart-item-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

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

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff6b6b;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border-light);
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(108, 92, 231, 0.6);
}

/* ========== 弹窗 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content.wish-detail-modal {
    max-width: 600px;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.modal-body {
    margin-bottom: 20px;
}

.btn-full {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

.social-login {
    margin-top: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.social-login span {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.btn-social {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-light);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
    max-width: 280px;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 心愿详情 */
.wish-detail-content {
    text-align: left;
    margin-bottom: 30px;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.detail-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.detail-author {
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-time {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.detail-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.detail-body {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.9;
    white-space: pre-wrap;
}

.detail-meta {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.detail-tag {
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

.wish-actions {
    display: flex;
    gap: 12px;
}

.btn-bless {
    flex: 1;
    background: linear-gradient(135deg, var(--accent), var(--accent-orange));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-bless:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 203, 110, 0.4);
}

.btn-share {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-light);
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-share:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-light {
    flex: 1;
    background: linear-gradient(135deg, #e17055, #d63031);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 112, 85, 0.4);
}

/* 结算 */
.checkout-footer {
    margin-top: 20px;
}

.final-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(108, 92, 231, 0.08);
    border-radius: 12px;
    font-size: 1.1rem;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 10px;
}

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

.checkout-item-name {
    font-size: 0.95rem;
    font-weight: 500;
}

.checkout-item-price {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
}

/* ========== Toast 提示 ========== */
.toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glow);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========== 页脚 ========== */
.footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    background: rgba(5, 5, 16, 0.8);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .wish-types {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blessing-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 100px 20px 40px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    section {
        padding: 60px 20px;
    }
    
    .wish-types {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .wish-form {
        padding: 24px;
    }
    
    .blessing-options {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .wish-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .wish-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}