/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0ea5e9;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-text: #f1f5f9;
    --gray-text: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.6);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 50%, #ec4899 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--darker-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.logo {
    height: 40px;
    width: auto;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

/* 语言切换按钮 */
.lang-toggle {
    background: none;
    border: none;
    color: var(--gray-text);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-toggle:hover {
    opacity: 0.7;
}

.lang-toggle .lang-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Hero 区域 */
.hero {
    padding: 6rem 0;
    background: radial-gradient(ellipse at top, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.app-screenshot:hover {
    transform: scale(1.02);
}

/* 功能特点区域 */
.features {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.feature-card p {
    color: var(--gray-text);
    line-height: 1.6;
}

.feature-card ul {
    color: var(--gray-text);
    line-height: 1.7;
    list-style-position: inside;
    padding-left: 5px;
    text-align: left;
    margin-top: 1rem;
}

.feature-card li {
    margin-bottom: 0.8rem;
}

.feature-card li::marker {
    color: var(--primary-color);
    font-weight: 600;
}

/* Telegram 频道区域 */
.telegram-channel {
    padding: 4rem 0;
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    text-align: center;
}

.channel-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.channel-description {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* 关于区域 */
.about {
    padding: 6rem 0;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* 隐私政策 & Support 页面通用样式 */
.privacy-policy,
.support-page {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

.policy-content,
.support-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
}

.policy-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.policy-date {
    color: var(--gray-text);
    margin-bottom: 3rem;
    font-style: italic;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.policy-section p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-subsection {
    margin-left: 1.5rem;
    margin-top: 1.5rem;
}

.policy-subsection h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.policy-subsection p {
    color: var(--gray-text);
    line-height: 1.8;
}

.contact-info {
    background: rgba(14, 165, 233, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.policy-highlight {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(14, 165, 233, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.policy-highlight h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.policy-highlight ul {
    list-style: none;
    padding: 0;
}

.policy-highlight li {
    padding: 0.5rem 0;
    color: var(--gray-text);
    font-size: 1.05rem;
}

/* FAQ 样式 */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.faq-card {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.faq-card:hover {
    border-color: var(--secondary-color);
}

.faq-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.faq-card p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.faq-card p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.faq-card p a:hover {
    text-decoration: underline;
}

.faq-card ul {
    color: var(--gray-text);
    line-height: 1.8;
    list-style-position: inside;
    padding-left: 10px;
    margin: 1rem 0;
}

.faq-card li {
    margin-bottom: 0.5rem;
}

.faq-card pre {
    background: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.faq-card code {
    font-family: 'SF Mono', 'Menlo', 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.6;
    white-space: pre;
}

/* -----------------------------------------------------------
   Support 页面平台切换按钮样式
----------------------------------------------------------- */
.platform-toggle-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    margin-top: -1.5rem;
}

.btn-toggle {
    padding: 0.8rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-toggle.active {
    background: var(--gradient-2);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

/* 隐藏内容的通用类 - 必须加上 !important 以覆盖 grid display */
.hidden {
    display: none !important;
}

/* 页脚 */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.separator {
    color: var(--gray-text);
}

.copyright {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .policy-content,
    .support-content {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .lang-toggle {
        width: 28px;
        height: 28px;
    }

    .lang-toggle .lang-icon {
        width: 24px;
        height: 24px;
    }

    .hero {
        padding: 3rem 0;
    }

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

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .features {
        padding: 3rem 0;
    }

    .about,
    .telegram-channel {
        padding: 3rem 0;
    }

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

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

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .separator {
        display: none;
    }

    .policy-content,
    .support-content {
        padding: 1.5rem;
    }

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

    .policy-subsection {
        margin-left: 0.5rem;
    }

    .channel-content {
        padding: 1.5rem;
    }

    .btn-telegram {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }

    .faq-card {
        padding: 1.5rem;
    }

    .faq-card pre {
        padding: 1rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 强调文本 */
strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 选择文本样式 */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}