/* 公共样式 - 所有子页面共享的 Header / 导航栏 / 基础 reset */

:root {
    --color-blue: #32416f;
    --color-red: #EE2A2B;
    --color-gold: #e1c257;
}

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

body {
    font-family: "思源黑体", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #FFFFFF;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
}

/* Header */
header {
    height: 80px;
    position: relative;
    width:100%;
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 1200px;
    padding: 0 30px;
}

.logo {
    display: flex;
    align-items: center;
    padding-right: 30px;
    border-right: 1px solid #E5E5E5;
    margin-right: 30px;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: "宋体", "SimSun", serif;
    font-size: 22px;
    font-weight: bold;
    color: #1A1A1A;
    letter-spacing: 2px;
    white-space: nowrap;
    padding-left: 10px;
}

/* 首页文字标识：保持矢量般清晰，不依赖位图 Logo。 */
.logo .logo-wordmark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    width: 207px;
    padding-left: 0;
    line-height: 1;
    letter-spacing: 0;
}

.logo-wordmark .logo-cn {
    color: #626262;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.15;
    white-space: nowrap;
}

.logo-wordmark [data-brand-accent] {
    color: #b43b17;
    font-weight: 600;
}

.logo-wordmark .logo-en {
    display: flex;
    justify-content: space-between;
    width: 207px;
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: .01em;
    white-space: nowrap;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

nav a {
    color: #333333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

nav a:hover,
nav a.active {
    color: #C41E3A;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -28px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #C41E3A;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 25px;
    border-left: 1px solid #E5E5E5;
    flex-shrink: 0;
    margin-left: 25px;
}

.lang-switch {
    color: #666666;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.3;
}

.phone-btn {
    background: #C41E3A;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 2px;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.3s;
    white-space: nowrap;
}

.phone-btn:hover {
    background: #A01830;
}

/* ========== 公共页面横幅样式 ========== */
.page-banner {
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-banner h1 {
    font-family: "思源宋体", "SimSun", serif;
    font-size: 42px;
    color: #FFFFFF;
    letter-spacing: 6px;
    font-weight: 400;
}

/* ========== 公共面包屑导航 ========== */
.breadcrumb {
    padding: 20px 0;
    background: #FAFAFA;
    border-bottom: 1px solid #E5E5E5;
}

.breadcrumb a {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #C41E3A;
}

.breadcrumb span {
    color: #999999;
    margin: 0 10px;
}

.breadcrumb .current {
    color: #333333;
    font-size: 14px;
}

/* ========== 公共子导航 ========== */
.sub-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid #E5E5E5;
}

.sub-nav a {
    color: #666666;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 25px;
    transition: all 0.3s;
    border-radius: 2px;
}

.sub-nav a:hover,
.sub-nav a.active {
    color: #C41E3A;
    background: #FFF5F5;
}

/* ========== 公共详情页布局 ========== */
.detail-section {
    padding: 80px 0;
}

.detail-layout {
    display: flex;
    gap: 40px;
}

.detail-main {
    flex: 1;
    min-width: 0;
}

.detail-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.detail-header-text {
    flex: 1;
}

.detail-title-line {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.detail-title-line::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: var(--color-red);
    margin-right: 12px;
    flex-shrink: 0;
}

.detail-title-line h1 {
    font-family: "思源宋体", "SimSun", serif;
    font-size: 24px;
    color: #1A1A1A;
    font-weight: 400;
    letter-spacing: 2px;
}

.detail-header-text p {
    font-size: 15px;
    color: #666666;
    line-height: 2;
    margin-bottom: 16px;
}

/* ========== 公共侧边栏模块 ========== */
.sidebar-block {
    margin-bottom: 40px;
}

.sidebar-block-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.sidebar-block-header::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: var(--color-red);
    margin-right: 10px;
    flex-shrink: 0;
}

.sidebar-block-header h3 {
    font-family: "思源宋体", "SimSun", serif;
    font-size: 16px;
    color: #1A1A1A;
    font-weight: 400;
    letter-spacing: 1px;
    flex: 1;
}

.sidebar-block-header a {
    font-size: 13px;
    color: #999999;
    text-decoration: none;
}

.sidebar-block-header a:hover {
    color: var(--color-red);
}

.sidebar-list {
    list-style: none;
    padding: 0;
}

.sidebar-list li {
    padding: 12px 0;
    border-bottom: 1px solid #F0F0F0;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list li a {
    font-size: 13px;
    color: #666666;
    text-decoration: none;
    line-height: 1.6;
    display: block;
}

.sidebar-list li a:hover {
    color: var(--color-red);
}

.sidebar-text p {
    font-size: 13px;
    color: #666666;
    line-height: 1.8;
}

/* ========== 公共内容区块 ========== */
.content-section,
.service-section {
    margin-bottom: 50px;
}

.content-section h2,
.service-section h2 {
    font-family: "思源宋体", "SimSun", serif;
    font-size: 20px;
    color: #1A1A1A;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.content-sub,
.service-sub {
    margin-bottom: 30px;
}

.content-sub h3,
.service-sub h3 {
    font-size: 15px;
    color: #333333;
    font-weight: 500;
    margin-bottom: 16px;
}

.content-sub p,
.service-sub p {
    font-size: 14px;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 12px;
}

.content-sub ul,
.service-sub ul {
    list-style: none;
    padding: 0;
}

.content-sub ul li,
.service-sub ul li {
    font-size: 14px;
    color: #666666;
    line-height: 2.2;
    padding-left: 16px;
    position: relative;
}

.content-sub ul li::before,
.service-sub ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #999999;
}

/* ========== 公共标题行 ========== */
.section-title-line {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.section-title-line::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: var(--color-red);
    margin-right: 12px;
    flex-shrink: 0;
}

.section-title-line h2 {
    font-family: "思源宋体", "SimSun", serif;
    font-size: 22px;
    color: #1A1A1A;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Practice Cards */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #E5E5E5;
    border: 1px solid #E5E5E5;
}

.practice-card {
    background: #FFFFFF;
    padding: 50px 40px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.practice-card:hover {
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transform: translateY(-5px);
}

.practice-number {
    font-size: 14px;
    color: #C41E3A;
    margin-bottom: 20px;
    font-weight: 500;
}

.practice-card h3 {
    font-family: "思源宋体", "SimSun", serif;
    font-size: 22px;
    color: #1A1A1A;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 1px;
}

.practice-card p {
    font-size: 14px;
    color: #999999;
    line-height: 1.8;
    margin-bottom: 20px;
}

.practice-more {
    color: #3B5990;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
    font-weight: 500;
}

.practice-more:hover {
    color: #C41E3A;
}
footer {
    background: #0a1935;
    padding: 60px 0 25px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    /* padding-bottom: 40px; */
    /* border-bottom: 1px solid rgba(255,255,255,0.1); */
}

.footer-about h3 {
    font-family: "思源宋体", "SimSun", serif;
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 2px;
}

.footer-about p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-contact p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 2;
}

.footer-links {
    text-align: center;
    width: 200px;
}

.footer-links h4 {
    font-size: 15px;
    color: #FFFFFF;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #C41E3A;
}

.footer-social {
    grid-column: 3 / 3;
    display: flex;
    justify-content: center;
    padding-bottom: 40px; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-qr-section {
    text-align: center;
}

.footer-qr-section h4 {
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 25px;
    letter-spacing: 2px;
    font-weight: 400;
}

.footer-qr-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #FFFFFF;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.qr-item:hover img {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.qr-item span {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    letter-spacing: 1px;
}

.footer-qr-lightbox {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.footer-qr-lightbox-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 90%;
    max-height: 90%;
}

.footer-qr-lightbox-img {
    max-width: 420px;
    max-height: 80vh;
    width: auto;
    height: auto;
    background: #FFFFFF;
    padding: 20px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.footer-qr-lightbox-caption {
    color: #FFFFFF;
    font-size: 18px;
    letter-spacing: 2px;
    text-align: center;
}

.footer-qr-lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #FFFFFF;
    font-size: 42px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.footer-qr-lightbox-close:hover {
    color: #ccc;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: #FFFFFF;
}

/* 透明导航：Logo 与栏目均无底色，文字在轮播图上保持清晰。 */
header {
    background: transparent;
    box-shadow: none;
}

.header-main {
    width: min(1460px, calc(100vw - 48px));
    padding: 0;
    background: transparent;
}

.logo {
    margin-right: 22px;
    padding: 9px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}
.logo-wordmark .logo-cn { text-shadow: 0 1px 2px rgba(255,255,255,.95), 0 0 12px rgba(255,255,255,.78); }
.logo-wordmark .logo-en { text-shadow: 0 1px 2px rgba(255,255,255,.95), 0 0 10px rgba(255,255,255,.72); }

.site-navigation { flex: 1 1 auto; min-width: 0; margin-left: 28px; }
.site-navigation .nav-primary {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-navigation .nav-primary > li { position: relative; flex: 1 1 0; text-align: center; }
.site-navigation .nav-primary > li > a,
.site-navigation .nav-more-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .04em;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 12px rgba(0,0,0,.68);
    white-space: nowrap;
    cursor: pointer;
    backdrop-filter: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.site-navigation .nav-primary > li > a:hover,
.site-navigation .nav-primary > li > a.active,
.site-navigation .nav-more-trigger:hover,
.site-navigation .nav-more.open .nav-more-trigger {
    color: #fff;
    background: transparent;
    border-color: transparent;
    color: #f5d36b;
    transform: translateY(-1px);
}
.site-navigation .nav-primary > li > a::after { content: none; }
.site-navigation .nav-more-trigger:focus { outline: none; }
.site-navigation .nav-more-trigger:focus-visible .nav-menu-icon { filter: drop-shadow(0 0 5px rgba(245,211,107,.85)); }
.nav-menu-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    width: 26px;
    height: 22px;
    gap: 5px;
}
.nav-menu-icon i {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 1px 3px rgba(0,0,0,.8);
    transition: transform .2s ease, opacity .2s ease;
}
.nav-more.open .nav-menu-icon i:first-child { transform: translateY(7px) rotate(45deg); }
.nav-more.open .nav-menu-icon i:nth-child(2) { opacity: 0; }
.nav-more.open .nav-menu-icon i:last-child { transform: translateY(-7px) rotate(-45deg); }
.nav-more-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 190px;
    padding: 8px 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: .18s ease;
}
.nav-more.open .nav-more-menu { opacity: 1; visibility: visible; transform: none; }
.nav-more-menu a { display: block; padding: 11px 12px; border-radius: 3px; color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,.98), 0 0 12px rgba(0,0,0,.78); }
.nav-more-menu a:hover, .nav-more-menu a.active { color: #f5d36b; background: transparent; }
.header-right { display: none !important; }

#header-container:has(+ .page-banner) { position: relative; z-index: 1000; height: 0; }
#header-container:has(+ .page-banner) header { position: absolute; top: 24px; left: 0; width: 100%; }

.footer-wordmark { display: inline-flex; flex-direction: column; width: 207px; gap: 4px; margin: 0 0 18px; }
.footer-wordmark .logo-cn { color: rgba(255,255,255,.84); font: 400 23px/1.15 "Microsoft YaHei", "PingFang SC", sans-serif; }
.footer-wordmark [data-brand-accent] { color: #e0633d; font-weight: 600; }
.footer-wordmark .logo-en { display: flex; justify-content: space-between; width: 207px; color: #fff; font: 500 22px/1 Arial, sans-serif; letter-spacing: .01em; }

@media (max-width: 900px) {
    .header-main { width: calc(100vw - 24px); }
    .logo { margin-right: 10px; padding: 8px 10px; }
    .logo .logo-wordmark, .logo-wordmark .logo-en { width: 171px; }
    .logo-wordmark .logo-cn { font-size: 19px; }
    .logo-wordmark .logo-en { font-size: 18px; }
    .site-navigation { margin-left: 8px; }
    .site-navigation .nav-primary > li > a, .site-navigation .nav-more-trigger { padding-inline: 8px; font-size: 14px; }
}
