/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #F3F6FD 0%, #EAF2FF 100%);
    min-height: 100vh;
    color: #333;
}

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

/* 顶部通知 */
.notice {
    background: rgba(255, 255, 255, 0.1);
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* 搜索区域 */
.search-section {
    text-align: center;
    margin-bottom: 0; /* 取消外边距，避免出现与背景不同的空白 */
    padding: 24px 0 64px; /* 用 padding 替代间距，让背景延续到间距区域 */
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.10) 0%, rgba(29, 78, 216, 0.08) 100%); /* 淡蓝底色 */
}

.search-title {
    color: white;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 30px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.search-btn {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex; /* 确保图标与文字在按钮内部 */
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap; /* 防止文字换行到按钮外 */
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: none; /* 避免悬停/点击产生大位移 */
}


.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-category {
    font-size: 12px;
    color: var(--accent);
    font-weight: bold;
}

.suggestion-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.suggestion-desc {
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.highlight {
    background: #fff3cd;
    padding: 1px 2px;
    border-radius: 2px;
}

/* 平台导航 */
.platform-nav {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* === 主题焕新覆盖（新增于文件末尾，尽量不影响原有布局） === */
:root {
    --primary: #2563EB;           /* 纯蓝主色 */
    --primary-hover: #1D4ED8;     /* 悬停更深蓝 */
    --accent: #3B82F6;            /* 亮蓝点缀 */
    --text: #0F172A;              /* 更深的主文本 */
    --muted: #334155;             /* 次文本更清晰 */
    --border: rgba(15, 23, 42, 0.18);
    --surface: #ffffff;
    --surface-blur: rgba(255, 255, 255, 0.92);
    --shadow-xs: 0 2px 6px rgba(0,0,0,0.06);
    --shadow-sm: 0 6px 16px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 24px rgba(0,0,0,0.12);
    --radius: 12px;
}

body {
    color: var(--text);
}

/* 头部与通知优化 */
.header {
    background: var(--surface-blur);
    backdrop-filter: saturate(1.2) blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.logo { color: var(--accent); }
.notice { color: #4B5563; background: transparent; }

/* 平台导航升级：更现代的标签外观 */
.platform-nav {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.10) 0%, rgba(29, 78, 216, 0.08) 100%); /* 淡蓝底色 */
    padding: 24px 0 24px; /* 扩大上下内边距，让底色覆盖间距 */
    box-shadow: none;
}

.platform-tabs { gap: 12px; }
.platform-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px; /* 增大按钮块尺寸 */
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: #1F2937; /* 更深文本 */
    font-weight: 600; /* 增强可读性 */
    box-shadow: var(--shadow-xs);
    transition: all .2s ease;
}
.platform-tab .platform-icon { font-size: 18px; }
.platform-tab .platform-icon svg { width: 18px; height: 18px; display: block; }
.platform-tab:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.platform-tab.active { background: var(--primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-md); }

/* 搜索框统一风格 */
.search-input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 50px 12px 16px;
    color: var(--text);
}
.search-input::placeholder { color: var(--muted); opacity: 0.9; }
.search-btn {
    background: var(--primary);
    border: 1px solid var(--border);
    width: 44px; height: 42px; /* 提升按钮块尺寸 */
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    border-radius: 10px; /* 改为非圆形按钮 */
}
.search-btn:hover { background: var(--primary-hover); }
.search-suggestions { border: 1px solid var(--border); }

/* 宽屏优化：搜索输入与搜索按钮并排且紧贴（无缝衔接） */
@media (min-width: 1024px) {
    .search-box {
        display: flex;
        align-items: center;
        max-width: 720px;
        margin: 0 auto;
        position: relative;
        gap: 0; /* 与按钮贴合，无额外间距 */
    }
    .search-input {
        padding: 12px 16px; /* 去除为清除按钮预留的空间 */
        border-radius: 12px 0 0 12px; /* 左圆角，右直角贴按钮 */
    }
    .search-btn {
        position: static; /* 退出绝对定位，排成一行 */
        transform: none;
        height: 44px;
        width: auto;
        padding: 0 16px;
        border-radius: 0 12px 12px 0; /* 与输入框无缝拼接 */
        margin-left: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px; /* 图标与文字并排间距 */
        white-space: nowrap; /* 防止换行上下堆叠 */
    }
}

/* 移动端较宽屏（≥375px 且 <1024px）：按钮一行文字并贴着搜索框 */
@media (min-width: 375px) and (max-width: 1023px) {
    .search-box {
        display: flex;
        align-items: center;
        max-width: 680px;
        margin: 0 auto;
        position: relative;
        gap: 0; /* 与按钮贴合，无缝衔接 */
    }
    .search-input {
        padding: 12px 40px 12px 16px; /* 为清除按钮预留空间 */
        border-radius: 12px 0 0 12px; /* 左圆角，右直角贴按钮 */
    }
    .search-btn {
        position: static; /* 退出绝对定位，排成一行 */
        transform: none;
        height: 42px;
        width: auto;
        padding: 0 14px;
        border-radius: 0 12px 12px 0; /* 与输入框无缝拼接 */
        margin-left: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px; /* 图标与文字并排 */
        white-space: nowrap; /* 文字不换行 */
    }
}

/* 分类卡片焕新 */
.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.category-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.category-card .category-icon { font-size: 26px; }
.category-card .category-name { color: var(--text); font-weight: 600; }

/* 软件卡片焕新 */
.software-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.software-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: var(--accent); }

/* 分页按钮统一风格 */
.pagination { gap: 12px; }
.page-btn {
    background: var(--surface);
    color: #1F2937;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-xs);
    padding: 10px 14px; /* 增大按钮块尺寸 */
    font-weight: 600;
    transition: all .2s ease;
}
.page-btn:hover { transform: translateY(-0.5px); box-shadow: var(--shadow-sm); border-color: var(--accent); }
.page-btn.active { background: var(--primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-md); }

/* 返回按钮与标题微调 */
.back-btn {
    background: var(--primary);
    color: #fff;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all .2s ease;
}
.back-btn:hover { background: var(--primary-hover); }
.section-title { color: var(--text); }

/* 模态/弹窗与细节（如果存在）兼容更柔和的阴影）*/
.modal, .dialog { box-shadow: var(--shadow-md); border-radius: var(--radius); }

/* 响应式间距微调 */
@media (max-width: 768px) {
    .platform-tabs { gap: 10px; }
    .search-box { padding: 0 10px; }
}

/* 无障碍：焦点可见 */
.page-btn:focus, .back-btn:focus, .search-btn:focus, .platform-tab:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* === 主题焕新覆盖结束 === */

.platform-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s ease;
    color: var(--text);
    font-weight: 600;
    min-width: auto;
    box-shadow: var(--shadow-xs);
}

.platform-tab:hover {
    background: var(--surface);
    border-color: rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.platform-tab.active {
    background: var(--primary);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.platform-icon {
    font-size: 18px;
    margin-bottom: 0;
}

/* 分类网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
}

.category-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.category-card .category-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.category-card .category-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.category-card .category-count {
    font-size: 14px;
    color: #666;
}

/* 软件列表区域 */
.software-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.back-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.section-title {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

/* 平台内容 */
.platform-content {
    min-height: 500px;
}

.platform-info {
    text-align: center;
    padding: 60px 20px;
}

.coming-soon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.coming-soon-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.coming-soon h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
}

.coming-soon p {
    margin: 0;
    opacity: 0.9;
}

/* 教程页面样式 */
.tutorial-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 下载教程卡片式布局（参考图样式） */
.guide-wrapper { position: relative; }
.guide-content { display: grid; grid-auto-rows: auto; gap: 20px; overflow: visible; }
.guide-step {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}
.guide-text { text-align: center; margin-bottom: 12px; }
.guide-text h4 { color: var(--accent); font-size: 18px; margin: 0 0 8px; }
.guide-text p { color: #666; font-size: 14px; }
.guide-image img { width: 100%; border-radius: 10px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.06); }
.guide-nav { display: none; }

.tutorial-header {
    text-align: center;
    margin-bottom: 40px;
}

.tutorial-header h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 32px;
}

.tutorial-header p {
    color: #666;
    font-size: 16px;
}

.tutorial-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid var(--primary);
}

.tutorial-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.tutorial-step {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.step-description {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
}

.warning-icon {
    color: #f39c12;
    font-size: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

.tip {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
}

.tip-icon {
    color: #17a2b8;
    font-size: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* 主要内容区域 */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 0 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* 软件网格 */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.software-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.software-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.software-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
}

.software-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.software-version {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.software-date {
    color: #999;
    font-size: 12px;
    margin-bottom: 15px;
}

.download-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

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

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 14px;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.page-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    color: var(--accent);
}

.page-btn:hover::before {
    left: 100%;
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.page-btn.active::before {
    display: none;
}

.page-btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* 分页按钮特殊样式 */
.page-btn:first-child,
.page-btn:last-child {
    font-size: 16px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.95);
}

.page-btn:first-child:hover,
.page-btn:last-child:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination {
        gap: 4px;
        padding: 15px 0;
    }
    
    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        border-radius: 10px;
    }
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 24px 0;
    font-size: 14px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.footer .footer-content p { color: rgba(255,255,255,0.85); }
.footer a { color: #E0E7FF; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .search-title {
        font-size: 24px;
    }
    
    .category-list {
        gap: 8px;
    }
    
    .category-item {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    .software-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .main-content {
        padding:0 20px;
    }
}

@media (max-width: 480px) {
    /* 移动端窄屏：按钮与输入框贴合，并确保文字不溢出 */
    .search-box {
        display: flex;
        align-items: center;
        gap: 0;
        position: relative;
        max-width: 680px;
        margin: 0 auto;
    }
    .search-input {
        padding: 12px 14px; /* 移动端不再为清除按钮预留空间 */
        font-size: 14px;
        border-radius: 12px 0 0 12px;
    }
    .search-btn {
        position: static; /* 退出绝对定位，避免文字溢出 */
        transform: none;
        height: 40px;
        width: auto;
        padding: 0 12px;
        border-radius: 0 12px 12px 0; /* 与输入框无缝拼接 */
        margin-left: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
        box-sizing: border-box;
    }
    
    .back-btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    .platform-nav {
        padding: 12px 0;
    }
    
    .platform-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 10px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .platform-tab {
        padding: 8px 6px;
        min-width: auto;
        font-size: 12px;
        min-height: 55px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .platform-icon {
        font-size: 16px;
        margin-bottom: 4px;
    }
    .platform-icon svg { width: 16px; height: 16px; }
    
    .software-card {
        padding: 15px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .category-card .category-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .category-card .category-name {
        font-size: 14px;
    }
    
    .version-download-btn {
        padding: 10px 24px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    .download-channel-btn {
        padding: 10px 14px;
    }
    
    .channel-name {
        font-size: 12px;
    }
    
    .channel-speed {
        font-size: 10px;
    }
    
    .software-icon {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    /* 分页按钮在手机端更小 */
    .page-btn {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
        padding: 0 8px;
        border-radius: 8px;
    }
    
    .page-btn:first-child,
    .page-btn:last-child {
        font-size: 14px;
    }
    
    .pagination {
        gap: 3px;
        padding: 10px 0;
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 96%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    padding: 20px 25px 0px 25px;
}

.close {
    color: rgb(0, 0, 0);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 25px 30px 35px 30px;
}

.modal-info {
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.modal-body p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #666;
}

/* 版本选择器样式 */
.version-selector {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.version-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.version-tab {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.version-tab:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.version-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.version-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.version-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.version-info-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.version-info-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.version-info-value {
    font-weight: bold;
    color: #333;
}

.version-features h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.features-list {
    display: grid;
    gap: 8px;
}

.feature-item {
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid var(--primary);
    font-size: 14px;
    color: #555;
}

.version-download-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.version-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 下载渠道样式 */
.download-channels {
    margin-top: 20px;
}

.download-channels-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.download-buttons {
    display: flex !important;
    gap: 12px;
    justify-content: center;
    visibility: visible !important;
}

.download-channel-btn {
    flex: 1;
    max-width: 180px;
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: block !important;
    visibility: visible !important;
}

.download-channel-btn.official {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.download-channel-btn.cloud {
    background: linear-gradient(135deg, #60A5FA 0%, #22D3EE 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.download-channel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.download-channel-btn.official:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.download-channel-btn.cloud:hover {
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.channel-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.channel-speed {
    font-size: 12px;
    opacity: 0.9;
    font-weight: normal;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .download-channel-btn {
        max-width: none;
        padding: 12px 16px;
    }
    
    .channel-name {
        font-size: 13px;
    }
    
    .channel-speed {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 98%;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-body {
        padding: 20px 25px 30px 25px;
    }
    
    .close {
        width: 35px;
        height: 35px;
        font-size: 28px;
    }
}

/* 搜索结果样式 */
.search-results-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-results-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.search-results-header p {
    color: #666;
    margin-bottom: 15px;
    font-size: 16px;
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-no-results h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.search-no-results p {
    color: #666;
    font-size: 16px;
}

.software-platform {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* 搜索结果响应式 */
@media (max-width: 768px) {
    .search-results-header {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .search-results-header h2 {
        font-size: 20px;
    }
    
    .search-results-header p {
        font-size: 14px;
    }
    
    .search-no-results {
        padding: 40px 15px;
    }
    
    .search-no-results h2 {
        font-size: 20px;
    }
    
    .search-no-results p {
        font-size: 14px;
    }
}

/* 超小屏（<375px）：也与搜索框贴合，保证图标与文字都在按钮内部显示 */
@media (max-width: 374px) {
    .search-box {
        display: flex;
        align-items: center;
        margin: 0 auto;
        position: relative;
        gap: 0;
    }
    .search-input {
        padding: 12px 40px 12px 14px; /* 为清除按钮留空间 */
        border-radius: 12px 0 0 12px;
    }
    .search-btn {
        position: static;
        transform: none;
        height: 40px;
        width: auto;
        padding: 0 12px;
        border-radius: 0 12px 12px 0;
        margin-left: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
    }
}
    
    .version-info {
        grid-template-columns: 1fr;
    }
    
    .version-tabs {
        gap: 8px;
    }
    
    .version-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
/* 响应式设计 */
@media (max-width: 768px) {
    .download-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .download-channel-btn {
        max-width: 100%;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 92%;
    }
    
    .version-tabs {
        gap: 8px;
    }
    
    .version-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
}
.guide-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 4px;
}
.guide-step h4 {
    color: #3498db;
    font-size: 1.2em;
    margin-bottom: 10px;
}
.guide-step p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}