:root {
    --primary: #fa709a;
    --secondary: #fee140;
    --accent: #ff6b9d;
    --bg-dark: #1a0a14;
    --bg-card: rgba(250, 112, 154, 0.08);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --bubble-in: rgba(250, 112, 154, 0.9);
    --bubble-out: rgba(255, 159, 67, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Microsoft YaHei', -apple-system, sans-serif; 
    min-height: 100vh; 
    color: var(--text);
    background: var(--bg-dark);
    overflow-x: hidden;
}

/* 背景闪光效果 */
.bg-effects {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}
.sparkle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--secondary);
    border-radius: 50%;
    animation: sparkleAnim 3s ease-in-out infinite;
}
.sparkle-1 { top: 20%; left: 10%; animation-delay: 0s; }
.sparkle-2 { top: 40%; right: 15%; animation-delay: 0.5s; }
.sparkle-3 { bottom: 30%; left: 20%; animation-delay: 1s; }
.sparkle-4 { top: 15%; right: 25%; animation-delay: 1.5s; }
.sparkle-5 { bottom: 20%; right: 10%; animation-delay: 2s; }

@keyframes sparkleAnim {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* 导航栏 */
nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    background: rgba(26, 10, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(250, 112, 154, 0.2);
}
.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo { font-size: 28px; animation: pulse 2s ease-in-out infinite; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--secondary); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 120px 20px 60px; position: relative; z-index: 1; }

/* 英雄区 */
.hero { text-align: center; padding: 40px 20px 80px; }
.hero h1 { 
    font-size: 56px; 
    font-weight: 800; 
    background: linear-gradient(135deg, var(--text) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}
.subtitle { 
    font-size: 18px; 
    color: var(--text-muted); 
    margin-bottom: 40px; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 聊天场景 */
.chat-scene {
    position: relative;
    width: 340px;
    height: 380px;
    margin: 0 auto 50px;
}
.phone-mockup {
    width: 240px;
    height: 340px;
    background: linear-gradient(145deg, #2a1a24, #1a0a14);
    border-radius: 30px;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(250, 112, 154, 0.3);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(250, 112, 154, 0.2);
    overflow: hidden;
    animation: phoneFloat 4s ease-in-out infinite;
}
@keyframes phoneFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

.phone-header {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    padding: 15px;
}
.status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}
.online-dot {
    width: 8px; height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.chat-bubbles {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 12px;
    line-height: 1.4;
    animation: bubbleIn 0.5s ease-out;
}
.incoming {
    background: var(--bubble-in);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}
.outgoing {
    background: var(--bubble-out);
    color: #1a0a14;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}
@keyframes bubbleIn {
    from { opacity: 0; transform: scale(0.8) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.typing {
    background: rgba(250, 112, 154, 0.3);
    padding: 12px 18px;
    align-self: flex-start;
    display: flex;
    gap: 5px;
    align-items: center;
}
.typing span {
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

.quick-replies {
    display: flex;
    gap: 8px;
    padding: 10px 15px;
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    background: rgba(26, 10, 20, 0.9);
}
.quick-reply {
    flex: 1;
    padding: 8px 4px;
    background: rgba(250, 112, 154, 0.2);
    border: 1px solid rgba(250, 112, 154, 0.3);
    border-radius: 15px;
    font-size: 10px;
    color: var(--secondary);
    text-align: center;
    animation: quickReplyPulse 2s ease-in-out infinite;
}
.quick-reply:nth-child(2) { animation-delay: 0.3s; }
.quick-reply:nth-child(3) { animation-delay: 0.6s; }
@keyframes quickReplyPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* 悬浮聊天标签 */
.floating-chat {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: floatAround 5s ease-in-out infinite;
}
.floating-chat span { font-size: 18px; }
.floating-chat p { font-size: 12px; font-weight: 600; color: #1a0a14; margin: 0; }
.floating-1 { top: 10%; left: -20px; animation-delay: 0s; }
.floating-2 { top: 40%; right: -30px; animation-delay: 1.5s; }
.floating-3 { bottom: 25%; left: -10px; animation-delay: 3s; }

@keyframes floatAround {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

/* 下载按钮 */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--bg-dark);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(250, 112, 154, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.download-btn svg { width: 20px; height: 20px; }
.download-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(250, 112, 154, 0.5);
}
.download-btn:active { transform: translateY(0) scale(0.98); }

/* 统计区 */
.stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 60px;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}
.stat-icon { font-size: 36px; margin-bottom: 10px; }
.stat-number { 
    font-size: 48px; 
    font-weight: 800; 
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-muted); margin-top: 8px; font-size: 14px; }

/* 功能卡片 */
.features { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 25px; 
    margin-top: 80px; 
}
.feature-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 35px 30px;
    border: 1px solid rgba(250, 112, 154, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out both;
}
.feature-card:nth-child(1) { animation-delay: 0.4s; }
.feature-card:nth-child(2) { animation-delay: 0.5s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.7s; }

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: 0 20px 50px rgba(250, 112, 154, 0.2);
}
.feature-card:hover .feature-shine { opacity: 1; }
.feature-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(254, 225, 64, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.feature-icon { font-size: 42px; margin-bottom: 20px; }
.feature-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--text); }
.feature-card p { color: var(--text-muted); line-height: 1.7; font-size: 14px; }

/* ========== 下载页面 ========== */
.download-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 20px 60px;
}
.download-container {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 900px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}
.download-visual {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-mockup-small {
    width: 180px;
    height: 260px;
    background: linear-gradient(145deg, #2a1a24, #1a0a14);
    border-radius: 25px;
    border: 2px solid rgba(250, 112, 154, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: phonePulse 3s ease-in-out infinite;
}
@keyframes phonePulse {
    0%, 100% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(250, 112, 154, 0.2); }
    50% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 50px rgba(250, 112, 154, 0.4); }
}
.cm-header {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}
.online-indicator {
    width: 8px; height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}
.cm-bubbles {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cm-bubble {
    height: 20px;
    border-radius: 12px;
}
.cb-in { background: var(--bubble-in); width: 80%; }
.cb-out { background: var(--bubble-out); width: 60%; align-self: flex-end; }

.download-info {
    flex: 1;
}
.download-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(250, 112, 154, 0.2);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 12px;
    color: var(--secondary);
    margin-bottom: 20px;
}
.download-info h1 {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}
.version-tag {
    font-size: 18px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 25px;
}
.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}
.download-meta span {
    font-size: 14px;
    color: var(--text-muted);
}
.download-features {
    margin-bottom: 30px;
}
.df-item {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 15px;
}
.download-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}
.download-btn.primary {
    padding: 16px 40px;
    font-size: 16px;
}
.download-btn.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--secondary);
    padding: 14px 30px;
}
.download-btn.secondary:hover {
    background: rgba(250, 112, 154, 0.1);
}
.update-time {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ========== 404页面 ========== */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 20px 60px;
}
.error-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}
.error-visual {
    margin-bottom: 40px;
}
.broken-chat {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    box-shadow: 0 0 40px rgba(250, 112, 154, 0.4);
    position: relative;
    animation: chatShake 2s ease-in-out infinite;
}
@keyframes chatShake {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}
.broken-chat::before, .broken-chat::after {
    content: '';
    position: absolute;
    background: rgba(26, 10, 20, 0.8);
}
.broken-chat::before {
    width: 4px;
    height: 80%;
    left: 50%;
    transform: translateX(-50%) rotate(15deg);
}
.broken-chat::after {
    width: 80%;
    height: 4px;
    top: 50%;
    transform: translateY(-50%) rotate(-10deg);
}
.error-code {
    font-size: 120px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 20px;
}
.error-content h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text);
}
.error-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 { font-size: 40px; }
    .subtitle { font-size: 16px; }
    .stats { gap: 40px; }
    .stat-number { font-size: 36px; }
    .chat-scene { width: 280px; height: 320px; }
    .phone-mockup { width: 200px; height: 280px; }
    .floating-chat { padding: 8px 12px; }
    .floating-chat p { font-size: 10px; }
    .floating-1 { left: -10px; }
    .floating-2 { right: -15px; }
    .nav-links { gap: 20px; }
    .download-container { flex-direction: column; gap: 40px; text-align: center; }
    .download-visual { width: 200px; height: 200px; }
    .download-info h1 { font-size: 36px; }
    .download-actions { justify-content: center; }
    .error-code { font-size: 80px; }
}