/* assets/css/style.css - 完整样式文件 */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 明暗模式变量 */
:root {
    --background-color: #ffffff;
    --text-color: #333333;
    --border-color: #eeeeee;
    --hover-color: #f8f9fa;
    --primary-color: #4285f4;
    --secondary-color: #f8f9fa;
    --warning-bg: #fff8e0;
    --warning-color: #856404;
    --note-bg: #fff9e6;
    --note-color: #856404;
}

[data-theme="dark"] {
    --background-color: #1e1e1e;
    --text-color: #e0e0e0;
    --border-color: #333333;
    --hover-color: #2d2d2d;
    --primary-color: #5c9afc;
    --secondary-color: #2d2d2d;
    --warning-bg: #3d3223;
    --warning-color: #ffd761;
    --note-bg: #3d3223;
    --note-color: #ffd761;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    transition: background-color 0.3s, color 0.3s;
}

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

a:hover {
    text-decoration: underline;
}

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

/* 页眉样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: var(--background-color);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 21px;
    margin-right: 10px;
}

.logo a {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.3rem;
    text-decoration: none;
}

.main-nav {
    display: flex;
    margin-left: 20px;
}

.main-nav a {
    margin-left: 25px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.main-nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-right a {
    margin-left: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.theme-switch {
    margin-left: 15px;
    position: relative;
    cursor: pointer;
    color: var(--text-color);
}

/* 警告栏样式 */
.warning-bar {
    background-color: var(--warning-bg);
    padding: 10px 15px;
    margin-bottom: 6px;
    line-height: 1.5;
    font-size: 14px;
    color: var(--warning-color);
}

.warning-bar .highlight {
    color: #ff8c00;
    font-weight: bold;
}

/* 导航标签样式 */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    padding: 0;
    overflow-x: auto;
}

.tab-navigation a {
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.tab-navigation a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* 内容部分样式 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 下载页面表格样式 */
.section-title {
    font-size: 18px;
    margin: 25px 0 15px 0;
    font-weight: normal;
}

.download-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    table-layout: fixed;
}

.download-table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    word-break: break-word;
}

.download-table tr td:last-child {
    width: 40%;
}

.download-link {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.file-hash {
    font-size: 12px;
    color: #666;
    word-break: break-all;
}

[data-theme="dark"] .file-hash {
    color: #aaa;
}

/* 帮助链接部分 */
.help-links {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
}

.help-item {
    width: 25%;
    padding-right: 20px;
    margin-bottom: 20px;
}

.help-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: normal;
}

.help-item a {
    color: var(--primary-color);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.back-to-top:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
    margin-top: 40px;
}

[data-theme="dark"] footer {
    color: #aaa;
}

/* 首页样式 */
/* Hero section */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

[data-theme="dark"] .hero p {
    color: #aaa;
}

.hero-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hero-buttons a {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white !important;
    display: flex;
    align-items: center;
}

.primary-btn svg {
    margin-left: 8px;
}

.secondary-btn {
    border: 1px solid var(--border-color);
    color: var(--text-color) !important;
}

.secondary-btn:hover {
    background-color: var(--hover-color);
}

/* Quick install section */
.quick-install {
    text-align: center;
    padding: 50px 20px;
}

.quick-install h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.code-block {
    background-color: var(--hover-color);
    border-radius: 6px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-family: monospace;
    font-size: 0.9rem;
}

.code-block .copy-btn {
    margin-left: 15px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

[data-theme="dark"] .code-block .copy-btn {
    color: #aaa;
}

/* Features section */
.features {
    padding: 50px 20px;
    text-align: center;
}

.features h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
    background-color: var(--hover-color);
}

.feature-card .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.feature-card p {
    font-size: 0.85rem;
    color: #666;
}

[data-theme="dark"] .feature-card p {
    color: #aaa;
}

/* Stats section */
.stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 25px 15px;
    text-align: center;
}

.stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-bottom: 5px;
}

.arrow-up {
    color: #28a745;
}

.arrow-down {
    color: #dc3545;
}

.stat-card .percentage {
    font-size: 0.9rem;
    margin-left: 5px;
}

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

[data-theme="dark"] .stat-label {
    color: #aaa;
}

/* Version history section */
.version-history {
    padding: 50px 20px;
    text-align: center;
}

.version-history h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.timeline {
    margin: 0 auto;
    max-width: 700px;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.timeline-date {
    width: 150px;
    text-align: right;
    padding-right: 30px;
    color: #666;
    font-size: 0.9rem;
}

[data-theme="dark"] .timeline-date {
    color: #aaa;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-content {
    width: 350px;
    text-align: left;
    padding-left: 30px;
}

.timeline-version {
    font-weight: 500;
    margin-bottom: 5px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: #666;
}

[data-theme="dark"] .timeline-desc {
    color: #aaa;
}

/* Note styling */
.note {
    background-color: var(--note-bg);
    border-radius: 4px;
    padding: 12px 15px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--note-color);
    display: flex;
    align-items: center;
}

.note-icon {
    margin-right: 10px;
}

/* 联系页面样式 */
.connect-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.connect-page h2 {
    text-align: center;
    font-size: 1.5rem;
    margin: 30px 0;
    font-weight: normal;
}

.connect-section {
    margin-bottom: 25px;
}

.connect-section h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: normal;
}

.demo-links {
    margin-bottom: 15px;
}

.demo-links a {
    margin-right: 20px;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-item-content {
    display: flex;
    align-items: center;
}

.copy-icon {
    margin-left: 8px;
    cursor: pointer;
    color: #666;
}

[data-theme="dark"] .copy-icon {
    color: #aaa;
}

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

.qr-code img {
    width: 150px;
    height: 150px;
}

.company-info {
    margin: 20px 0;
}

.usage-restrictions {
    margin-top: 30px;
}

.version-preview {
    margin-top: 20px;
}

.version-preview a {
    color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .feature-grid, .stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .help-item {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .feature-grid, .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-dot {
        left: 15px;
    }
    
    .timeline-date, .timeline-content {
        width: 100%;
        padding: 0;
        text-align: left;
    }
    
    .timeline-date {
        margin-bottom: 5px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .tab-navigation {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        margin-bottom: 15px;
    }
    
    .download-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .feature-grid, .stats {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons a {
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .help-item {
        width: 100%;
    }
}