/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
input, button { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ===== 容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== 网格系统 ===== */
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.row > [class*="col-"] { padding: 0 15px; }
.col-md-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }

@media (max-width: 768px) {
    .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
}

/* ===== 顶部栏 ===== */
.info-head {
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    font-size: 12px;
    color: #666;
}
.info-head .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
}
.info-head ul { display: flex; align-items: center; gap: 15px; }
.info-head .dropdown { position: relative; }
.info-head .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 100px;
    z-index: 1000;
}
.info-head .dropdown:hover .dropdown-menu { display: block; }
.info-head .dropdown-menu a {
    display: block;
    padding: 6px 12px;
    font-size: 12px;
    color: #333;
}
.info-head .dropdown-menu a:hover { background: #f0f0f0; }
.info-head .fa { margin-right: 4px; }

/* ===== 头部导航 ===== */
header {
    background: #fff;
    border-bottom: 4px solid #0079c3;
    position: relative;
    z-index: 100;
    transition: box-shadow .3s;
}
header.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
header .logo img { height: 30px; }

/* 桌面导航 */
.nav-desktop ul { display: flex; gap: 30px; }
.nav-desktop li { position: relative; }
.nav-desktop a {
    display: block;
    padding: 8px 0;
    font-size: 16px;
    color: #333;
    transition: color .2s;
}
.nav-desktop a:hover { color: #1d76d0; }
.nav-desktop .fa-angle-down { margin-left: 4px; font-size: 12px; }
.nav-desktop ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    min-width: 140px;
    padding: 6px 0;
}
.nav-desktop li:hover > ul { display: block; }
.nav-desktop ul ul a { padding: 6px 16px; font-size: 13px; white-space: nowrap; }

/* 移动端导航按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    transition: .3s;
}

/* 移动端导航面板 */
.nav-mobile {
    display: none;
    background: #fff;
    border-top: 1px solid #eee;
}
.nav-mobile ul { padding: 10px 0; }
.nav-mobile li { border-bottom: 1px solid #f0f0f0; }
.nav-mobile a {
    display: block;
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
}
.nav-mobile a:hover { background: #f8f8f8; }
.nav-mobile .submenu {
    display: none;
    background: #fafafa;
}
.nav-mobile .submenu a { padding-left: 30px; font-size: 13px; }
.nav-mobile .has-submenu { position: relative; }
.nav-mobile .submenu-toggle {
    position: absolute;
    right: 15px;
    top: 12px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    color: #999;
}

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .nav-toggle { display: flex; }
    .nav-mobile.active { display: block; }
    header .container { height: 56px; }
}

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    background: #1d76d0;
    color: #fff;
    border-radius: 3px;
    transition: background .2s;
}
.btn:hover { background: #1565c0; }
.btn-lg { padding: 12px 32px; font-size: 16px; }

/* ===== 页脚 ===== */
.footer-center {
    background: #222;
    color: #aaa;
    padding: 40px 0 30px;
    font-size: 13px;
}
.footer-center .row { align-items: flex-start; }
.footer-center h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: normal;
}
.footer-center p { line-height: 2; }
.footer-center ul li { line-height: 2; }
.footer-center .fa { color: #1d76d0; margin-right: 4px; }
.footer-center .input-group {
    display: flex;
    margin-top: 10px;
}
.footer-center .input-group input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #444;
    background: #333;
    color: #ddd;
    outline: none;
}
.footer-center .input-group button {
    padding: 8px 16px;
    background: #1d76d0;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
}
.footer-center .input-group button:hover { background: #1565c0; }
.footer-center .input-group-addon {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: #333;
    border: 1px solid #444;
    border-right: none;
    color: #1d76d0;
}

.footer-bottom {
    background: #1a1a1a;
    color: #777;
    padding: 20px 0;
    font-size: 12px;
}
.footer-bottom .row { align-items: center; justify-content: space-between; }
.footer-bottom .menu-footer { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 10px; }
.footer-bottom .menu-footer a:hover { color: #1d76d0; }
.footer-bottom .coopring a { color: #999; }
.footer-bottom .social { display: flex; gap: 15px; justify-content: flex-end; }
.footer-bottom .social li {
    position: relative;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border: 1px solid #444;
    border-radius: 50%;
    cursor: pointer;
    transition: .2s;
}
.footer-bottom .social li a,
.footer-bottom .social li span {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
}
.footer-bottom .social li:hover { border-color: #1d76d0; color: #1d76d0; }
.footer-bottom .wechat-qrcode {
    position: absolute;
    left: 50%;
    bottom: 42px;
    width: 128px;
    padding: 8px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
    transform: translate(-50%, 10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 20;
}
.footer-bottom .wechat-qrcode:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
}
.footer-bottom .wechat-qrcode img {
    position: relative;
    z-index: 1;
    display: block;
    width: 112px;
    height: 112px;
    object-fit: cover;
}
.footer-bottom .wechat-social:hover .wechat-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

@media (max-width: 768px) {
    .footer-center .row > [class*="col-"] { margin-bottom: 20px; }
    .footer-bottom .social { justify-content: flex-start; margin-top: 15px; }
}

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.img-responsive { max-width: 100%; height: auto; }
.yahei { font-family: "Microsoft YaHei", sans-serif; }
