﻿/* =============================================
   style.css - 软件发布站前台样式
   慕华蓝色系风格
============================================= */

/* ---- Reset ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---- 变量 ---- */
:root {
    --blue:         #1a6fc4;
    --blue-dark:    #0e4a8a;
    --blue-light:   #e8f0fe;
    --blue-accent:  #7dd3fc;
    --bg:           #f5f5f5;
    --white:        #ffffff;
    --text:         #333333;
    --text-2:       #555555;
    --text-3:       #888888;
    --border:       #e8e8e8;
    --r:            8px;
    --r-sm:         4px;
    --shadow:       0 2px 12px rgba(0,0,0,0.05);
    --t:            0.2s ease;
    --max-w:        1200px;
}

/* ---- 基础 ---- */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: 'Microsoft YaHei', '微软雅黑', -apple-system, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}
a {
    color: var(--blue);
    text-decoration: none;
    transition: all var(--t);
}
a:hover { opacity: 0.85; }
img { display: block; max-width: 100%; }

/* ---- 容器 ---- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ================================================
   顶部导航（蓝色深色导航栏）
================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: var(--blue);
    height: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.site-header .hd-inner {
    display: flex;
    align-items: center;
    height: 50px;
    gap: 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo:hover { opacity: 0.9; }
.logo-img { height: 42px; width: auto; max-width: 140px; display: block; object-fit: contain; }
.logo-text-fb {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* 搜索框（蓝色导航内） */
.hd-search {
    flex: 1;
    max-width: 380px;
    margin-left: 24px;
    position: relative;
}
.hd-search-input {
    display: block;
    width: 100%;
    height: 32px;
    border: none;
    border-radius: 16px;
    background: rgba(255,255,255,0.15);
    padding: 0 36px 0 14px;
    font-size: 0.84rem;
    font-family: inherit;
    color: #fff;
    outline: none;
    transition: background var(--t);
}
.hd-search-input::placeholder { color: rgba(255,255,255,0.55); }
.hd-search-input:focus { background: rgba(255,255,255,0.25); }
.hd-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t);
    line-height: 1;
}
.hd-search-btn:hover { background: rgba(255,255,255,0.35); }

/* 导航链接（蓝色导航内） */
.hd-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    flex-shrink: 0;
}
.hd-nav > a,
.hd-nav > .hd-dropdown > .hd-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0 14px;
    height: 50px;
    line-height: 50px;
    transition: background var(--t), color var(--t);
    white-space: nowrap;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}
.hd-nav > a:hover,
.hd-nav > .hd-dropdown > .hd-dropdown-trigger:hover,
.hd-nav > a.active,
.hd-nav > .hd-dropdown > .hd-dropdown-trigger.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    opacity: 1;
}
.hd-nav .nav-support {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #fff !important;
    font-weight: 600;
    border-radius: 0;
    padding: 0 16px;
    height: 50px;
    line-height: 50px;
}
.hd-nav .nav-support:hover { opacity: 0.85; background: linear-gradient(135deg, #0ea5e9, #0284c7); }

/* 导航下拉菜单 */
.hd-dropdown {
    position: relative;
    display: inline-block;
}
.hd-drop-arrow {
    font-size: 0.7em;
    transition: transform 0.2s;
    display: inline-block;
    margin-left: 2px;
}
.hd-dropdown:hover .hd-drop-arrow {
    transform: rotate(180deg);
}
.hd-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 148px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: var(--r);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    list-style: none;
    padding: 6px 0;
    z-index: 9999;
}
.hd-dropdown:hover .hd-dropdown-menu {
    display: block;
}
.hd-dropdown-menu li a {
    display: block;
    padding: 9px 18px;
    color: var(--text);
    font-size: 0.85rem;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
}
.hd-dropdown-menu li a:hover {
    background: var(--blue-light);
    color: var(--blue);
    opacity: 1;
}

/* ================================================
   Banner（蓝色渐变大Banner）
================================================ */
.banner {
    background: linear-gradient(135deg, #1a6fc4 0%, #0e4a8a 50%, #0a3566 100%);
    min-height: 380px;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.banner::before {
    content: '';
    position: absolute; top: -80px; right: -80px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.banner::after {
    content: '';
    position: absolute; bottom: -100px; left: -50px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(100,180,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
    gap: 40px;
}
.banner-left { flex: 1; }
.banner-right {
    flex: 0 0 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: var(--blue-accent);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(125,211,252,0.3);
}
.banner-title {
    font-size: 42px;
    color: #fff;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.banner-title span { color: var(--blue-accent); }
.banner-desc {
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.8;
}
.banner-btns {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* Banner 产品卡片 */
.product-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    width: 280px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.product-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08);
    overflow: hidden;
    color: #64748b;
}
.product-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: bold;
}
.product-card p {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.product-card .dl-btn {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    transition: all var(--t);
    text-decoration: none;
    display: inline-block;
}
.product-card .dl-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Banner 统计 */
.banner-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}
.stat-item { text-align: center; }
.stat-num { font-size: 28px; font-weight: bold; color: var(--blue-accent); }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* 按钮样式 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #fff;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(14,165,233,0.5);
    transition: all var(--t);
    border: none;
    white-space: nowrap;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(14,165,233,0.6);
    opacity: 1;
}
.btn-secondary,
.btn-ghost {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 11px 26px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all var(--t);
    white-space: nowrap;
}
.btn-secondary:hover,
.btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    opacity: 1;
}

/* ================================================
   公告条
================================================ */
.notice-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    height: 38px;
    display: flex;
    align-items: center;
}
.notice-inner {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.notice-tag {
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: var(--r-sm);
    white-space: nowrap;
    font-weight: 600;
}
.notice-text { font-size: 13px; color: var(--text-2); }
.notice-text a { color: var(--blue); text-decoration: none; }
.notice-text a:hover { text-decoration: underline; }

/* ================================================
   主内容区
================================================ */
.main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 30px 20px;
}

/* ================================================
   三列文章面板
================================================ */
.sw-top-area {
    display: grid;
    grid-template-columns: 1fr 1fr 300px;
    gap: 20px;
    margin-bottom: 30px;
}
/* 两列资讯 */
.news-columns {
    display: contents;
}
.news-col {
    background: var(--white);
    border-radius: var(--r);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.news-col-head {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.news-col-head h4 {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    margin: 0;
}
.news-col-head a {
    font-size: 12px;
    color: var(--blue);
    text-decoration: none;
    white-space: nowrap;
}
.news-col-head a:hover { text-decoration: underline; }
.news-list-col {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}
.news-list-col li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    height: 36px;           /* 固定每行高度 */
    flex-shrink: 0;
    border-bottom: 1px dashed #f0f0f0;
    overflow: hidden;
}
.news-list-col li:last-child { border-bottom: none; }
.news-list-col .news-title {
    font-size: 13px;
    color: #444;
    flex: 1;
    min-width: 0;           /* flex 子元素宽度压缩 */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: color var(--t);
}
.news-list-col .news-title:hover { color: var(--blue); }
.news-list-col .news-date {
    font-size: 11px;
    color: #bbb;
    white-space: nowrap;
    flex-shrink: 0;
}
.news-list-col .news-empty {
    font-size: 13px;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
}
/* 底部"更多"按钮区 */
.news-col-more {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    text-align: right;
}
.news-more-btn {
    font-size: 12px;
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s;
}
.news-more-btn:hover { opacity: 0.75; text-decoration: underline; }

/* ================================================
   侧边栏
================================================ */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-card {
    background: var(--white);
    border-radius: var(--r);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.sidebar-card h4 {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

/* 下载排行 */
.rank-list { list-style: none; flex: 1; }
.rank-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
    cursor: pointer;
}
.rank-list li:last-child { border-bottom: none; }
.rank-num {
    width: 20px; height: 20px; border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: bold; flex-shrink: 0;
}
.rank-1 { background: #ef4444; color: #fff; }
.rank-2 { background: #f97316; color: #fff; }
.rank-3 { background: #eab308; color: #fff; }
.rank-other { background: #e5e7eb; color: #888; }
.rank-name { font-size: 13px; color: #444; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.rank-name:hover { color: var(--blue); }
.rank-count { font-size: 12px; color: #bbb; }

/* ================================================
   产品中心：标题 + Tab + 4列网格
================================================ */
.section-title {
    font-size: 22px;
    font-weight: bold;
    color: #222;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid var(--blue);
}
.product-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
}
.tab-btn {
    padding: 10px 24px;
    font-size: 14px;
    color: var(--text-2);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--t);
    font-family: inherit;
}
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: bold; }
.tab-btn:hover { color: var(--blue); }

/* ============================================================
   三大主题系列展示区
   ============================================================ */
.series-section {
    padding: 40px 0 8px;
}
.series-section-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 22px;
}
.series-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: .5px;
}
.series-section-sub {
    font-size: 14px;
    color: #94a3b8;
}
.series-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.series-main-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px 22px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border: 1.5px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    cursor: default;
}
.series-main-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sl);
    pointer-events: none;
}
.series-main-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(0,0,0,.12);
}
.smc-top {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    margin-bottom: 14px;
}
.smc-icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
}
.smc-info { flex: 1; min-width: 0; }
.smc-name {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: .5px;
}
.smc-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.smc-count {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--sa);
    background: rgba(0,0,0,.05);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.smc-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
    position: relative;
    margin-bottom: 18px;
    min-height: 44px;
}
.smc-bar-wrap {
    height: 5px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
    position: relative;
}
.smc-bar {
    height: 100%;
    background: var(--sg);
    border-radius: 10px;
    min-width: 15%;
    transition: width .6s ease;
}
.smc-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sa);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 30px;
    border: 1.5px solid var(--sa);
    background: rgba(255,255,255,.8);
    position: relative;
    transition: background .2s, color .2s, box-shadow .2s;
}
.smc-btn:hover {
    background: var(--sg);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
@media (max-width: 900px) {
    .series-cards-row { grid-template-columns: 1fr; gap: 14px; }
    .series-section { padding: 28px 0 4px; }
}
@media (max-width: 640px) {
    .series-cards-row { grid-template-columns: 1fr; }
    .smc-top { gap: 10px; }
    .smc-icon { font-size: 28px; }
    .smc-name { font-size: 15px; }
}

/* 软件列表区域 */
.sw-section {
    padding: 24px 0 64px;
}

.sw-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 2px;
}
.sw-section-title {
    font-size: 22px;
    font-weight: bold;
    color: #222;
    padding-left: 12px;
    border-left: 4px solid var(--blue);
}
.sw-section-count {
    font-size: 0.82rem;
    color: var(--text-3);
}

/* 3列产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

/* 单个产品卡片 - 左右布局 */
.sw-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 16px;
    text-align: left;
    transition: all 0.25s;
    cursor: default;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
}
.sw-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--blue);
    transform: scaleX(0);
    transition: transform 0.25s;
}
.sw-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    transform: translateY(-3px);
}
.sw-card:hover::before { transform: scaleX(1); }

/* 产品标签容器 */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
/* HOT / NEW 徽章 */
.hot-badge {
    position: absolute; top: 10px; right: 10px;
    background: #ef4444; color: #fff;
    font-size: 10px; padding: 1px 6px; border-radius: 3px;
    font-weight: 600;
}
.new-badge {
    position: absolute; top: 10px; right: 10px;
    background: #22c55e; color: #fff;
    font-size: 10px; padding: 1px 6px; border-radius: 3px;
    font-weight: 600;
}

/* 产品图标 - 左右布局，大图标 */
.product-icon {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
}
.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 不同分类颜色 - 用于标签，图标统一白色 */
.icon-blue   { background: #fff; }
.icon-green  { background: #fff; }
.icon-orange { background: #fff; }
.icon-purple { background: #fff; }
.icon-red    { background: #fff; }
.icon-cyan   { background: #fff; }
.icon-yellow { background: #fff; }
.icon-pink   { background: #fff; }

/* 卡片内容区 */
.sw-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* 产品信息 */
.product-name { font-size: 16px; font-weight: bold; color: #222; margin-bottom: 8px; line-height: 1.4; }
.product-desc { font-size: 13px; color: var(--text-3); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-version { font-size: 11px; color: #aaa; margin-bottom: 10px; }

/* 下载按钮 */
.download-link {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    padding: 5px 18px;
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: background var(--t);
    font-weight: 600;
}
.download-link:hover { background: var(--blue-dark); opacity: 1; }

/* 标签通用 */
.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 8px;
    white-space: nowrap;
    line-height: 1.6;
}
.tag-free  { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.tag-pay   { background: #fff8e1; color: #ef6c00; border: 1px solid #ffe082; }
.tag-cat   { background: #e8f0fe; color: var(--blue); border: 1px solid #bfdbfe; }

/* 空状态 */
.sw-empty {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-3);
    background: var(--white);
    border-radius: var(--r);
    border: 1px solid var(--border);
}
.sw-empty-icon { font-size: 2.8rem; margin-bottom: 14px; }
.sw-noresult {
    text-align: center;
    padding: 48px 0;
    color: var(--text-3);
    font-size: 0.92rem;
    background: var(--white);
}

/* ================================================
   特性区域
================================================ */
.features-section {
    background: var(--white);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 28px;
}
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon-wrap {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.fi-blue { background: #dbeafe; }
.fi-green { background: #dcfce7; }
.fi-orange { background: #ffedd5; }
.fi-purple { background: #f3e8ff; }
.fi-red { background: #fee2e2; }
.fi-cyan { background: #cffafe; }
.feature-content h4 { font-size: 15px; font-weight: bold; color: #222; margin-bottom: 6px; }
.feature-content p { font-size: 13px; color: var(--text-3); line-height: 1.7; }

/* ================================================
   合作伙伴
================================================ */
.partners-section {
    background: var(--white);
    border-radius: var(--r);
    padding: 28px 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    align-items: center;
}
.partner-logo {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all var(--t);
    white-space: nowrap;
}
.partner-logo:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }

/* ================================================
   页脚（深色多列底部）
================================================ */
.site-footer-new {
    background: #1e293b;
    padding: 40px 0 0;
    margin-top: 10px;
    color: rgba(255,255,255,0.75);
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 0 20px 30px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.footer-brand .logo-text-fb { color: #fff; font-size: 22px; margin-bottom: 10px; display: block; }
.footer-brand p { font-size: 13px; color: #94a3b8; line-height: 1.8; margin-bottom: 16px; }
.social-links { display: flex; gap: 10px; }
.social-btn {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; cursor: pointer;
    transition: background var(--t);
    color: inherit; text-decoration: none;
}
.social-btn:hover { background: rgba(255,255,255,0.2); color: inherit; }
.footer-col h5 { color: #e2e8f0; font-size: 14px; margin-bottom: 14px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: #94a3b8; font-size: 13px; text-decoration: none; transition: color var(--t);
}
.footer-col ul li a:hover { color: var(--blue-accent); opacity: 1; }

/* 旧版页脚兼容 */
.footer-left, .footer-right { display: none; }
.footer-logo-row, .footer-logo-link, .footer-logo-img { display: none; }
.footer-nav { display: none; }
.footer-copy { display: none; }
.footer-qr-title, .footer-qr-row, .footer-qr-item { display: none; }
.footer-hotline-label, .footer-hotline { display: none; }
.site-footer { display: none; }

.footer-bottom {
    background: #0f172a;
    padding: 14px 0;
    text-align: center;
}
.footer-bottom p { color: #475569; font-size: 12px; }
.footer-bottom a { color: #64748b; text-decoration: none; }
.footer-bottom a:hover { color: #94a3b8; opacity: 1; }
.footer-sep { color: rgba(255,255,255,0.2); }

/* ================================================
   悬浮按钮
================================================ */
.float-top {
    position: fixed; right: 24px; bottom: 40px; z-index: 200;
    background: #fff; border: 1px solid #ddd; color: #666;
    border-radius: 50%; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: all var(--t);
}
.float-top:hover { background: #f0f0f0; transform: translateY(-2px); }

/* ================================================
   More 按钮
================================================ */
.sw-more-wrap {
    text-align: center;
    padding: 12px 0 4px;
}
.sw-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 32px;
    background: var(--white);
    border: 1.5px solid var(--blue);
    border-radius: 24px;
    color: var(--blue);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
    box-shadow: 0 2px 10px rgba(26,111,196,0.12);
}
.sw-more-btn:hover {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26,111,196,0.30);
    transform: translateY(-2px);
}

/* ================================================
   移动端汉堡菜单按钮
================================================ */
.hd-mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    flex-shrink: 0;
    border-radius: 8px;
    transition: background 0.15s;
}
.hd-mobile-menu-btn:hover { background: rgba(255,255,255,0.2); }
.hd-mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
    transform-origin: center;
}
/* 汉堡 → X 动画 */
.hd-mobile-menu-btn.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hd-mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hd-mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* 移动端下拉菜单 */
.hd-mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid #e4e6ec;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 6px 0 10px;
    width: 100%;
}
.hd-mobile-menu.open { display: flex; }
.hd-mobile-menu a {
    padding: 13px 24px;
    font-size: 0.95rem;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.12s, color 0.12s;
}
.hd-mobile-menu a:last-child { border-bottom: none; }
.hd-mobile-menu a:hover, .hd-mobile-menu a.active {
    background: var(--blue-light);
    color: var(--blue);
}

/* ================================================
   响应式
================================================ */
@media (max-width: 1024px) {
    .banner-right { flex: 0 0 280px; }
    .product-card { width: 240px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 900px) {
    .sw-top-area { grid-template-columns: 1fr; }
    .news-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-brand { display: none; }
    /* 手机端新闻列：确保日期、更多链接、边框完整显示 */
    .news-col {
        min-width: 0;
        overflow: hidden;
    }
    .news-col-head {
        overflow: hidden;
        flex-shrink: 0;
    }
    .news-col-head h4 {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
        flex: 1;
    }
    .news-col-head a {
        flex-shrink: 0;
        margin-left: 8px;
    }
    .news-list-col li {
        min-width: 0;
        overflow: hidden;
    }
    .news-list-col .news-date {
        flex-shrink: 0;
        font-size: 11px;
    }
    .news-list-col .news-title {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
    }
    .footer-inner { grid-template-columns: 1fr 1fr 1fr; gap: 16px; text-align: center; }
    .footer-col h5 { font-size: 13px; margin-bottom: 8px; }
    .footer-col ul li { margin-bottom: 5px; }
    .footer-col ul li a { font-size: 12px; }
}
@media (max-width: 800px) {
    .banner-inner { flex-direction: column; gap: 28px; padding: 40px 20px; min-height: auto; }
    .banner { min-height: auto; padding: 0; }
    .banner-right { flex: none; }
    .banner-title { font-size: 28px; }
    .banner-desc { font-size: 14px; margin-bottom: 24px; }
    .banner-stats { gap: 24px; }
    .stat-num { font-size: 22px; }
    .btn-primary { padding: 10px 24px; font-size: 14px; }
}
@media (max-width: 640px) {
    /* 显示汉堡按钮，隐藏普通导航 */
    .hd-mobile-menu-btn { display: flex; }
    .hd-nav { display: none; }
    .hd-search { max-width: 160px; margin-left: 12px; }
    .hd-search-input { height: 30px; font-size: 0.82rem; }

    /* 新闻列：手机端单列堆叠 */
    .news-columns { grid-template-columns: 1fr; gap: 12px; }
    .news-col { padding: 14px 12px; }
    .news-col-head h4 { font-size: 14px; }
    .news-col-head a { font-size: 12px; }
    .news-list-col .news-title { font-size: 13px; }
    .news-list-col .news-date { font-size: 11px; }

    /* 产品网格：手机两列 */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .features-grid { grid-template-columns: 1fr; }

    /* Banner 手机版 */
    .banner-title { font-size: 24px; }
    .banner-desc { font-size: 13px; margin-bottom: 18px; }
    .btn-primary, .btn-secondary { padding: 9px 18px; font-size: 13px; }
    .banner-stats { gap: 20px; margin-top: 28px; }
    .stat-num { font-size: 20px; }
    .product-card { width: 100%; max-width: 260px; }

    /* 分类标签横向滚动 */
    .sw-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .sw-section-head > div {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 4px;
        width: 100%;
    }
    .cat-tab { white-space: nowrap; flex-shrink: 0; }

    /* 产品卡片 */
    .sw-card { padding: 14px 10px; }
    .product-icon { width: 48px; height: 48px; font-size: 24px; margin-bottom: 8px; }
    .product-name { font-size: 13px; }
    .product-desc { font-size: 11px; min-height: 32px; margin-bottom: 8px; }

}
@media (max-width: 420px) {
    .hd-search { max-width: 110px; }
    .banner-title { font-size: 20px; }
    .container { padding-left: 14px; padding-right: 14px; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .product-desc { display: none; }
    .sidebar-card { padding: 14px; }
}

/* ================================================
   手机竖屏（9:16）专属优化
   目标：375px宽 / 812px高（iPhone X/12 标准）
   策略：禁止横向溢出，保证单列布局清晰可读
================================================ */
html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    overflow-x: hidden;
    /* 防止 iOS 弹性滚动造成横向溢出 */
    position: relative;
    max-width: 100vw;
}

/* 所有内容宽度不超过视口 */
*, *::before, *::after {
    max-width: 100%;
}
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

@media (max-width: 480px) and (orientation: portrait) {
    /* ── 页面容器 ── */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* ── Banner：全屏高度感 ── */
    .banner-section {
        min-height: 52vw;
        padding: 32px 0 28px;
    }
    .banner-title { font-size: 22px; line-height: 1.3; }
    .banner-desc  { font-size: 13px; }
    .banner-stats { gap: 16px; }
    .stat-num     { font-size: 18px; }
    .stat-label   { font-size: 11px; }

    /* ── 三大主题卡片：竖屏单列全宽 ── */
    .series-cards-row {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .series-main-card {
        padding: 18px 16px 16px;
        border-radius: 16px;
    }
    .smc-icon { font-size: 30px; }
    .smc-name { font-size: 16px; }
    .smc-desc { font-size: 12px; }

    /* ── 软件卡片：两列布局 ── */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .sw-card {
        padding: 12px 8px;
        border-radius: 12px;
    }
    .product-icon { width: 44px; height: 44px; font-size: 22px; margin-bottom: 7px; }
    .product-name { font-size: 12px; font-weight: 700; }
    .product-desc { font-size: 11px; min-height: 28px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* ── 分类标签横向滚动不换行 ── */
    .sw-section-head > div {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .sw-section-head > div::-webkit-scrollbar { display: none; }
    .tab-btn { white-space: nowrap; flex-shrink: 0; font-size: 12px; padding: 5px 12px; }

    /* ── 页脚紧凑 ── */
    .footer-content { gap: 20px; }

    /* ── 头部搜索框 ── */
    .hd-search { max-width: 130px; }

    /* ── 按钮 ── */
    .btn-primary, .btn-secondary { padding: 9px 16px; font-size: 13px; }

    /* ── 新闻列竖屏优化 ── */
    .news-columns {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    .news-col {
        padding: 12px;
        border-radius: 12px;
        overflow: hidden;
    }
    .news-col-head {
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
    .news-col-head h4 {
        font-size: 14px;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .news-col-head a {
        flex-shrink: 0;
        margin-left: 6px;
        font-size: 12px;
    }
    .news-list-col li {
        padding: 6px 0;
        border-bottom: 1px dashed #f0f0f0;
    }
    .news-list-col .news-title {
        font-size: 13px;
        min-width: 0;
        flex: 1;
    }
    .news-list-col .news-date {
        font-size: 11px;
        flex-shrink: 0;
        margin-left: 4px;
    }
}

/* 横屏时允许正常显示 */
@media (max-width: 812px) and (orientation: landscape) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .series-cards-row { grid-template-columns: repeat(3, 1fr); }
}


/* ================================================
   兼容样式（news.php 等页面使用）
================================================ */
.sw-icon-fb {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
