/* templates/telegram/css/style.css */
:root {
    --primary: #0088cc;
    --primary-dark: #006699;
    --primary-light: #e6f3fc;
    --secondary: #6c757d;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --gray-light: #f5f5f5;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 0.75rem;
    --radius-lg: 1rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #00aaff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 16px;
    font-weight: 700;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
}

@media (max-width: 768px) {
    .section-header h2 { font-size: 32px; }
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), #00aaff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.logo-text .highlight {
    color: var(--primary);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.btn-download {
    padding: 10px 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow);
    }
    .nav-menu.active { display: flex; }
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0088cc 0%, #0055aa 100%);
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text h1 { font-size: 36px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
}

/* Features */
.features {
    padding: 80px 0;
}

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

.feature-card {
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray);
}

/* About */
.about {
    padding: 80px 0;
    background: var(--gray-light);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 36px;
    margin: 16px 0 24px;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 16px;
}

.about-features {
    display: flex;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-icon {
    font-size: 24px;
}

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

.stats-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
}

.stats-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.stats-label {
    font-size: 14px;
    color: var(--gray);
}

@media (max-width: 768px) {
    .about-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Platform */
.platform {
    padding: 80px 0;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.platform-card {
    background: var(--gray-light);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s;
}

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

.platform-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.platform-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.platform-card p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 16px;
}

.platform-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Security */
.security {
    padding: 60px 0;
    background: var(--primary-light);
}

.security-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
}

.security-icon {
    font-size: 64px;
}

.security-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.security-badges {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 16px;
    background: var(--gray-light);
    border-radius: 30px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .security-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .security-badges { justify-content: center; }
}

/* FAQ */
.faq {
    padding: 80px 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 500;
}

.faq-toggle {
    font-size: 24px;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding-bottom: 20px;
    color: var(--gray);
}

.faq-item.active .faq-answer {
    display: block;
}

/* CTA */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), #00aaff);
    text-align: center;
    color: var(--white);
}

.cta h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.cta p {
    margin-bottom: 32px;
    font-size: 18px;
}

/* Download Page */
.download-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary), #00aaff);
    text-align: center;
    color: var(--white);
}

.download-hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.platform-tab {
    padding: 12px 28px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 40px;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.platform-tab.active,
.platform-tab:hover {
    background: var(--white);
    color: var(--primary);
}

.download-section {
    padding: 60px 0;
    background: var(--gray-light);
}

.download-card {
    max-width: 600px;
    margin: 0 auto;
    display: none;
}

.download-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.download-card-inner {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.download-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.download-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 24px 0;
    color: var(--gray);
    font-size: 14px;
}

.download-buttons {
    margin-top: 24px;
}

.btn-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary);
    text-decoration: none;
}

.download-note {
    margin-top: 24px;
    padding: 12px;
    background: var(--primary-light);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--primary);
}

.qrcode {
    margin-top: 32px;
}

.qrcode-placeholder {
    width: 120px;
    height: 120px;
    background: var(--gray-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 40px;
}

/* Web Version */
.web-version {
    padding: 40px 0;
}

.web-card {
    display: flex;
    align-items: center;
    gap: 32px;
    background: linear-gradient(135deg, var(--primary-light), var(--white));
    padding: 40px;
    border-radius: var(--radius-lg);
}

.web-icon {
    font-size: 64px;
}

.web-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.web-content p {
    color: var(--gray);
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .web-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Guide */
.guide {
    padding: 60px 0;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .guide-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Requirements */
.requirements {
    padding: 60px 0;
    background: var(--gray-light);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.requirements-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.requirements-card h3 {
    margin-bottom: 20px;
}

.requirements-card ul {
    list-style: none;
}

.requirements-card li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.requirements-card li::before {
    content: "✅";
    position: absolute;
    left: 0;
}

/* Security Notice */
.security-notice {
    padding: 40px 0;
}

.security-content {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: #fef3c7;
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .security-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}