/* ============================================
   Stimer 站点样式 - 精简版
   ============================================ */

/* 基础变量 */
:root {
    --tomato: #ff6b6b;
    --tomato-dark: #e55555;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --gray: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

/* ============================================
   导航栏
   ============================================ */
nav {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--tomato);
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

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

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

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

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.language-switcher a {
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    color: var(--dark);
    transition: all 0.3s;
}

.language-switcher a:hover {
    background: var(--light);
}

.language-switcher a.active {
    background: var(--tomato);
    color: var(--white);
}

/* ============================================
   主内容区域 - 统一间距
   ============================================ */
main {
    min-height: calc(100vh - 200px);
}

/* ============================================
   Hero 区域 (首页)
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--tomato) 0%, #ffa502 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease;
}

.hero .tagline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--tomato);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

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

.btn.windows { color: #0078d4; }
.btn.linux { color: #fcc624; }

.version-info {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* 功能网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--tomato);
}

.feature-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* 统计区域 */
.stats {
    background: linear-gradient(135deg, var(--dark) 0%, #34495e 100%);
    color: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 3rem 2rem;
    text-align: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* CTA 按钮 */
.cta {
    text-align: center;
    margin: 4rem 0;
}

.cta-button {
    display: inline-block;
    background: var(--tomato);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background: var(--tomato-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   页面通用容器 (文档/下载/法律)
   ============================================ */
.docs-page-simple,
.download-page-simple,
.legal-page {
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
    padding: 3rem 1rem;
}

.docs-container-simple,
.download-container-simple,
.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.docs-content-simple,
.download-content-simple,
.legal-content {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 3rem;
}

/* ============================================
   通用内容样式 (文档/下载/法律共用)
   ============================================ */
.docs-content-simple h1,
.download-content-simple h1,
.legal-content h1 {
    color: var(--tomato);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.docs-content-simple h2,
.download-content-simple h2,
.legal-content h2 {
    color: var(--dark);
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light);
}

.docs-content-simple h3,
.download-content-simple h3,
.legal-content h3 {
    color: var(--dark);
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem 0;
}

.docs-content-simple p,
.download-content-simple p,
.legal-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #4a5568;
}

.docs-content-simple ul,
.docs-content-simple ol,
.download-content-simple ul,
.legal-content ul,
.legal-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.docs-content-simple li,
.download-content-simple li,
.legal-content li {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: #4a5568;
}

.docs-content-simple code,
.download-content-simple code,
.legal-content code {
    background: #f1f3f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.docs-content-simple pre,
.download-content-simple pre,
.legal-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.docs-content-simple pre code,
.download-content-simple pre code,
.legal-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.docs-content-simple table,
.download-content-simple table,
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.docs-content-simple th,
.download-content-simple th,
.legal-content th {
    background: var(--tomato);
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.docs-content-simple td,
.download-content-simple td,
.legal-content td {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    color: #4a5568;
}

.docs-content-simple tr:last-child td,
.download-content-simple tr:last-child td,
.legal-content tr:last-child td {
    border-bottom: none;
}

/* 文档页面额外样式 */
.docs-content-simple h1 {
    border-bottom: 3px solid var(--tomato);
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 0.5rem;
}

/* 下载页面列表样式 */
.download-content-simple ul {
    list-style: none;
    padding: 0;
}

.download-content-simple li {
    background: #f8f9fa;
    margin: 0.75rem 0;
    padding: 1rem;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
}

.download-content-simple li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--tomato);
}

.download-content-simple a {
    color: var(--tomato);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.download-content-simple a:hover {
    text-decoration: underline;
}

/* ============================================
   页脚
   ============================================ */
footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

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

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .tagline {
        font-size: 1rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .docs-page-simple,
    .download-page-simple,
    .legal-page {
        padding: 1rem;
    }
    
    .docs-content-simple,
    .download-content-simple,
    .legal-content {
        padding: 1.5rem;
    }
    
    .docs-content-simple h1,
    .download-content-simple h1,
    .legal-content h1 {
        font-size: 1.8rem;
    }
    
    .docs-content-simple h2,
    .download-content-simple h2,
    .legal-content h2 {
        font-size: 1.4rem;
    }
    
    .download-content-simple li {
        padding: 0.75rem;
    }
}

/* ============================================
   核心功能区域 - 确保样式正确
   ============================================ */
.features {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--tomato);
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   核心功能 + 图片 两列布局
   ============================================ */
.features-with-image {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.features-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    flex-wrap: wrap;
}

.features-left {
    flex: 1;
    min-width: 280px;
}

.features-left h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
    text-align: center;
}

.features-right {
    flex: 0.8;
    min-width: 280px;
    text-align: center;
}

.software-image {
    background: linear-gradient(135deg, var(--light) 0%, #e0e4e8 100%);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-hover);
    transition: transform 0.3s;
}

.software-image:hover {
    transform: translateY(-5px);
}

.screenshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: white;
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
}

/* 响应式：小屏幕时图片在下方 */
@media (max-width: 768px) {
    .features-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .features-left {
        width: 100%;
    }
    
    .features-right {
        width: 100%;
    }
    
    .software-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* 图片加载失败时的备用样式 */
.screenshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, var(--light) 0%, #e0e4e8 100%);
    min-height: 300px;
    object-fit: cover;
}

/* 图片加载失败时显示占位符 */
.screenshot::before {
    content: "🍅";
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: inherit;
    min-height: 300px;
}
