/* =====================
   全局重置与基础样式
   ===================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0078d7;
    --primary-dark: #005a9e;
    --dark-bg: #2b2b2b;
    --dark-text: #ccc;
    --body-bg: #f5f5f5;
    --white: #fff;
    --border: #e5e5e5;
    --text-main: #333;
    --text-muted: #888;
    --radius: 6px;
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--body-bg);
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

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

kbd {
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 14px;
    font-family: monospace;
}

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

/* =====================
   导航栏
   ===================== */
.navbar {
    background-color: var(--dark-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.logo a:hover {
    color: #fff;
    text-decoration: none;
}

.navbar nav ul {
    display: flex;
    gap: 6px;
}

.navbar nav a {
    color: #bbb;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: #fff;
    background-color: rgba(255,255,255,0.12);
}

/* =====================
   按钮样式
   ===================== */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,120,215,0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.btn-xl {
    padding: 14px 32px;
    font-size: 17px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 8px 0;
}

.btn-text:hover {
    color: var(--primary);
    text-decoration: none;
}

/* =====================
   首页首屏 Hero
   ===================== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2b2b2b 60%, #16213e 100%);
    color: #fff;
    padding: 80px 0 60px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 280px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    color: #aaa;
    margin-bottom: 8px;
}

.hero-award {
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
    padding: 4px 10px;
    border: 1px solid #444;
    display: inline-block;
    border-radius: 20px;
}

.download-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pro-links {
    margin-top: 10px;
}

.pro-link {
    color: #aaa;
    font-size: 14px;
    border-bottom: 1px dashed #555;
}

.pro-link:hover {
    color: #fff;
}

.hero-image {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    margin: 0 auto;
}

/* =====================
   轮播图
   ===================== */
.carousel-section {
    background: #1e1e1e;
    padding: 40px 0;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 12px 18px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.2s;
}

.carousel-btn:hover {
    background: rgba(0,120,215,0.8);
}

.carousel-btn.prev {
    left: 16px;
}

.carousel-btn.next {
    right: 16px;
}

.carousel-dots {
    text-align: center;
    padding: 16px 0 0;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #555;
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active {
    background: var(--primary);
}

/* =====================
   核心功能区
   ===================== */
.features {
    background: var(--white);
    padding: 80px 0;
}

.feature-intro {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 60px;
}

.feature-intro h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.feature-intro p {
    font-size: 16px;
    color: #555;
    margin-bottom: 14px;
}

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

.feature-item {
    text-align: left;
}

.feature-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.feature-item ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: #555;
}

.feature-item ul li {
    margin-bottom: 6px;
}

.feature-item img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
}

/* =====================
   最新动态
   ===================== */
.news {
    background: var(--body-bg);
    padding: 60px 0;
}

.news h2 {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

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

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.news-card a {
    display: block;
    text-decoration: none;
    color: var(--text-main);
}

.news-card-body {
    padding: 20px;
}

.news-card h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-card time {
    font-size: 13px;
    color: var(--text-muted);
}

/* =====================
   FAQ 常见问题
   ===================== */
.faq {
    background: var(--white);
    padding: 60px 0;
}

.faq h2 {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

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

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::after {
    content: '+';
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item summary h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-main);
}

.faq-item p {
    margin-top: 12px;
    color: #555;
    padding-left: 4px;
}

/* =====================
   支持区域
   ===================== */
.support {
    background: var(--body-bg);
    padding: 60px 0;
    text-align: center;
}

.support h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 24px;
}

.support p {
    font-size: 15px;
    color: #555;
    margin-bottom: 12px;
}

/* =====================
   面包屑导航
   ===================== */
.breadcrumbs {
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.breadcrumbs li::after {
    content: '›';
    margin-left: 8px;
    color: #ccc;
}

.breadcrumbs li:last-child::after {
    content: '';
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

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

/* =====================
   页面主体
   ===================== */
.page-main {
    background: var(--white);
    min-height: calc(100vh - 200px);
    padding-bottom: 60px;
}

/* =====================
   列表页布局
   ===================== */
.list-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.list-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.list-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.item-thumb {
    flex-shrink: 0;
    width: 200px;
}

.item-thumb img {
    width: 200px;
    height: 130px;
    object-fit: cover;
    border-radius: var(--radius);
}

.item-content {
    flex: 1;
}

.item-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.item-content h2 a {
    color: var(--text-main);
    text-decoration: none;
}

.item-content h2 a:hover {
    color: var(--primary);
}

.item-content .summary {
    font-size: 15px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
}

.item-content .meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.read-more {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

/* 分页 */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination a {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-main);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a.active,
.pagination a:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* 侧边栏 */
.list-sidebar,
.article-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    background: var(--body-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-widget ul li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* =====================
   内容页布局
   ===================== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}

.article-main {
    max-width: 100%;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.4;
}

.article-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.article-body {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 18px;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 36px 0 16px;
    color: var(--text-main);
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 28px 0 12px;
    color: var(--text-main);
}

.article-body ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 18px;
}

.article-body ul li {
    margin-bottom: 6px;
}

.article-image {
    text-align: center;
    margin: 30px 0;
}

.article-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0 auto;
}

.img-caption {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
    gap: 12px;
}

.article-footer .tags a,
.article-footer .share a {
    margin-right: 8px;
}

.article-sidebar .sidebar-widget ul li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article-sidebar .sidebar-widget ul li time {
    font-size: 12px;
    color: var(--text-muted);
}

/* =====================
   下载页
   ===================== */
.download-page {
    padding-top: 10px;
}

.download-page h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.pro-section {
    background: var(--body-bg);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 50px;
    text-align: center;
}

.pro-section h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pro-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
}

.pro-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.pro-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    width: 280px;
    box-shadow: var(--shadow);
    text-align: left;
    transition: box-shadow 0.2s, transform 0.2s;
}

.pro-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.pro-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pro-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pro-card p {
    font-size: 13px;
    color: #666;
}

.badge-pro {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    vertical-align: middle;
}

.price {
    font-size: 14px;
    color: #333;
    margin: 16px 0;
}

.price-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.free-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.free-section h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
}

.download-main-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.download-sub-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.link-sm {
    font-size: 14px;
    color: var(--text-muted);
}

.link-sm:hover {
    color: var(--primary);
}

.download-note {
    font-size: 14px;
    color: var(--text-muted);
}

.history-section {
    margin-bottom: 40px;
}

.history-section h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.version-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.version-table caption {
    font-size: 13px;
    color: var(--text-muted);
    text-align: left;
    margin-bottom: 8px;
    caption-side: top;
}

.version-table th,
.version-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.version-table th {
    background-color: var(--body-bg);
    font-weight: 600;
    color: var(--text-main);
}

.version-table tr:hover td {
    background-color: #f0f7ff;
}

.badge {
    background: var(--primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 6px;
    vertical-align: middle;
}

/* =====================
   页脚
   ===================== */
footer {
    background-color: var(--dark-bg);
    color: var(--dark-text);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: #aaa;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-copyright {
    color: #666;
    font-size: 13px;
}

/* =====================
   响应式设计
   ===================== */
@media (max-width: 900px) {
    .list-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .list-sidebar,
    .article-sidebar {
        position: static;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

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

    .download-btns {
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav-inner {
        flex-direction: column;
        height: auto;
        padding: 12px 0;
        gap: 10px;
    }

    .navbar nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

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

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

    .pro-cards {
        flex-direction: column;
        align-items: center;
    }

    .pro-card {
        width: 100%;
        max-width: 320px;
    }

    .list-item {
        flex-direction: column;
    }

    .item-thumb {
        width: 100%;
    }

    .item-thumb img {
        width: 100%;
        height: 200px;
    }

    .article-header h1 {
        font-size: 24px;
    }

    .article-footer {
        flex-direction: column;
    }
}
