/* 全局样式 */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --accent-color: #8b5cf6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-white: #f9fafb;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --bg-gray: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 导航栏样式 */
header {
    background-color: var(--bg-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    vertical-align: middle;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: '微软雅黑';
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo a::before {
    /*content: "📷";*/
    margin-right: 0.5rem;
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

.nav-links li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px;
    transition: var(--transition);
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1470790376778-a9fbc86d70e2?ixlib=rb-1.2.1&auto=format&fit=crop&w=1949&q=80') center/cover no-repeat;
    opacity: 0.2;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 功能概览区域样式 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 大屏幕下的特殊布局 - 第一行2个大卡片，第二行3个小卡片 */
@media screen and (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: auto auto;
        gap: 1.5rem;
    }
    
    /* 第一行：两个大卡片 */
    .feature-grid .feature-item:nth-child(1) {
        grid-column: span 3;
        grid-row: 1;
    }
    
    .feature-grid .feature-item:nth-child(2) {
        grid-column: span 3;
        grid-row: 1;
    }
    
    /* 第二行：三个小卡片 */
    .feature-grid .feature-item:nth-child(3) {
        grid-column: span 2;
        grid-row: 2;
    }
    
    .feature-grid .feature-item:nth-child(4) {
        grid-column: span 2;
        grid-row: 2;
    }
    
    .feature-grid .feature-item:nth-child(5) {
        grid-column: span 2;
        grid-row: 2;
    }
}

/* 中等屏幕下的布局优化 */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .feature-grid .feature-item:nth-child(5) {
        grid-column: span 2;
        justify-self: center;
        max-width: 350px;
    }
}

.feature-item {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* 大卡片样式（前两个） */
@media screen and (min-width: 1024px) {
    .feature-grid .feature-item:nth-child(1),
    .feature-grid .feature-item:nth-child(2) {
        padding: 2.5rem;
        border-radius: 0.75rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(96, 165, 250, 0.1);
    }
    
    .feature-grid .feature-item:nth-child(1):hover,
    .feature-grid .feature-item:nth-child(2):hover {
        transform: translateY(-15px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
    
    .feature-grid .feature-item:nth-child(1) .feature-icon,
    .feature-grid .feature-item:nth-child(2) .feature-icon {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-grid .feature-item:nth-child(1) h3,
    .feature-grid .feature-item:nth-child(2) h3 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-grid .feature-item:nth-child(1) p,
    .feature-grid .feature-item:nth-child(2) p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* 小卡片样式（后三个） */
    .feature-grid .feature-item:nth-child(n+3) {
        padding: 1.75rem;
        border-radius: 0.5rem;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border: 1px solid rgba(148, 163, 184, 0.1);
    }
    
    .feature-grid .feature-item:nth-child(n+3):hover {
        background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
        transform: translateY(-8px);
    }
    
    .feature-grid .feature-item:nth-child(n+3) .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-grid .feature-item:nth-child(n+3) h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-grid .feature-item:nth-child(n+3) p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* 为什么选择我们区域样式 */
.why-choose {
    background-color: var(--bg-gray);
}

.prose {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--text-light);
}

/* 下载选项区域样式 */
.download-options {
    background: linear-gradient(135deg, #f6f7f9, #e2e8f0);
    padding: 80px 0;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.download-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.download-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.download-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.download-card ul {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.download-card ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.recommend-badge, .free-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-top-right-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.recommend-badge {
    background-color: var(--primary-color);
    color: white;
}

.free-badge {
    background-color: var(--secondary-color);
    color: white;
}

.recommended {
    border-top: 3px solid var(--primary-color);
}

.free {
    border-top: 3px solid var(--secondary-color);
}

/* 页脚样式 */
footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-about p {
    color: #9ca3af;
    margin-top: 1rem;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.footer-links ul li, .footer-contact ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a, .footer-contact ul li a {
    color: #9ca3af;
    transition: var(--transition);
}

.footer-links ul li a:hover, .footer-contact ul li a:hover {
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #9ca3af;
    margin-bottom: 0;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: #9ca3af;
    font-size: 0.875rem;
}

.legal-links a:hover {
    color: var(--text-white);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background-color: var(--bg-light);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transform: translateY(-150%);
        transition: transform 0.5s ease-in;
        box-shadow: var(--shadow);
        z-index: 99;
    }
    
    .nav-active {
        transform: translateY(0%);
    }
    
    .burger {
        display: block;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
}

/* 动画效果 */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 特性页面样式 */
.feature-detail {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.feature-row:nth-child(even) {
    direction: rtl;
}

.feature-row:nth-child(even) .feature-text {
    direction: ltr;
}

.feature-image img {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.feature-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.feature-text h3 .feature-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0;
}

.feature-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.format-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.format-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.format-card ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.format-card ul li {
    margin-bottom: 0.5rem;
}

@media screen and (max-width: 768px) {
    .feature-row {
        grid-template-columns: 1fr;
    }
    
    .feature-row:nth-child(even) {
        direction: ltr;
    }
    
    .feature-image {
        order: -1;
    }
}

/* 下载页面样式 */
.version-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    box-shadow: var(--shadow);
    border-radius: 0.5rem;
    overflow: hidden;
}

.version-table th, .version-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.version-table th {
    background-color: var(--primary-color);
    color: white;
}

.version-table tr:nth-child(even) {
    background-color: #f9fafb;
}

.system-requirements {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-top: 3rem;
}

.system-requirements ul {
    list-style: none;
    margin-top: 1.5rem;
}

.system-requirements ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.system-requirements ul li::before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* FAQ页面样式 */
.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.show {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
}

/* 页面过渡动画 */
.page-transition {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
