/* 基础重置 —— 延续原有架构，微调色系更硬核/游戏感 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    font-size: 10px;
    line-height: 1.3;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 顶栏 - 灰色调保留，但加深一点 */
.header {
    background: #f2f4f8;
    padding: 6px 0 5px;
    border-bottom: 1px solid #d0d7de;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-content {
    padding: 0 12px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 16px;
    color: #1f2a3a;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.menu-toggle:hover {
    background: #e2e6ea;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 12px;
    color: #1e2b3c;
}

.logo-img {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    object-fit: contain;
}

.header-stats {
    display: flex;
    gap: 8px;
    font-size: 8px;
    color: #5a6a7a;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #ffffff;
    padding: 3px 6px;
    border-radius: 8px;
    border: 0.5px solid #cbd2d9;
    font-weight: 500;
}

/* 软件信息头部 —— 调整风格 Xmod 硬核风 */
.software-header-section {
    padding: 12px 12px 8px;
}

.software-header-container {
    background: #f4f7fb;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #d0d9e2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.software-header-top {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.software-icon-large {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid #b9c4ce;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.software-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.software-title-area {
    flex: 1;
}

.software-name {
    font-weight: 800;
    font-size: 15px;
    color: #0e2a3a;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.software-company {
    font-size: 10px;
    color: #6e7e8e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.software-company i {
    color: #aa5c3b;
    font-size: 9px;
}

.software-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.software-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: #3e4d5e;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 8px;
    border: 0.8px solid #c8d0d9;
}

.software-meta-item i {
    font-size: 9px;
    color: #6f7c8a;
}

.software-description {
    font-size: 10px;
    color: #2c3e4e;
    line-height: 1.45;
    margin-bottom: 14px;
    background: rgba(230, 242, 255, 0.3);
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 3px solid #ff8c5a;
}

.software-action-btns {
    display: flex;
    gap: 8px;
}

.software-action-btn {
    padding: 6px 12px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #b7c2cd;
    background: #ffffff;
    color: #1f3a4e;
    text-decoration: none;
}

.software-action-btn.primary {
    background: #1e2f41;
    color: white;
    border-color: #0a1a27;
}
.software-action-btn.primary i {
    color: #ffc107;
}

.software-action-btn:hover {
    background: #e5ecf3;
}
.software-action-btn.primary:hover {
    background: #263b4e;
}

/* 内容卡片 */
.content-section {
    padding: 0 12px 9px;
}

.content-card {
    background: #f8fafd;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 9px;
    border: 1px solid #dee5ed;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.card-title {
    font-size: 11px;
    font-weight: 700;
    color: #1f3a4c;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 6px;
}

.card-title i {
    font-size: 11px;
    color: #ff7e5f;
}

/* 软件介绍 */
.software-intro-text {
    font-size: 10px;
    color: #2d4252;
    line-height: 1.5;
    margin-bottom: 12px;
}

.highlight-box {
    background: #edf2f9;
    border-radius: 10px;
    padding: 12px;
    border-left: 4px solid #ff8f5f;
    margin: 12px 0 6px;
}

.highlight-title {
    font-size: 10px;
    font-weight: 700;
    color: #0e2e3f;
    margin-bottom: 8px;
}

.highlight-list {
    padding-left: 16px;
    margin: 0;
}

.highlight-list li {
    font-size: 9px;
    color: #3b5565;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* 功能特性 —— 卡片风格 */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
}

.feature-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #e1e9f0;
    transition: all 0.18s;
}

.feature-item:hover {
    background: #f1f7fd;
    border-color: #ffaa80;
    transform: translateY(-2px);
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #e9f0f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 15px;
    color: #cc6b3c;
    border: 1px solid #d6e0e9;
}

.feature-title {
    font-weight: 700;
    font-size: 10.5px;
    color: #1e3645;
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 9px;
    color: #546e7a;
    line-height: 1.35;
}

/* 系统要求 */
.requirements-container {
    margin-top: 8px;
}

.requirements-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e2eaf0;
}

.requirements-title {
    font-size: 10px;
    font-weight: 700;
    color: #1a3343;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.requirements-title i {
    font-size: 10px;
    color: #e06b3d;
}

.requirements-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.spec-box {
    background: #f5f9fc;
    border-radius: 8px;
    padding: 8px;
    border: 0.8px solid #dae2ec;
}

.spec-label {
    font-size: 8px;
    color: #657b89;
    margin-bottom: 4px;
    font-weight: 600;
}

.spec-value {
    font-size: 10px;
    color: #1e3a4e;
    font-weight: 600;
}

/* 版本历史 —— 适配mod更新日志 */
.version-timeline {
    position: relative;
    padding-left: 18px;
    margin-top: 8px;
}

.version-timeline:before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #b0c4ce, #9fb4c2);
}

.version-item {
    position: relative;
    margin-bottom: 12px;
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    border-left: 4px solid #e2744a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.version-item:before {
    content: '';
    position: absolute;
    left: -20px;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2744a;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(226, 116, 74, 0.25);
    z-index: 1;
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.version-name {
    font-size: 10.5px;
    font-weight: 800;
    color: #1e2f3c;
}

.version-date {
    font-size: 8px;
    color: #6f8695;
    background: #ecf1f5;
    padding: 2px 8px;
    border-radius: 12px;
    border: 0.8px solid #cddae3;
}

.version-changes {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.version-changes li {
    margin-bottom: 5px;
    padding-left: 14px;
    position: relative;
    font-size: 9px;
    color: #44606e;
    line-height: 1.35;
}

.version-changes li:before {
    content: '›';
    position: absolute;
    left: 2px;
    color: #e2744a;
    font-size: 12px;
    font-weight: 700;
}

/* 常见问题 */
.faq-list {
    margin-top: 8px;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid #dee7ef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.15s;
}

.faq-item:hover {
    border-color: #bb8a76;
}

.faq-question {
    padding: 12px;
    background: #ffffff;
    font-weight: 700;
    color: #254356;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
}

.faq-question i {
    transition: transform 0.3s;
    color: #ff7e4a;
    font-size: 10px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 12px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #44606e;
    font-size: 9px;
    line-height: 1.45;
    background: #fafcfd;
}

.faq-item.active .faq-answer {
    padding: 12px;
    max-height: 300px;
    border-top: 1px solid #e2eaf0;
}

/* 侧边导航栏 —— 毛玻璃保留，微调 */
.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    box-shadow: 2px 0 18px rgba(0,0,0,0.18);
    transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    padding: 0;
    border-right: 1px solid rgba(200, 200, 200, 0.4);
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,20,30,0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    text-align: center;
    padding: 18px 12px 20px;
    background: rgba(240, 246, 250, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e06b3d, #ffac7a, #e06b3d);
}

.user-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 15px;
    font-weight: 800;
    color: #142b36;
    margin-bottom: 5px;
    text-shadow: 0 1px 3px rgba(255,255,255,0.6);
}

.user-status {
    font-size: 10px;
    color: #c54c1e;
    background: rgba(255, 235, 220, 0.8);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #ffc6aa;
    font-weight: 600;
}

.nav-menu {
    padding: 0 16px 20px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 0 0 14px 14px;
    margin: 0 8px 12px;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 8px rgba(0,0,0,0.04);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    margin-bottom: 6px;
    border-radius: 10px;
    color: #28485b;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(210, 222, 230, 0.7);
}

.nav-item:hover {
    background: rgba(245, 240, 235, 0.9);
    color: #b1461c;
    transform: translateX(4px);
    border-color: #ffaa80;
}

.nav-item i {
    margin-right: 12px;
    font-size: 14px;
    width: 20px;
    text-align: center;
    color: #b1542e;
}

.nav-item.active {
    background: rgba(255, 225, 210, 0.7);
    color: #9f401f;
    border-left: 4px solid #e5612a;
    font-weight: 700;
}

.sidebar-footer {
    margin-top: 8px;
    padding: 15px;
    background: rgba(255, 245, 240, 0.7);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    border-radius: 12px 12px 0 0;
    margin: 8px;
    border: 1px solid rgba(200, 160, 140, 0.2);
}

.app-version {
    font-size: 10px;
    color: #5a5f6e;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #d0c2bc;
}

/* 搜索框 */
.search-container {
    position: relative;
}

.search-box {
    width: 100%;
    padding: 7px 32px 7px 12px;
    border-radius: 12px;
    border: 0.8px solid #cbd5e1;
    background: #ffffff;
    font-size: 10px;
    color: #1f3a4e;
    transition: all 0.15s;
}

.search-box:focus {
    outline: none;
    background: white;
    border-color: #ff9f6e;
    box-shadow: 0 0 0 2px rgba(255, 140, 60, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a06b58;
    font-size: 11px;
}

/* 快速筛选 */
.quick-filter {
    padding: 8px 12px;
    background: #f2f6fa;
    border-bottom: 1px solid #dbebf0;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 4px 9px;
    background: #ffffff;
    border: 0.8px solid #c4d0da;
    border-radius: 10px;
    font-size: 8.5px;
    color: #2f5166;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 600;
}

.filter-chip.active {
    background: #1e3b4c;
    color: white;
    border-color: #1e3b4c;
}

/* 底部操作栏 */
.action-bar {
    padding: 10px 12px 14px;
    display: flex;
    gap: 8px;
    background: #f5f8fb;
    border-top: 1px solid #dfe8f0;
}

.action-btn {
    flex: 1;
    background: #ffffff;
    border: 1px solid #cbd7e2;
    border-radius: 10px;
    padding: 8px 5px;
    font-size: 9px;
    color: #1f3a4e;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 600;
}

.action-btn:hover {
    background: #e6eef6;
    border-color: #ad9e94;
}

.page-content {
    padding: 12px;
    display: none;
}
.page-content.active { display: block; }

/* 响应式 */
@media (max-width: 480px) {
    .sidebar { width: 240px; left: -240px; }
    .software-icon-large { width: 50px; height: 50px; }
    .features-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
}