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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.75;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   顶部导航
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.08);
    padding: 0 48px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .logo {
    font-size: 24px;
    font-weight: 700;
    color: #FF6B35;
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar .logo img { height: 37px; width: auto; }
.navbar .nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    color: #555;
}
.navbar .nav-links a { transition: color 0.25s ease; }
.navbar .nav-links a:hover { color: #FF6B35; }
.navbar .nav-links a.active { color: #FF6B35; }
.navbar .download-btn {
    background-color: #FF6B35;
    color: #fff !important;
    padding: 9px 26px;
    border-radius: 40px;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.24);
}
.navbar .download-btn:hover { background-color: #e4592a; }

/* ============================================================
   底部页脚
   ============================================================ */
.site-footer {
    background: #282828;
    color: #bbb;
    padding: 32px 20px;
    text-align: center;
    font-size: 14px;
    line-height: 2;
}
.site-footer a { color: #bbb; transition: color 0.25s ease; }
.site-footer a:hover { color: #FF6B35; }

/* ============================================================
   通用容器
   ============================================================ */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   通用按钮
   ============================================================ */
.btn-primary {
    background: #FF6B35;
    color: #fff;
    padding: 17px 50px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3);
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.btn-primary:hover {
    background: #e4592a;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.36);
}
.btn-secondary {
    background: #ffffff;
    color: #333333;
    border: 2px solid #e7e7e7;
    padding: 17px 42px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn-secondary:hover {
    border-color: #FF6B35;
    color: #FF6B35;
    transform: translateY(-3px);
}

/* ============================================================
   首页 - Hero 区域
   ============================================================ */
.hero {
    padding-top: 160px;
    padding-bottom: 90px;
    padding-left: 24px;
    padding-right: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 15% 15%, rgba(255,107,53,0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 85%, rgba(255,107,53,0.04) 0%, transparent 55%),
        linear-gradient(180deg, #fffbf8 0%, #ffffff 100%);
}
.hero::before {
    content: "";
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,53,0.04), transparent 70%);
    top: -200px; right: -240px;
    z-index: 0;
}
.hero::after {
    content: "";
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,53,0.03), transparent 70%);
    bottom: -180px; left: -220px;
    z-index: 0;
}
.hero > * { position: relative; z-index: 2; }
.brand-name {
    font-size: 52px;
    font-weight: 800;
    color: #FF6B35;
    letter-spacing: 6px;
    margin-bottom: 5px;
    text-shadow: 0 2px 20px rgba(255,107,53,0.08);
}
.hero-badge {
    display: inline-block;
    background: rgba(255,107,53,0.11);
    color: #FF6B35;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,107,53,0.12);
    margin-bottom: 28px;
}
.hero h1 {
    font-size: 58px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.12;
    margin-bottom: 22px;
}
.hero h1 span { color: #FF6B35; }
.hero-desc {
    font-size: 20px;
    color: #666;
    max-width: 720px;
    margin: 0 auto 36px;
}
.hero-cta-group {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.version-tagg {
    display: block;
    width: 100%;
    font-size: 14px;
    color: #999;
    margin-bottom: 40px;
}
.copyright-notice {
    display: inline-block;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,107,53,0.12);
    border-radius: 12px;
    padding: 12px 32px;
    font-size: 14px;
    color: #777;
}
.copyright-notice strong { color: #333; }

/* ============================================================
   首页 - 主题展示
   ============================================================ */
.theme-showcase {
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 24px 40px;
}
.theme-showcase .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.theme-showcase .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
}
.theme-showcase .section-title span { color: #FF6B35; }
.theme-showcase .more-btn {
    color: #FF6B35;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}
.theme-showcase .more-btn:hover { gap: 10px; }
.theme-showcase .more-btn i { font-size: 13px; }

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.theme-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all .3s;
    border: 1px solid #f0f0f0;
    position: relative;
}
.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.theme-card .thumb-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f5f5f5;
}
.theme-card .thumb-wrap .thumb {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
    cursor: pointer;
}
.theme-card:hover .thumb-wrap .thumb { transform: scale(1.03); }
.theme-card .thumb-wrap .category-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: #FF6B35;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}
.theme-card .body { padding: 18px 20px; }
.theme-card .name {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.theme-card .name a { color: #333; }
.theme-card .name a:hover { color: #FF6B35; }
.theme-card .version {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #999;
}
.theme-card .desc {
    color: #888;
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.theme-card .actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.theme-card .actions .btn-sm {
    flex: 1;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .3s;
    font-weight: 500;
}
.theme-card .actions .btn-doc-sm { background: #e3f2fd; color: #1976d2; border: 1px solid #bbdefb; }
.theme-card .actions .btn-doc-sm:hover { background: #bbdefb; }
.theme-card .actions .btn-screenshot-sm { background: #e8f5e9; color: #228a31; border: 1px solid #c8e6c9; }
.theme-card .actions .btn-screenshot-sm:hover { background: #c8e6c9; }
.theme-card .actions .btn-download-sm { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.theme-card .actions .btn-download-sm:hover { background: #ffe0b2; }

/* ============================================================
   首页 - 功能特色
   ============================================================ */
.features {
    max-width: 1240px;
    margin: 0 auto;
    padding: 88px 24px;
}
.section-title-center {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}
.section-title-center span { color: #FF6B35; }
.section-sub {
    text-align: center;
    font-size: 18px;
    color: #888;
    margin-bottom: 52px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.feature-card {
    background: #fcfafa;
    border-radius: 18px;
    padding: 36px 30px;
    border: 1px solid #f1f1f1;
    transition: 0.28s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 42px rgba(0,0,0,0.06);
    border-color: rgba(255,107,53,0.22);
}
.feature-card .icon {
    font-size: 38px;
    color: #FF6B35;
    margin-bottom: 18px;
}
.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 15px;
    color: #707070;
}

/* ============================================================
   首页 - 统计区块
   ============================================================ */
.stats-block {
    background: #282828;
    padding: 64px 24px;
}
.stats-wrap {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-item { text-align: center; }
.stat-num {
    font-size: 44px;
    font-weight: 700;
    color: #FF6B35;
}
.stat-label {
    font-size: 15px;
    color: #aaa;
    margin-top: 6px;
}

/* ============================================================
   首页 - 下载区块
   ============================================================ */
.download-area {
    padding: 88px 24px;
    text-align: center;
    background: linear-gradient(180deg, #fff9f5, #ffffff);
}
.download-box {
    max-width: 620px;
    margin: 36px auto 0;
    background: #ffffff;
    border-radius: 22px;
    padding: 44px 50px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.06);
    border: 1px solid #f3f3f3;
}
.version-info-row {
    display: flex;
    justify-content: center;
    gap: 42px;
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.version-info-row strong { color: #222; }
.hint-text {
    margin-top: 18px;
    font-size: 14px;
    color: #aaa;
}

/* ============================================================
   首页 - 截图弹窗
   ============================================================ */
.screenshot-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.screenshot-modal.show { display: flex; }
.screenshot-modal .modal-content {
    position: relative;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.screenshot-modal .modal-close {
    position: absolute;
    top: 24px; right: 32px;
    background: none;
    border: none;
    font-size: 40px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    z-index: 10;
    padding: 0 10px;
    line-height: 1;
}
.screenshot-modal .modal-close:hover { color: #fff; }
.screenshot-modal .modal-header {
    position: absolute;
    top: 24px; left: 32px;
    z-index: 10;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    opacity: 0.8;
}
.screenshot-modal .modal-header .count {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.6;
    margin-left: 12px;
}
.screenshot-modal .image-wrap {
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 80px 100px;
}
.screenshot-modal .image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
    transition: opacity .3s ease;
    user-select: none;
}
.screenshot-modal .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    width: 60px; height: 60px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}
.screenshot-modal .arrow:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}
.screenshot-modal .arrow-prev { left: 20px; }
.screenshot-modal .arrow-next { right: 20px; }
.screenshot-modal .arrow.hidden { opacity: 0; pointer-events: none; }
.screenshot-modal .thumb-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    padding: 8px 4px;
}
.screenshot-modal .thumb-nav .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all .3s ease;
    border: none;
    padding: 0;
}
.screenshot-modal .thumb-nav .dot.active {
    background: #FF6B35;
    transform: scale(1.2);
}

/* ============================================================
   主题列表页
   ============================================================ */
.theme-page {
    padding-top: 110px;
    padding-bottom: 60px;
}
.theme-page-header {
    text-align: center;
    margin-bottom: 50px;
}
.theme-page-header .brand-name {
    font-size: 42px;
    font-weight: 800;
    color: #FF6B35;
    letter-spacing: 4px;
    margin-bottom: 10px;
}
.theme-page-header .subtitle {
    font-size: 17px;
    color: #666;
    margin-bottom: 16px;
}
.theme-page-header .count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 107, 53, 0.15);
}

.theme-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 12px;
    background: #fff;
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}
.theme-toolbar .categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.theme-toolbar .search-area {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.theme-toolbar .btn-sm {
    padding: 8px 20px;
    font-size: 15px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all .3s;
}
.theme-toolbar .btn-primary-cat {
    background: #FF6B35;
    color: #fff;
}
.theme-toolbar .btn-secondary-cat {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}
.theme-toolbar .btn-secondary-cat:hover {
    background: #e8e8e8;
    border-color: #FF6B35;
    color: #FF6B35;
}
.theme-toolbar .form-control {
    padding: 8px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color .3s;
}
.theme-toolbar .form-control:focus { border-color: #FF6B35; }
.theme-toolbar .btn-search {
    background: #FF6B35;
    color: #fff;
    padding: 8px 22px;
    font-size: 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.theme-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.pagination-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 12px;
}
.pagination-wrap .pagination-info {
    font-size: 14px;
    color: #999;
}
.pagination-wrap .pagination-info strong { color: #333; }
.pagination-wrap .pagination-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.pagination-wrap .pagination-links a,
.pagination-wrap .pagination-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all .3s;
}
.pagination-wrap .pagination-links a:hover {
    border-color: #FF6B35;
    color: #FF6B35;
}
.pagination-wrap .pagination-links .current {
    background: #FF6B35;
    color: #fff;
    border-color: #FF6B35;
}
.pagination-wrap .pagination-links .disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination-wrap .pagination-links .ellipsis {
    border: none;
    color: #999;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}
.empty-state i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    color: #ddd;
}

/* ============================================================
   版本更新页
   ============================================================ */
.version-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 110px 24px 60px;
    box-sizing: border-box;
}
.version-page-header {
    text-align: center;
    margin-bottom: 50px;
}
.version-page-header .brand-name {
    font-size: 42px;
    font-weight: 800;
    color: #FF6B35;
    letter-spacing: 4px;
    margin-bottom: 10px;
}
.version-page-header .subtitle {
    font-size: 17px;
    color: #666;
    margin-bottom: 16px;
}
.version-page-header .latest-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 107, 53, 0.15);
}

.version-timeline {
    position: relative;
    padding-left: 40px;
}
.version-timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(180deg, #FF6B35 0%, rgba(255, 107, 53, 0.1) 100%);
    border-radius: 2px;
}
.version-item {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}
.version-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.2);
}
.version-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 32px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #FF6B35;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #FF6B35;
    z-index: 1;
}
.version-item.latest::before {
    background: #FF6B35;
    box-shadow: 0 0 0 2px #FF6B35, 0 0 0 6px rgba(255, 107, 53, 0.15);
    animation: versionPulse 2s ease-in-out infinite;
}
@keyframes versionPulse {
    0%, 100% { box-shadow: 0 0 0 2px #FF6B35, 0 0 0 6px rgba(255, 107, 53, 0.15); }
    50% { box-shadow: 0 0 0 2px #FF6B35, 0 0 0 10px rgba(255, 107, 53, 0.05); }
}
.version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f5f5f5;
}
.version-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.version-number {
    font-size: 22px;
    font-weight: 800;
    color: #333;
    letter-spacing: 0.5px;
}
.version-number .v-prefix {
    color: #FF6B35;
    font-size: 18px;
    margin-right: 2px;
}
.version-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.version-tag.latest {
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}
.version-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #999;
}
.version-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.version-meta .meta-item i {
    color: #ccc;
    font-size: 12px;
}
.version-description {
    font-size: 14.5px;
    line-height: 1.9;
    color: #555;
}
.version-description p { margin-bottom: 8px; }
.version-description p:last-child { margin-bottom: 0; }
.version-description h2,
.version-description h3,
.version-description h4,
.version-description h5 {
    font-size: 15.5px;
    font-weight: 700;
    color: #333;
    margin: 14px 0 6px;
}
.version-description ul,
.version-description ol {
    margin: 8px 0 8px 22px;
    color: #555;
}
.version-description li { margin-bottom: 4px; }
.version-description strong { color: #333; font-weight: 600; }
.version-description code {
    background: #fff5f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #FF6B35;
    font-family: 'Courier New', monospace;
}
.version-description a { color: #FF6B35; text-decoration: underline; }
.version-description img { border-radius: 8px; margin: 10px 0; }
.version-description blockquote {
    border-left: 4px solid #FF6B35;
    padding: 8px 16px;
    margin: 10px 0;
    background: #fff8f5;
    border-radius: 0 6px 6px 0;
    color: #666;
}
.version-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}
.version-description th,
.version-description td {
    border: 1px solid #eee;
    padding: 8px 12px;
    text-align: left;
}
.version-description th {
    background: #fafafa;
    font-weight: 600;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-wrap { grid-template-columns: repeat(2, 1fr); }
    .theme-grid { grid-template-columns: repeat(2, 1fr); }
    .screenshot-modal .image-wrap { padding: 60px 50px; }
    .screenshot-modal .arrow { width: 40px; height: 40px; font-size: 18px; }
    .screenshot-modal .arrow-prev { left: 8px; }
    .screenshot-modal .arrow-next { right: 8px; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .navbar .nav-links { display: none; }
    .container { padding: 0 16px; }

    .hero { padding-top: 130px; padding-bottom: 70px; }
    .hero h1 { font-size: 34px; }
    .hero-desc { font-size: 17px; }
    .brand-name { font-size: 38px; letter-spacing: 3px; }
    .features-grid { grid-template-columns: 1fr; }
    .download-box { padding: 30px 22px; }
    .copyright-notice { padding: 10px 18px; font-size: 13px; }
    .version-info-row { flex-direction: column; gap: 6px; }
    .theme-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .theme-card .thumb-wrap { height: 160px; }
    .theme-showcase .section-header { flex-direction: column; gap: 10px; text-align: center; }
    .theme-showcase .section-title { font-size: 26px; }

    .theme-page { padding-top: 100px; padding-bottom: 40px; }
    .theme-page-header .brand-name { font-size: 30px; letter-spacing: 2px; }
    .theme-page-header .subtitle { font-size: 15px; }
    .theme-toolbar { flex-direction: column; align-items: stretch; }
    .theme-toolbar .categories { justify-content: center; }
    .theme-toolbar .search-area { justify-content: center; }
    .theme-page-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .pagination-wrap { flex-direction: column; align-items: center; text-align: center; }

    .version-page { padding-top: 100px; padding-bottom: 40px; }
    .version-page-header .brand-name { font-size: 30px; letter-spacing: 2px; }
    .version-page-header .subtitle { font-size: 15px; }
    .version-timeline { padding-left: 30px; }
    .version-timeline::before { left: 8px; }
    .version-item { padding: 20px 20px; }
    .version-item::before { left: -26px; top: 24px; width: 12px; height: 12px; }
    .version-number { font-size: 18px; }
    .version-meta { font-size: 12px; gap: 12px; }
    .version-description { font-size: 13.5px; }
}

@media (max-width: 480px) {
    .brand-name { font-size: 30px; letter-spacing: 2px; }
    .theme-grid { grid-template-columns: 1fr; }
    .screenshot-modal .image-wrap { padding: 40px 15px; }
    .theme-card .actions { flex-wrap: wrap; }
    .theme-card .actions .btn-sm { flex: 1 1 30%; font-size: 11px; padding: 4px 6px; }

    .theme-page-header .brand-name { font-size: 24px; }
    .theme-page-grid { grid-template-columns: 1fr; }

    .version-page-header .brand-name { font-size: 24px; }
    .version-item { padding: 16px 16px; }
    .version-header { flex-direction: column; align-items: flex-start; }
    .version-meta { flex-wrap: wrap; }
}

/* ============================================
   全屏截图查看器（主题截图 / 主题手册通用）
============================================ */
.screenshot-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.screenshot-lightbox.show {
    display: block;
}

/* 顶部信息栏 */
.screenshot-lightbox .lb-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.screenshot-lightbox .lb-title {
    font-size: 15px;
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.screenshot-lightbox .lb-count {
    font-size: 13px;
    opacity: 0.75;
    padding: 3px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}
.screenshot-lightbox .lb-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0 8px;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.screenshot-lightbox .lb-close:hover {
    opacity: 1;
}

/* 滚动查看区：图片宽度 100%，可向下滚动 */
.screenshot-lightbox .lb-scroll {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.screenshot-lightbox .lb-scroll img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* 左右箭头按钮：固定在屏幕两侧 */
.screenshot-lightbox .lb-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffd5c6;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.screenshot-lightbox .lb-arrow:hover {
    background: rgba(255, 107, 53, 0.85);
    border-color: #FF6B35;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.5);
}
.screenshot-lightbox .lb-prev {
    left: 20px;
}
.screenshot-lightbox .lb-next {
    right: 20px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .screenshot-lightbox .lb-topbar {
        height: 50px;
        padding: 0 12px;
        gap: 8px;
    }
    .screenshot-lightbox .lb-title {
        font-size: 13px;
    }
    .screenshot-lightbox .lb-count {
        font-size: 11px;
        padding: 2px 8px;
    }
    .screenshot-lightbox .lb-close {
        font-size: 26px;
    }
    .screenshot-lightbox .lb-scroll {
        top: 50px;
    }
    .screenshot-lightbox .lb-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .screenshot-lightbox .lb-prev {
        left: 8px;
    }
    .screenshot-lightbox .lb-next {
        right: 8px;
    }
}
.theme-card .actions .btn-demo-sm {background: #ffcece;color: #831212;border: 1px solid #ff9f7c;}
.theme-card .actions .btn-demo-sm:hover { background: #ffa4a4; }
.theme-card .desc-link { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #888; text-decoration: none; transition: color .25s; }
.theme-card .desc-link:hover { color: #FF6B35; }