/* ========================================
   TG Reach - 产品展示页面样式
   现代化UI设计，Awwwards级别视觉标准
   ======================================== */

/* CSS 变量定义 */
:root {
    /* 主色调 */
    --primary: #0088cc;
    --primary-dark: #006699;
    --primary-light: #4db8ff;
    --primary-gradient: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
    
    /* 辅助色 */
    --accent: #00d4aa;
    --accent-gradient: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    
    /* 背景色 - 明亮主题 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    
    /* 文字色 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* 边框 */
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(0, 136, 204, 0.15);
    
    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 字体 */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* 容器宽度 */
    --container-max: 1200px;
    --container-padding: 24px;
}

/* 重置样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 容器 */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 136, 204, 0.08);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ========================================
   英雄区域
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 30px) scale(1.02);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 136, 204, 0.1);
    border: 1px solid rgba(0, 136, 204, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary-light);
    margin-bottom: 24px;
}

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

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
}

.btn-secondary {
    background: rgba(0, 136, 204, 0.06);
    color: var(--primary);
    border: 1px solid rgba(0, 136, 204, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: rgba(0, 136, 204, 0.12);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 32px;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* 应用预览 */
.hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.hero-security {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.security-badge svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.app-mockup {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: mockupFloat 6s ease-in-out infinite;
}

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

.mockup-header {
    padding: 16px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
    display: flex;
    gap: 8px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.mockup-dots span:first-child {
    background: #ff5f57;
}

.mockup-dots span:nth-child(2) {
    background: #febc2e;
}

.mockup-dots span:last-child {
    background: #28c840;
}

.mockup-content {
    padding: 20px;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    flex-shrink: 0;
}

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

.chat-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.chat-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-status {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-status.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: bounce 2s ease-in-out infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% {
        opacity: 1;
        top: 8px;
    }
    50% {
        opacity: 0.3;
        top: 20px;
    }
}

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

/* ========================================
   倒计时区域
   ======================================== */
.countdown-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.countdown-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.countdown-wrapper {
    text-align: center;
    position: relative;
    z-index: 1;
}

.countdown-tag {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(0, 136, 204, 0.4);
    }
}

.countdown-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

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

.countdown-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 20px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 136, 204, 0.15);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.countdown-number:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 136, 204, 0.25);
}

.countdown-number.flip {
    animation: flip 0.6s ease-in-out;
}

@keyframes flip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

.countdown-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    animation: blink 1s ease-in-out infinite;
    margin-top: -20px;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.countdown-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.countdown-complete {
    display: none;
    padding: 40px;
    background: var(--accent-gradient);
    border-radius: var(--border-radius-lg);
    color: white;
    text-align: center;
}

.countdown-complete.show {
    display: block;
    animation: fadeInUp 0.6s ease;
}

.countdown-complete h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.countdown-complete p {
    font-size: 1.1rem;
    opacity: 0.95;
}

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

@media (max-width: 768px) {
    .countdown-number {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .countdown-separator {
        font-size: 1.75rem;
    }
    
    .countdown-timer {
        gap: 8px;
    }
}

/* ========================================
   功能特性区域
   ======================================== */
.features {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 72px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.08) 0%, rgba(0, 212, 170, 0.08) 100%);
    border: 1px solid rgba(0, 136, 204, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 32px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 136, 204, 0.25);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.08) 0%, rgba(0, 212, 170, 0.08) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 136, 204, 0.1);
}

.feature-card:hover .feature-icon {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   功能展示区域
   ======================================== */
.showcase {
    padding: 80px 0;
    background: var(--bg-primary);
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

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

.showcase-item.reverse {
    direction: rtl;
}

.showcase-item.reverse > * {
    direction: ltr;
}

.showcase-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-gradient);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.showcase-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.showcase-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.showcase-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.showcase-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.showcase-list svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.showcase-visual {
    display: flex;
    justify-content: center;
}

/* ========================================
   安全特性区域
   ======================================== */
.security-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.security-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.security-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

.security-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

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

.security-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.1) 0%, rgba(0, 212, 170, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.security-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.security-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.security-card-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .security-grid {
        grid-template-columns: 1fr;
    }
    
    .security-card {
        padding: 24px;
    }
}

.showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.showcase-card.dark {
    background: #f8fafc;
}

.message-bubble {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    position: relative;
    max-width: 80%;
}

.message-bubble.incoming {
    background: #f1f5f9;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.message-bubble.incoming .message-text {
    color: var(--text-primary);
}

.message-bubble.outgoing {
    background: var(--primary-gradient);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-bubble.outgoing .message-text,
.message-bubble.outgoing .message-time {
    color: white;
}

.message-text {
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 4px;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
}

.auto-reply-badge {
    position: absolute;
    bottom: -12px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent-gradient);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4);
}

.auto-reply-badge svg {
    width: 16px;
    height: 16px;
}

.group-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.group-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.group-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.group-info {
    flex: 1;
}

.group-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.group-status {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.group-indicator {
    width: 10px;
    height: 10px;
    background: var(--text-muted);
    border-radius: 50%;
    flex-shrink: 0;
}

.group-indicator.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* ========================================
   路线图
   ======================================== */
.roadmap {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    transform: translateX(-50%);
}

.roadmap-item {
    display: flex;
    align-items: center;
    margin-bottom: 48px;
    position: relative;
}

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

.roadmap-item:nth-child(even) {
    flex-direction: row-reverse;
}

.roadmap-item:nth-child(even) .roadmap-content {
    text-align: right;
    padding-right: 64px;
    padding-left: 0;
}

.roadmap-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.roadmap-marker.completed {
    background: var(--accent);
    color: white;
}

.roadmap-marker.completed svg {
    width: 16px;
    height: 16px;
}

.roadmap-marker.current {
    background: var(--primary);
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.5);
}

.marker-pulse {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: markerPulse 2s ease-in-out infinite;
}

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

.roadmap-marker.upcoming {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
}

.roadmap-content {
    width: 50%;
    padding-left: 64px;
}

.roadmap-phase {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 136, 204, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.roadmap-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.roadmap-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   下载区域
   ======================================== */
.download {
    padding: 80px 0;
    background: var(--bg-primary);
}

.download-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 136, 204, 0.15);
    border-radius: 24px;
    padding: 48px 56px;
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 10px 15px -3px rgba(0, 0, 0, 0.03),
        0 25px 50px -12px rgba(0, 136, 204, 0.12);
}

.download-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.download-card::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.08) 0%, rgba(0, 212, 170, 0.08) 100%);
    border: 1px solid rgba(0, 136, 204, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.download-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.download-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.download-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.download-security {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.04) 0%, rgba(0, 212, 170, 0.04) 100%);
    border: 1px solid rgba(0, 136, 204, 0.12);
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 28px;
}

.security-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.security-title svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.security-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.security-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 2px;
}

.security-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-download {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 
        0 4px 14px rgba(0, 136, 204, 0.35),
        0 2px 4px rgba(0, 136, 204, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    cursor: pointer;
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.btn-download:hover::before {
    left: 100%;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 136, 204, 0.45),
        0 4px 8px rgba(0, 136, 204, 0.25);
}

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

.version-tag {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 6px;
}

.download-note {
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.download-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.download-icon {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 40px rgba(0, 136, 204, 0.25),
        0 8px 16px rgba(0, 136, 204, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: iconFloat 4s ease-in-out infinite;
}

.download-icon svg {
    width: 70px;
    height: 70px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

/* ========================================
   页脚
   ======================================== */
.footer {
    padding: 64px 0 32px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    align-items: start;
}

.footer-links {
    display: contents;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-developer {
    text-align: center;
    padding: 20px 0 8px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.developer-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
}

.developer-text {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Toast 提示
   ======================================== */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    transition: all var(--transition-normal);
}

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

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.toast-message {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .app-mockup {
        max-width: 320px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-item {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .showcase-item.reverse {
        direction: ltr;
    }

    .showcase-visual {
        order: -1;
    }

    .download-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-info {
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .footer-links {
        display: contents;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

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

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 16px;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-item {
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .showcase-title {
        font-size: 2rem;
    }

    .timeline-line {
        left: 20px;
    }

    .roadmap-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 56px;
    }

    .roadmap-item:nth-child(even) {
        flex-direction: column;
    }

    .roadmap-item:nth-child(even) .roadmap-content {
        text-align: left;
        padding-right: 0;
    }

    .roadmap-marker {
        left: 20px;
        transform: translateX(-50%);
    }

    .roadmap-content {
        width: 100%;
        padding-left: 0;
    }

    .download-card {
        padding: 40px 24px;
    }

    .download-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

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

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-desc {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 24px;
    }

    .showcase-card {
        padding: 20px;
    }
}

/* ========================================
   动画效果
   ======================================== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

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

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

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

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

/* 选中文本样式 */
::selection {
    background: rgba(0, 136, 204, 0.3);
    color: var(--text-primary);
}

/* ========================================
   下载按钮加载动画
   ======================================== */
.spin {
    animation: spin 1s linear infinite;
}

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

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
