/* ============================================================
   v2 基础样式（v2-base.css）
   ------------------------------------------------------------
   新方案：固定版心 + flex 弹性 + min-width 兜底（学腾讯）
   - 设计稿宽度：1920px（1:1 还原，不需要换算）
   - 版心：1920px 固定，居中
   - 窗口 < 1920px 时出现横向滚动条（body min-width 兜底）
   - Ctrl± 缩放：纯 px，浏览器原生等比放大，天然协调
   - 不做任何 JS 缩放
   ============================================================ */

/* ===== 设计变量 ===== */
:root {
    --primary-color: #1a5fb4;
    --primary-light: #3584e4;
    --primary-dark: #124a8e;
    --accent-color: #e01b24;
    --bg-color: #f5f7fa;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e8ecf1;

    /* 版心宽度（设计稿宽度） */
    --layout-content-width: 1920px;
    /* 最小宽度兜底：窗口小于 1440px 时出横向滚动条（参考腾讯） */
    --layout-min-width: 1440px;
}

/* ===== 重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #fff;
    /* 兜底：窗口小于 1440px 时出横向滚动条（参考腾讯） */
    min-width: var(--layout-min-width);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== 版心容器 ===== */
/* 内容区：弹性宽度，窗口 ≥1440 时收缩，< 1440 时 body 锁死出滚动条 */
/* max-width 限宽（设计稿 1664），窗口变窄时自动收缩（腾讯式弹性） */
.v2-container {
    width: 100%;
    max-width: 1664px;   /* 设计稿内容宽度，窗口窄于此自动收缩 */
    margin: 0 auto;
    box-sizing: border-box;
}

/* 全宽区块（banner、背景条），撑满版心 */
.v2-fullwidth {
    width: var(--page-width);
    margin-left: calc((var(--page-width) - 100%) / -2);   /* 突破内容区，撑满版心 */
}

/* ===== 头部 ===== */
/* 外层 100% 宽（= body 宽，body 由 min-width:1920 兜底），窗口 >1920 时背景延伸 */
.v2-header {
    position: relative;
    width: 100%;
    background: #b5cfe6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.v2-header-inner {
    width: 100%;
    max-width: 1664px;   /* 与内容区一致，窄窗口弹性收缩 */
    margin: 0 auto;
    height: 70px;
    display: flex;
    align-items: center;
    position: relative;
}

.v2-logo {
    display: flex;
    align-items: center;
    position: absolute;
    left: 0;
}

.v2-logo img {
    height: 45px;
    width: auto;
}

/* 导航菜单 */
.v2-nav {
    display: flex;
    align-items: center;
    margin-left: 320px;   /* logo 右侧留出空间 */
    height: 100%;
}

.v2-nav-item {
    position: relative;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 26px;
    font-size: 18px;
    font-family: "SimHei", "黑体", "Heiti SC", sans-serif;   /* 黑体 */
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
}

.v2-nav-item:hover,
.v2-nav-item.active {
    color: var(--primary-color);
}

.v2-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.v2-nav-item:hover::after,
.v2-nav-item.active::after {
    width: 50%;
}

/* 二级下拉菜单 */
.v2-sub-nav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #f5f5f5;
    min-width: 160px;
    padding: 10px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid #d0d0d0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.v2-nav-item:hover .v2-sub-nav {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.v2-sub-nav-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.v2-sub-nav-item::before {
    content: '';
    width: 8px;
    height: 8px;
    background: transparent;
    margin-right: 10px;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.v2-sub-nav-item:hover {
    color: #1a5fb4;
    font-weight: 600;
}

.v2-sub-nav-item:hover::before {
    background: #e01b24;
}

/* ===== 页脚 ===== */
.v2-footer {
    width: 100%;
    background: url('../images/footer-bg.jpg') center/cover no-repeat;   /* 原版用 .jpg */
    padding: 40px 0 22px;   /* 原版 padding：上 40px，下 22px */
    color: rgba(255, 255, 255, 0.8);
}

.v2-footer-inner {
    width: 100%;
    max-width: 1664px;   /* 与内容区一致，窄窗口弹性收缩 */
    margin: 0 auto;
}

.v2-footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;   /* 2 列：左列=友情链接，右列=联系我们 */
    gap: 40px;
    margin-bottom: 40px;
}

/* 左列：友情链接纵向堆叠 */
.v2-footer-main {
    display: flex;
    flex-direction: column;
}

.v2-footer-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;   /* 原版标题深色 */
    margin-bottom: 18px;
}

/* 友情链接标题：与上方公司信息拉开间距 */
.v2-footer-links-title {
    margin-top: 20px;
}

.v2-footer-section p,
.v2-footer-section a {
    font-size: 14px;
    line-height: 2;
    color: #555;   /* 原版正文深色 */
    display: block;
}

.v2-footer-section a:hover {
    color: #1a5fb4;   /* 原版悬停蓝色 */
}

/* 友情链接：每列 4 条，超出另起一列 */
.v2-footer-links {
    display: grid;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, auto);
    column-gap: 40px;
    align-content: start;
}

.v2-footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);   /* 原版边框色 */
    padding-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #777;   /* 原版底部文字色 */
}

/* ===== 工具类 ===== */
.text-center { text-align: center; }

/* 视觉隐藏（保留给屏幕阅读器与搜索引擎） */
.v2-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
