/* ===== 全局样式 ===== */
:root {
    --primary-color: #007AFF;
    --secondary-color: #34C759;
    --text-color: #1d1d1f;
    --text-secondary: #6e6e73;
    --bg-color: #ffffff;
    --bg-secondary: #f5f5f7;
    --border-color: #d2d2d7;
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f5f5f7;
        --text-secondary: #a1a1a6;
        --bg-color: #000000;
        --bg-secondary: #1c1c1e;
        --border-color: #38383a;
        --shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 4px 24px rgba(0, 0, 0, 0.4);
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    opacity: 0.8;
}

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

/* ===== 导航栏 ===== */
.navbar {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.8);
}

@media (prefers-color-scheme: dark) {
    .navbar {
        background-color: rgba(0, 0, 0, 0.8);
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

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

.nav-menu a {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

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

.lang-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

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

/* ===== 主横幅 ===== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
}

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

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-color);
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.app-store-badge {
    margin: 24px 0;
}

.app-store-badge img {
    height: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.app-store-badge img:hover {
    transform: scale(1.05);
}

.system-requirements {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
}

.hero-image .screenshot {
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
}

/* ===== 页面标题 ===== */
.page-header {
    padding: 80px 0 40px;
    text-align: center;
    background: var(--bg-secondary);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ===== 功能区块 ===== */
.features {
    padding: 80px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

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

.feature-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

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

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* ===== 详细功能 ===== */
.features-detail {
    padding: 60px 0;
}

.feature-detail-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

.feature-detail-item.reverse {
    direction: rtl;
}

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

.feature-detail-icon {
    font-size: 64px;
    text-align: center;
}

.feature-detail-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature-detail-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.feature-detail-content ul {
    list-style: none;
    padding: 0;
}

.feature-detail-content li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
}

.feature-detail-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===== 截图展示 ===== */
.screenshots {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.screenshot-item {
    text-align: center;
}

.screenshot-item img {
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    transition: var(--transition);
}

.screenshot-item img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.screenshot-item p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===== 为什么选择 ===== */
.why-choose {
    padding: 80px 0;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.reason-item {
    text-align: center;
}

.reason-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.reason-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.reason-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== 定价 ===== */
.pricing-section {
    padding: 60px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.pricing-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

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

.pricing-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(52, 199, 89, 0.05));
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.pricing-price {
    margin-bottom: 8px;
}

.pricing-price .currency {
    font-size: 24px;
    vertical-align: top;
}

.pricing-price .amount {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-price .period {
    font-size: 18px;
    color: var(--text-secondary);
}

.pricing-save {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 24px;
}

.pricing-features ul {
    list-style: none;
    text-align: left;
    margin: 24px 0;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-notes {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 2;
}

/* ===== FAQ ===== */
.faq-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--primary-color);
}

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

.faq-item {
    background: var(--bg-color);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.faq-item h3,
.faq-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-list .faq-item {
    margin-bottom: 20px;
}

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

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

.cta h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta .app-store-badge {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

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

.footer-section a {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== 支持页面 ===== */
.support-quick-links {
    padding: 60px 0;
}

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

.quick-link-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

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

.quick-link-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.quick-link-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.quick-link-card a {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== 教程 ===== */
.tutorials-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

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

.tutorial-card {
    background: var(--bg-color);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.tutorial-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.tutorial-card ol {
    padding-left: 20px;
}

.tutorial-card li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== 联系我们 ===== */
.contact-section {
    padding: 60px 0;
}

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

.contact-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-item {
    font-size: 16px;
}

.contact-item strong {
    color: var(--text-color);
    margin-right: 8px;
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== 法律文档 ===== */
.legal-content {
    padding: 60px 0;
}

.legal-text {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 60px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.legal-text h2 {
    font-size: 28px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 16px;
}

.legal-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-text ul,
.legal-text ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.legal-text li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.legal-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.legal-footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-menu {
        gap: 16px;
        font-size: 12px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .features-grid,
    .screenshots-grid,
    .pricing-grid,
    .faq-grid,
    .tutorials-grid,
    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .feature-detail-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-detail-item.reverse {
        direction: ltr;
    }

    .legal-text {
        padding: 32px 20px;
    }

    .cta h2 {
        font-size: 28px;
    }

    .cta p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .navbar .container {
        padding: 12px 16px;
    }

    .nav-menu {
        gap: 12px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .feature-card,
    .pricing-card,
    .quick-link-card {
        padding: 24px;
    }
}

/* ===== 动画 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===== 打印样式 ===== */
@media print {
    .navbar,
    .footer,
    .cta,
    .app-store-badge {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .legal-text {
        background: white;
        border: none;
        box-shadow: none;
    }
}

