/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* 导航栏 */
.navbar {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #4361ee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nav-links a.active {
    color: #4361ee;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: #4361ee;
    margin-bottom: 20px;
}

/* 功能目录 */
.features-toc {
    padding: 40px 0;
    background: #f8f9fa;
}

.toc-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.toc-list li a {
    color: #4361ee;
    text-decoration: none;
    padding: 8px 15px;
    display: block;
    border-radius: 4px;
    transition: background 0.3s;
}

.toc-list li a:hover {
    background: #f0f2ff;
}

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

.feature-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.feature-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-content h3 {
    font-size: 1.5rem;
    color: #4361ee;
    margin: 25px 0 15px;
}

.feature-content ul {
    list-style-position: inside;
    margin-bottom: 20px;
}

.feature-content li {
    margin-bottom: 10px;
    color: #666;
}

.feature-table {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.table-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1px;
    background: #ddd;
}

.table-row.three-cols {
    grid-template-columns: 1fr 2fr 80px;
}

.table-row.four-cols {
    grid-template-columns: 1fr 2fr 150px;
}

.table-row.two-cols {
    grid-template-columns: 1fr 2fr;
}

.table-row:nth-child(odd) {
    background: #ddd;
}

.table-cell {
    padding: 15px;
    background: white;
}

.table-cell.header {
    background: #4361ee;
    color: white;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .toc-list {
        grid-template-columns: 1fr;
    }
    
    .table-row {
        grid-template-columns: 1fr;
    }
}

/* 为其他页面添加的基本样式 */
.feature-comparison, .download-options, .community-intro {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #4361ee;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn:hover {
    background: #3a56d4;
}

.btn-primary {
    background: #4361ee;
}

.btn-secondary {
    background: #7209b7;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* 首页样式 */
.hero {
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);
    padding: 80px 0;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    color: #4361ee;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.hero-content .tagline {
    font-size: 1.2rem;
    color: #7209b7;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content .description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #888;
    font-size: 0.9rem;
}

.version-info .dot {
    color: #ccc;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 功能预览 */
.features-preview {
    padding: 80px 0;
    background: white;
}

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

.feature-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 24px;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.feature-link {
    color: #4361ee;
    text-decoration: none;
    font-weight: 500;
}

.feature-link:hover {
    text-decoration: underline;
}

/* 隐私安全 */
.privacy-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    color: white;
}

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

.privacy-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.privacy-desc {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
}

.privacy-points {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.privacy-point {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.privacy-point i {
    font-size: 24px;
}

/* 技术栈 */
.tech-stack {
    padding: 80px 0;
    background: #f8f9fa;
}

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tech-item i {
    font-size: 48px;
    color: #4361ee;
}

.tech-item span {
    font-weight: 600;
    color: #333;
}

/* 下载提示 */
.download-cta {
    padding: 80px 0;
    text-align: center;
}

.download-cta h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.download-cta p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.system-requirements {
    margin-top: 20px;
    color: #888;
    font-size: 0.9rem;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-tagline {
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

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

.social-link:hover {
    background: rgba(255,255,255,0.2);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

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

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

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: #888;
    margin-bottom: 5px;
}

.disclaimer {
    font-size: 0.85rem;
    color: #666;
}

/* 语言切换 */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.lang-active {
    color: #4361ee;
    font-weight: 600;
}

.lang-option {
    color: #666;
    text-decoration: none;
}

.lang-option:hover {
    color: #4361ee;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* 下载页样式 */
.download-header {
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);
    padding: 80px 0;
    text-align: center;
}

.download-header h1 {
    font-size: 3rem;
    color: #4361ee;
    margin-bottom: 15px;
}

.version-info-section {
    padding: 60px 0;
    background: white;
}

.version-card {
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.version-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.version-card h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.release-date {
    opacity: 0.9;
    margin-bottom: 30px;
}

.version-highlights {
    text-align: left;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
}

.version-highlights h3 {
    margin-bottom: 15px;
}

.version-highlights ul {
    list-style-position: inside;
}

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

.platform-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.platform-icon i {
    font-size: 64px;
    color: #4361ee;
    margin-bottom: 20px;
}

.platform-card h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 5px;
}

.platform-version {
    color: #666;
    margin-bottom: 30px;
}

.download-info {
    margin-bottom: 30px;
}

.file-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    color: #888;
}

.file-size, .file-format {
    background: #f0f2ff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.installation-steps {
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.installation-steps h4 {
    color: #333;
    margin-bottom: 15px;
}

.installation-steps ol {
    padding-left: 20px;
}

.installation-steps li {
    margin-bottom: 10px;
    color: #666;
}

.installation-steps code {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.requirements {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.requirement {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.requirement h3 {
    color: #4361ee;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirement ul {
    list-style: none;
}

.requirement li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

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

.alternative-downloads {
    padding: 80px 0;
    text-align: center;
}

.alt-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.alt-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 200px;
}

.alt-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.alt-option i {
    font-size: 36px;
    color: #4361ee;
}

.alt-option small {
    color: #888;
}

/* 社群页样式 */
.community-header {
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);
    padding: 80px 0;
    text-align: center;
}

.community-header h1 {
    font-size: 3rem;
    color: #4361ee;
    margin-bottom: 15px;
}

.intro-content h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
}

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

.intro-point {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.intro-point i {
    font-size: 48px;
    color: #4361ee;
    margin-bottom: 20px;
}

.intro-point h3 {
    color: #333;
    margin-bottom: 10px;
}

.intro-point p {
    color: #666;
    line-height: 1.6;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.method-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.method-header i {
    font-size: 36px;
    color: #4361ee;
}

.method-header h3 {
    font-size: 1.5rem;
    color: #333;
}

.method-content p {
    color: #666;
    margin-bottom: 20px;
}

.qr-code {
    text-align: center;
    margin-bottom: 20px;
}

.qr-code img {
    max-width: 200px;
    border-radius: 10px;
}

.qr-caption {
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}

.qr-note {
    color: #888;
    font-size: 0.85rem;
}

.group-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.group-info p {
    margin-bottom: 5px;
    color: #666;
}

.discord-info ul {
    list-style: none;
    margin-bottom: 20px;
}

.discord-info li {
    padding: 5px 0;
    color: #666;
}

.github-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #4361ee;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
}

.community-rules {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.rule {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.rule h3 {
    color: #4361ee;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule ul {
    list-style: none;
}

.rule li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

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

.community-faq {
    padding: 80px 0;
}

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

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question i {
    color: #4361ee;
}

.faq-answer {
    padding: 0 20px;
    background: #f8f9fa;
    display: none;
}

.faq-answer p {
    padding: 20px 0;
    color: #666;
    line-height: 1.6;
}

.faq-answer ol {
    padding-left: 20px;
    padding: 20px;
    color: #666;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.comparison-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.comparison-item h3 {
    color: #4361ee;
    margin-bottom: 20px;
}

.comparison-item ul {
    list-style: none;
}

.comparison-item li {
    padding: 10px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-item i {
    color: #28a745;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .privacy-points {
        flex-direction: column;
        gap: 20px;
    }
    
    .tech-icons {
        gap: 30px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .toc-list {
        grid-template-columns: 1fr;
    }
    
    .table-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .requirements-content {
        grid-template-columns: 1fr;
    }
    
    .alt-options {
        flex-direction: column;
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
    }
    
    .rules-content {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .table-row.two-cols,
    .table-row.three-cols {
        grid-template-columns: 1fr;
    }
    
    .table-cell {
        border-bottom: 1px solid #eee;
    }
}

/* 事件类型样式 */
.event-types {
    margin: 20px 0;
}

.event-type-group {
    margin-bottom: 20px;
}

.event-type-group h4 {
    color: #4361ee;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.event-type-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.event-type-tag {
    background: #f0f2ff;
    color: #4361ee;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 活动流程样式 */
.activity-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.flow-alternative {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.flow-step {
    background: linear-gradient(135deg, #4361ee, #7209b7);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.flow-arrow {
    color: #4361ee;
    font-size: 24px;
    font-weight: bold;
}

/* 甘特图图例样式 */
.gantt-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.legend-symbol {
    font-size: 18px;
    font-weight: bold;
}

/* 版本信息卡片样式 */
.version-info-card {
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.version-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.version-date {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 代码样式 */
.feature-content code {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #d63384;
}