/* =========================================================================
 * MeiG 官网风格主题（应用于 www/meiglink/*.html）
 * 配色：白色背景 + 科技蓝 + 青色渐变
 * ========================================================================= */

:root {
    --meig-red: #0865d8;
    --meig-red-dark: #043172;
    --meig-red-soft: #eef3fb;

    --meig-ink: #071a3b;
    --meig-text: #1f2937;
    --meig-text-mute: #60718f;
    --meig-text-faint: #8a93a0;

    --meig-bg: #f5f9fe;
    --meig-bg-alt: #ffffff;
    --meig-border: #dce8f7;
    --meig-shadow: 0 2px 6px rgba(8, 101, 216, 0.05), 0 8px 24px rgba(8, 101, 216, 0.06);
}

/* ---------- 基础排版 ---------- */
html, body {
    background: var(--meig-bg-alt) !important;
    color: var(--meig-text) !important;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
        "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

/* 顶部科技蓝条 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--meig-red) 0%, #0b7cff 55%, var(--meig-red) 100%);
    z-index: 3000;
    pointer-events: none;
}

/* ---------- 顶部导航 ---------- */
.topmenu {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    width: 100% !important;
    min-width: 0 !important;
    height: 64px !important;
    min-height: 64px !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(220, 232, 247, 0.86);
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 2px 14px rgba(10, 67, 145, 0.08);
}

.topmenu.scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
}

.topmenu-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

.logo-container .logo,
.logo-container .meig-logo-svg {
    height: 40px !important;
    max-height: 40px !important;
    width: auto !important;
    display: block;
}

.menu-container {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    list-style: none;
    margin: 0 !important;
    padding: 0;
}

.main-nav a {
    color: var(--meig-text) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 4px;
    position: relative;
    transition: color .2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--meig-red) !important;
}

.main-nav a.active::after,
.main-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--meig-red);
    border-radius: 2px;
}

.language-switch a {
    color: var(--meig-text-mute) !important;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid var(--meig-border);
    border-radius: 999px;
    transition: all .2s;
}

.language-switch a:hover {
    color: var(--meig-red) !important;
    border-color: var(--meig-red);
    background: var(--meig-red-soft);
}

/* ---------- 内容区段（保留背景图，强化文字层级 + 红色重点） ---------- */
#content-container {
    background: var(--meig-bg-alt);
}

.twoColumnHDI.content-section {
    position: relative;
    width: 100% !important;
    min-height: 460px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.twoColumnHDI .gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 19, 25, 0.78) 0%,
        rgba(15, 19, 25, 0.55) 45%,
        rgba(15, 19, 25, 0.10) 80%,
        rgba(15, 19, 25, 0) 100%
    );
    z-index: 1;
}

.twoColumnHDI .content-left {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding: 80px 48px;
    color: #fff;
    margin-left: 8%;
}

.twoColumnHDI .section-title {
    font-size: 30px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
    margin: 0 0 18px;
    position: relative;
    padding-left: 18px;
}

.twoColumnHDI .section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: var(--meig-red);
    border-radius: 2px;
}

.twoColumnHDI .section-description {
    font-size: 15px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 24px;
}

.twoColumnHDI .section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--meig-red);
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: background .2s, transform .1s;
}

.twoColumnHDI .section-link:hover {
    background: var(--meig-red-dark);
}

/* ---------- 底部 footer ---------- */
.bottommenu.footer {
    background: #1f2329 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 40px 0 0;
    border-top: 3px solid var(--meig-red);
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.bottommenu .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 56px;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

.bottommenu .midder_footer > a {
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    display: block;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 8px;
}

.bottommenu .midder_footer > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 2px;
    background: var(--meig-red);
}

.bottommenu .midder_footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bottommenu .midder_footer li {
    margin: 0 0 8px;
    list-style: none;
}

.bottommenu .midder_footer li a {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 13px;
    text-decoration: none;
    transition: color .2s;
}

.bottommenu .midder_footer li a:hover {
    color: var(--meig-red) !important;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 12px;
}

.copyright a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    margin-left: 8px;
}

.copyright a:hover {
    color: var(--meig-red) !important;
}

/* ---------- 通用按钮 / 链接 ---------- */
a {
    color: var(--meig-red);
}

a:hover {
    color: var(--meig-red-dark);
}

/* ---------- 修正旧底色 ---------- */
body[style*="height: 100%"] {
    background: var(--meig-bg-alt) !important;
}

/* 可能的卡片块 */
.panel-default {
    border: 1px solid var(--meig-border) !important;
    border-radius: 10px !important;
    box-shadow: var(--meig-shadow);
    background: #fff;
}

/* 小屏适配 */
@media (max-width: 992px) {
    .topmenu-container { padding: 0 20px; }
    .menu-container { gap: 18px; }
    .main-nav { gap: 18px; }
    .twoColumnHDI .content-left {
        max-width: 100%;
        margin-left: 0;
        padding: 60px 24px;
    }
    .twoColumnHDI .section-title { font-size: 24px; }
}
