/* ==========================================================================
   聊参谋 (ChatCounsel) Landing Page Stylesheet
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    /* Color Palette (HSL Tailored for smart, elegant, empathetic AI chat vibe) */
    --color-primary: hsl(262, 70%, 60%);       /* Premium Violet */
    --color-primary-dark: hsl(262, 60%, 25%);  /* Deep Indigo Navy */
    --color-primary-light: hsl(262, 85%, 92%); /* Soft Lavender */
    --color-secondary: hsl(180, 60%, 45%);     /* Soft Teal */
    --color-accent: hsl(330, 80%, 65%);         /* Warm Pink/Rose */
    
    /* Background Gradients */
    --bg-gradient-start: hsl(262, 40%, 98%);
    --bg-gradient-end: hsl(330, 40%, 98%);
    
    /* Text Colors */
    --text-main: hsl(262, 40%, 20%);
    --text-muted: hsl(262, 20%, 45%);
    --text-light: hsl(0, 0%, 100%);
    
    /* Glassmorphism & UI Accents */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(175, 142, 202, 0.15);
    --card-shadow-hover: 0 20px 40px 0 rgba(175, 142, 202, 0.25);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-round: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-elastic: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   1. Base & Reset
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Multilingual Toggle Architecture */
body.lang-zh .lang-en { display: none !important; }
body.lang-en .lang-zh { display: none !important; }

/* Global Container Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
}

/* Typography styles */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.25;
}

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

a:hover {
    color: var(--color-primary-dark);
}

/* ==========================================================================
   2. Background Animations
   ========================================================================== */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: var(--border-radius-round);
    filter: blur(120px);
    z-index: -1;
    opacity: 0.45;
    pointer-events: none;
    animation: glowFloat 12s infinite alternate ease-in-out;
}

.glow-1 {
    background: radial-gradient(circle, hsl(262, 85%, 80%) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.glow-2 {
    background: radial-gradient(circle, hsl(330, 90%, 88%) 0%, transparent 70%);
    bottom: 15%;
    right: -200px;
    animation-delay: -4s;
    width: 700px;
    height: 700px;
}

.glow-3 {
    background: radial-gradient(circle, hsl(180, 60%, 88%) 0%, transparent 70%);
    top: 40%;
    left: 10%;
    animation-delay: -8s;
}

@keyframes glowFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.1); }
}

/* ==========================================================================
   3. Glassmorphism System
   ========================================================================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-panel:hover {
    box-shadow: var(--card-shadow-hover);
}

/* ==========================================================================
   4. Navigation Bar
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 16px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--text-light);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(175, 142, 202, 0.3);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.nav-link-special {
    color: var(--color-primary);
    font-weight: 600;
}

.btn-lang {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-lang:hover {
    background: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   5. Buttons System
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 28px;
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-elastic), box-shadow var(--transition-smooth), background-color var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), hsl(262, 80%, 58%));
    color: var(--text-light);
    box-shadow: 0 8px 24px rgba(175, 142, 202, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(175, 142, 202, 0.45);
    background: linear-gradient(135deg, hsl(262, 76%, 58%), hsl(262, 80%, 53%));
    color: var(--text-light);
}

.btn-primary small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
    text-align: left;
}

.btn-primary strong {
    font-size: 1.1rem;
    display: block;
    line-height: 1.1;
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */
.hero-section {
    padding: 80px 0 100px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--color-primary-dark);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.tag-badge i {
    color: var(--color-accent);
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--text-main);
}

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

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* CSS Phone Mockup */
.hero-mockup-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    padding: 11px;
    box-shadow: 0 25px 60px -10px rgba(75, 45, 115, 0.35), 0 0 0 4px #2f2c35;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Phone Screen */
.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, hsl(265, 60%, 96%) 0%, hsl(330, 60%, 96%) 100%);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 14px 20px;
}

/* Phone Mockup Screen Lock Overlay / Scan Simulation */
.phone-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.phone-screen.is-scanning .phone-lock-overlay {
    opacity: 1;
    pointer-events: auto;
}

.scanner-beam {
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    box-shadow: 0 0 12px var(--color-primary);
    position: absolute;
    top: 20%;
    animation: ocrScan 2s infinite ease-in-out;
}

.scan-message {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 60px;
}

@keyframes ocrScan {
    0%, 100% { top: 20%; }
    50% { top: 80%; }
}

.ocr-scanner-icon {
    font-size: 3.5rem;
    color: var(--color-primary);
    animation: scannerPulse 1.5s infinite alternate ease-in-out;
}

@keyframes scannerPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.08); opacity: 1; }
}

/* Dynamic Island/Speaker slot */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    font-size: 0.85rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

.app-logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.app-lock-status {
    color: var(--color-primary);
}

.app-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
}

/* Interactive Mock Simulator UI Components */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.chat-bubble.received {
    align-self: flex-start;
    background-color: var(--text-light);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.chat-bubble.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--color-primary-light), hsl(262, 85%, 95%));
    color: var(--text-main);
    border-bottom-right-radius: 4px;
    border: 1px solid rgba(262, 70%, 60%, 0.1);
}

.chat-sender-name {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 2px;
    display: block;
    font-weight: 600;
}

/* Strategy Tabs switcher */
.reply-strategy-box {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.strategy-tabs {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.strategy-tab {
    flex: 1;
    padding: 6px 4px;
    border-radius: 10px;
    border: none;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255,255,255,0.4);
    color: var(--text-muted);
    transition: all var(--transition-fast);
    text-align: center;
}

.strategy-tab.active {
    background: var(--color-primary);
    color: var(--text-light);
}

.reply-output-text {
    font-size: 0.78rem;
    color: var(--text-main);
    line-height: 1.45;
    background: rgba(255,255,255,0.8);
    padding: 10px;
    border-radius: 10px;
    border: 1px dashed rgba(262, 70%, 60%, 0.2);
    min-height: 52px;
    word-break: break-all;
}

.reply-output-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.copy-success-note {
    font-size: 0.65rem;
    color: var(--color-secondary);
    font-weight: 600;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.copy-success-note.visible {
    opacity: 1;
}

.btn-mini-copy {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Contacts/Memory widget */
.contacts-memory-widget {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 12px 14px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(175, 142, 202, 0.05);
}

.widget-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 6px;
}

.widget-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.widget-title i {
    color: var(--color-secondary);
}

.memory-tag-badge {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.memory-content-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.72rem;
    text-align: left;
}

.memory-row {
    display: flex;
    justify-content: space-between;
}

.memory-label {
    color: var(--text-muted);
}

.memory-value {
    color: var(--text-main);
    font-weight: 600;
}

.app-action-btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--text-light);
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(175, 142, 202, 0.25);
    transition: all var(--transition-fast);
    outline: none;
}

.app-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(175, 142, 202, 0.35);
}

/* ==========================================================================
   7. Features Grid Section
   ========================================================================== */
.features-section {
    padding: 100px 0;
    position: relative;
}

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

.section-title-large {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-elastic), box-shadow var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, var(--color-primary-light), var(--text-light));
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(175, 142, 202, 0.1);
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

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

/* ==========================================================================
   9. Support / Contact Section
   ========================================================================== */
.support-section {
    padding: 80px 0 100px;
}

.support-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.support-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.support-info-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.support-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.support-text h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.support-email {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

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

.faq-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-item:hover {
    background-color: var(--text-light);
}

.faq-item summary {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
}

.faq-answer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   10. Privacy Document Layout Specifics
   ========================================================================== */
.privacy-section {
    padding: 60px 0 100px;
}

.privacy-container {
    padding: 50px 40px;
}

.privacy-title {
    font-size: 2.6rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.privacy-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.privacy-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--text-main);
}

.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 30px 0;
}

.privacy-container h3 {
    font-size: 1.35rem;
    margin: 30px 0 12px;
    color: var(--text-main);
}

.privacy-container p {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.privacy-container ul {
    margin-bottom: 24px;
    padding-left: 20px;
    list-style: none;
}

.privacy-container li {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    position: relative;
}

.privacy-container li i {
    margin-right: 8px;
}

.text-green {
    color: var(--color-secondary);
}

.contact-info {
    font-size: 1.05rem !important;
    background: rgba(255, 255, 255, 0.3);
    padding: 12px 18px;
    border-radius: var(--border-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-top: 10px;
}

.contact-info a {
    font-weight: 600;
}

/* ==========================================================================
   11. Footer Section
   ========================================================================== */
.footer {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-right {
    text-align: right;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-links a {
    color: var(--text-muted);
}

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

.footer-links .separator {
    color: var(--glass-border);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   12. Responsive Design (Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .navbar-container {
        padding: 0 16px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .support-card, .privacy-container {
        padding: 30px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
