/* 
 * live.whatapps-eos.com.cn - Shared Styles
 * Design: Morandi Low Saturation + Clean Typography
 */

:root {
    /* Colors: Morandi Palette */
    --color-primary: #6B8E7B;       /* Sage Green */
    --color-primary-dark: #54705F;
    --color-accent: #D4A373;        /* Warm Sand/Gold */
    --color-bg: #FDFCF9;            /* Warm Off-White */
    --color-surface: #FFFFFF;
    --color-text-main: #333333;
    --color-text-secondary: #666666;
    --color-border: #E8E6E1;
    --color-highlight: rgba(107, 142, 123, 0.1);

    /* Typography */
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    /* Spacing & Layout */
    --container-width: 1100px;
    --header-height: 70px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Typography Components */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--color-text-main);
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.05rem;
}

/* Header */
.site-header {
    height: var(--header-height);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.brand-logo img {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link[aria-current="page"] {
    color: var(--color-primary);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-highlight);
}

.btn-small {
    padding: 6px 16px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 60px 0;
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-height));
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
    text-wrap: balance;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    max-width: 480px;
}

/* SVG Animation System */
.svg-illustration {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Light Sweep Animation */
@keyframes sweep {
    0% { stroke-dashoffset: 1; }
    15% { stroke-dashoffset: 0; }
    85% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 1; }
}

.sweep-line {
    stroke-dasharray: 0.05; /* Small segment */
    stroke-dashoffset: 0;
    animation: sweep 4s ease-in-out infinite;
}

/* Draw In Animation */
@keyframes drawIn {
    from { stroke-dashoffset: 1; opacity: 0; }
    to { stroke-dashoffset: 0; opacity: 1; }
}

.draw-path {
    pathLength: 1;
    stroke-dasharray: 1;
    stroke-dashoffset: 0; /* Default visible state for accessibility */
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .sweep-line, .draw-path {
        animation: none !important;
    }
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--color-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Interface / Visual Section */
.visual-section {
    padding: 100px 0;
    background-color: var(--color-bg);
    text-align: center;
}

.visual-mockup {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* Scenarios */
.scenarios-section {
    padding: 80px 0;
    background-color: var(--color-surface);
}

.scenario-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.scenario-block:last-child {
    margin-bottom: 0;
}

.scenario-block.reverse {
    direction: rtl;
}

.scenario-block.reverse > * {
    direction: ltr;
}

.scenario-text h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-text-main);
}

.scenario-steps {
    margin-top: 20px;
    padding-left: 20px;
    border-left: 2px solid var(--color-accent);
}

.scenario-steps li {
    margin-bottom: 12px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding-left: 10px;
}

.scenario-steps li::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* Version Table */
.version-section {
    padding: 80px 0;
}

.table-wrapper {
    overflow-x: auto;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 4px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table th, .data-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.data-table th {
    background-color: var(--color-bg);
    font-weight: 600;
    color: var(--color-text-main);
    font-family: var(--font-heading);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table td:first-child {
    font-weight: 500;
    color: var(--color-primary);
}

/* Security Section */
.security-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--color-bg), var(--color-surface));
    text-align: center;
}

.security-content {
    max-width: 700px;
    margin: 0 auto;
}

.security-points {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.security-item {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.security-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px auto;
    color: var(--color-primary);
}

/* Download Section */
.download-section {
    padding: 100px 0;
    background-color: var(--color-primary);
    color: #fff;
    text-align: center;
}

.download-section .section-title,
.download-section .section-subtitle {
    color: #fff;
}

.download-section .section-subtitle {
    opacity: 0.9;
}

.download-area {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.2);
}

.download-btn-large {
    background-color: #fff;
    color: var(--color-primary);
    font-size: 1.1rem;
    padding: 16px 40px;
    margin-top: 24px;
    font-weight: bold;
}

.download-btn-large:hover {
    background-color: var(--color-accent);
    color: #fff;
}

.install-steps {
    margin-top: 30px;
    text-align: left;
    display: inline-block;
}

.install-steps ol {
    padding-left: 20px;
}

.install-steps li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* News Section */
.news-section {
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.news-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
}

.news-date {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 12px;
    font-weight: 500;
}

.news-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Related Links */
.related-section {
    padding: 60px 0;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-item a {
    display: block;
    padding: 12px;
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    transition: border-color 0.2s;
}

.related-item a:hover {
    border-color: var(--color-primary);
}

.related-title {
    font-weight: 500;
    color: var(--color-text-main);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.related-desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
}

.faq-item summary {
    padding: 20px 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-main);
    list-style: none;
    position: relative;
    padding-right: 40px;
    font-size: 1.05rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 300;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item summary:hover {
    color: var(--color-primary);
}

.faq-answer {
    padding-bottom: 24px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.site-footer {
    background-color: #2C2C2C;
    color: #ccc;
    padding: 60px 0 30px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #aaa;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 24px;
    text-align: center;
    color: #777;
    font-size: 0.85rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-desc {
        margin: 0 auto 2rem auto;
    }
    
    .scenario-block, .scenario-block.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 30px;
    }
    
    .nav-menu {
        display: none; /* Simple hide for mobile in this static version, ideally hamburger */
    }
    
    .header-inner {
        justify-content: center;
    }
    
    .brand-logo {
        margin: 0;
    }
}
