/* ======================================================
   商家举证助手 · 公共样式（简体 / 繁体 / 英文 共用）
   ====================================================== */

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    line-height: 1.5;
    color: #111827;
    background-color: #f2f2f2;
    --win11-primary: #0066cc;
    --win11-border: #d0d7de;
    --win11-card: #ffffff;
    --grid-line: #eeeeee;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --card-radius: 4px;      /* 统一圆角，与其他卡片一致 */
}

/* 繁体页面：优先使用繁体字体族 */
body.lang-tw {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Segoe UI', system-ui, 'Microsoft YaHei', sans-serif;
}

/* ============ 语言切换（顶部独立一行·纯文字） ============ */
.lang-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding: 3px 1px 0 0;
    margin-bottom: 14px;
}

.lang-globe {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-right: -8px;
    color: #b3c0cd;
}

.lang-item {
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    color: #7a8899;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.lang-item:hover {
    color: var(--win11-primary);
}

.lang-item.active {
    color: var(--win11-primary);
    font-weight: 600;
}

/* ============ 标题区 ============ */
.title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0 0 28px 0;
    padding: 8px 0 14px 0;
    border-bottom: 2px solid var(--win11-primary);
}

.software-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--win11-primary);
    letter-spacing: -0.5px;
    margin: 0;
    padding: 0;
}

/* 柔和、低调的 slogan —— 不像按钮 */
.slogan {
    font-size: 1rem;
    font-weight: bold;
    color: #4a5a6e;
    padding: 4px 18px 4px 16px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
}

.slogan::before {
    content: "· ";
    color: #8a9aa8;
    font-weight: 300;
}

.slogan::after {
    content: " ·";
    color: #8a9aa8;
    font-weight: 300;
}

.slogan:hover {
    background: rgba(0, 102, 204, 0.07);
    border-color: rgba(0, 102, 204, 0.15);
    color: #2c3e50;
}

/* ============ 功能网格 ============ */
.features-wrapper {
    background: var(--win11-card);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--grid-line);
    padding: 0;
    margin-bottom: 24px;
    overflow: hidden;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    list-style: none;
    background: transparent;
    gap: 0;
    position: relative;
}

.feature-grid li {
    background: var(--win11-card);
    padding: 20px 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
    transition: background 0.15s ease;
    position: relative;
}

.feature-grid li:hover {
    background: #f8faff;
}

.feature-grid li .main-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0b1a33;
    display: block;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.feature-grid li .sub-text {
    font-size: 0.85rem;
    color: #4f5e72;
    display: block;
    line-height: 1.4;
    opacity: 0.85;
}

/* 去掉 li 前面的任何装饰 */
.feature-grid li::before {
    display: none;
}

/* ===== 分隔线：不撑满，使用伪元素 ===== */
/* 垂直分隔线（第1、2列右侧） */
.feature-grid li:nth-child(3n+1)::after,
.feature-grid li:nth-child(3n+2)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 12%;
    bottom: 12%;
    width: 1px;
    background-color: var(--grid-line);
}

/* 水平分隔线（第1、2行底部） */
.feature-grid li:nth-child(-n+6)::before {
    display: block;
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 0;
    height: 1px;
    background-color: var(--grid-line);
}

/* ============ 配置要求 ============ */
.requirements {
    background-color: var(--win11-card);
    padding: 24px;
    border-radius: var(--card-radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--grid-line);
}

.requirements h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--win11-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--grid-line);
}

.requirements ul {
    list-style: disc;
    padding-left: 24px;
    color: #212121;
}

.requirements li {
    margin: 8px 0;
    font-size: 1rem;
}

/* ============ 下载区域 ============ */
.download-section {
    background-color: var(--win11-card);
    padding: 24px;
    border-radius: var(--card-radius);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--grid-line);
}

.download-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #0066cc;
    color: white;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: var(--card-radius);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    line-height: 1.2;
    height: 50px;
}

.download-btn:hover {
    background-color: #0059b3;
    box-shadow: 0 2px 8px rgba(0,102,204,0.3);
}

.download-btn span {
    font-size: 1rem;
}

.download-btn small {
    font-size: 0.65rem;
    font-weight: normal;
    opacity: 0.7;
    margin-top: 5px;
}

/* 次要按钮（描边样式） */
.download-btn.outline {
    background: white;
    color: #0066cc;
    border: 1px solid #0066cc;
}

.download-btn.outline:hover {
    background: rgba(0, 102, 204, 0.06);
    box-shadow: 0 2px 8px rgba(0,102,204,0.18);
}

.version-info {
    font-size: 0.95rem;
    color: #212121;
    font-weight: 500;
    white-space: nowrap;
    margin: 0;
}

.note {
    color: #595959;
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    width: 100%;
}

/* ============ 工具下载板块 ============ */
.tools-download {
    background-color: var(--win11-card);
    padding: 24px;
    border-radius: var(--card-radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--grid-line);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tools-download h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    border: none;
    padding: 0;
    margin: 0;
}

.tools-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tool-link {
    color: var(--win11-primary);
    font-size: 1rem;
    text-decoration: none;
    font-weight: 500;
}

.tool-link:hover {
    text-decoration: underline;
}

/* ============ 备案信息 ============ */
.icp-record {
    margin-top: 32px;
    text-align: center;
    font-size: 0.85rem;
    color: #666666;
    padding: 16px 0;
    border-top: 1px solid var(--grid-line);
}

.icp-record a {
    color: var(--win11-primary);
    text-decoration: none;
    font-weight: 500;
}

.icp-record a:hover {
    text-decoration: underline;
}

/* ============ 客服窗口 ============ */
.customer-service {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--win11-border);
}

.service-wechat {
    width: 100px;
    height: 100px;
    margin-bottom: 8px;
    border-radius: var(--card-radius);
    object-fit: cover;
}

.service-text {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    text-align: center;
}

/* ============ 移动端适配 ============ */
@media (max-width: 768px) {
    .title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .lang-bar {
        gap: 14px;
        margin-bottom: 10px;
    }
    .lang-item {
        font-size: 0.75rem;
    }
    .software-title {
        font-size: 1.8rem;
    }
    .slogan {
        font-size: 0.8rem;
        padding: 2px 12px 2px 10px;
        white-space: nowrap;
        margin-left: 0;
        margin-top: 2px;
    }
    .slogan::before,
    .slogan::after {
        content: "";
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .feature-grid li {
        padding: 16px 14px;
        min-height: 80px;
    }
    .feature-grid li .main-text {
        font-size: 1rem;
    }
    .feature-grid li .sub-text {
        font-size: 0.8rem;
    }

    /* 移动端重置分隔线，避免错乱 */
    .feature-grid li::after,
    .feature-grid li:nth-child(-n+6)::before {
        display: none !important;
    }

    .download-section {
        flex-direction: column;
        align-items: stretch;
    }
    .download-btn {
        width: 100%;
    }
    .tools-download {
        flex-direction: column;
        align-items: flex-start;
    }
    .customer-service {
        right: 16px;
        bottom: 16px;
        padding: 10px;
    }
    .service-wechat {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .feature-grid li {
        padding: 14px 12px;
        min-height: 70px;
    }
    .feature-grid li .main-text {
        font-size: 0.95rem;
    }
    .feature-grid li .sub-text {
        font-size: 0.75rem;
    }
}
