/* ============================================================
   GEO SaaS — 企业门户 (Portal)
   清新官网 · 绿 #00a83b + 红 #e05862 + 白底
   ============================================================ */

:root {
    --primary: #00a83b;
    --primary-dark: #008a30;
    --primary-light: #e8f7ed;
    --primary-subtle: rgba(0, 168, 59, 0.06);
    --primary-gradient: linear-gradient(135deg, #008a30, #00a83b);
    --accent: #e05862;
    --accent-dark: #c94a54;
    --nav-hover-green: #34bc74;
    --submenu-bg: #f0f8ff;
    --submenu-text: #18823d;
    --cream: #f8f6f9;
    --gray-50: #f5f5f5;
    --gray-100: #eeeeee;
    --gray-200: #e0e0e0;
    --gray-300: #cccccc;
    --gray-400: #999999;
    --gray-500: #666666;
    --gray-600: #555555;
    --gray-700: #333333;
    --gray-800: #222222;
    --gray-900: #111111;
    --white: #ffffff;
    --radius: 6px;
    --radius-lg: 10px;
    --radius-xl: 15px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 28px rgba(0,0,0,0.10);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --shadow-glow: 0 8px 28px rgba(0,168,59,0.15);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --font: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max: 1280px;
    --primary-rgb: 0, 168, 59;
}

html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { width: 0; height: 0; }
body { background: #fff; overflow-x: hidden; font-family: var(--font); }

/* ============================================================
   顶部信息条
   ============================================================ */
.top-bar {
    background: #fcfcfc;
    border-bottom: 1px dotted var(--gray-300);
    padding: 6px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    flex-wrap: nowrap;
}
.top-bar-left {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-bar-left .welcome-title { color: var(--gray-700); font-weight: 500; }
.top-bar-left .welcome-subtitle { margin-left: 6px; color: var(--gray-500); }
.top-bar-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* top-bar 内搜索 */
.top-bar .search-widget,
.top-bar #searchWidget {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    width: auto;
}
.top-bar .search-trigger {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    background: white;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
}
.top-bar .search-trigger:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.top-bar .search-trigger .ico {
    position: absolute;
    width: 13px;
    height: 13px;
}
.top-bar .search-trigger .ico-close { display: none; }
.top-bar .search-widget.open .search-trigger .ico-search { display: none; }
.top-bar .search-widget.open .search-trigger .ico-close { display: block; }
.top-bar .search-widget.open .search-trigger {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.top-bar .search-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--primary);
    padding: 10px;
    z-index: 102;
}
.top-bar .search-widget.open .search-panel { display: block; }
.top-bar .search-form-inline {
    display: flex;
    gap: 6px;
    align-items: center;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 3px;
    border: 1px solid var(--gray-200);
    margin: 0;
}
.top-bar .search-input {
    flex: 1 1 0;
    padding: 0.55rem 0.8rem;
    border: none;
    outline: none;
    font-size: 0.88rem;
    background: transparent;
    color: var(--gray-800);
    min-width: 0;
    width: auto;
}
.top-bar .search-submit {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.top-bar .search-submit:hover { background: var(--accent); }

/* top-bar 内语言 */
.top-bar .lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}
.top-bar .lang-switcher a {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    background: white;
    color: var(--gray-600);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    padding: 0;
    line-height: 1;
    transition: all 0.25s;
}
.top-bar .lang-switcher a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}
.top-bar .lang-switcher a.active-link {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================================
   头部
   ============================================================ */
.site-header {
    background: #fff;
    border: none;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem 0;
    box-sizing: border-box;
    position: relative;
    min-height: auto;
    height: auto;
}

/* Logo */
.site-logo {
    order: 1;
    flex: 0 1 auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    min-width: 0;
}
.site-logo-img { max-height: 60px; width: auto; display: block; }
.site-logo-icon {
    width: 60px; height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    flex-shrink: 0;
}
.site-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: 2px;
    line-height: 1.4;
    white-space: nowrap;
}
.site-logo-text span { color: var(--primary); }

/* 品牌口号（Logo 右侧） */
.brand-slogan {
    padding-left: 1rem;
    border-left: 1px solid var(--gray-300);
    min-width: 0;
}
.brand-slogan h3 {
    font-size: 25px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: 2px;
    line-height: 1.3;
    margin: 0;
}
.brand-slogan h3 .brand-prefix { color: var(--primary); }
.brand-slogan i {
    display: block;
    font-style: normal;
    font-size: 15px;
    color: var(--gray-500);
    letter-spacing: 4px;
    margin-top: 4px;
    line-height: 2;
}

/* 电话热线（Logo 右侧最右端） */
.header-tel {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.header-tel .tel-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.header-tel .tel-item i {
    display: block;
    font-style: normal;
    font-size: 20px;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.3;
}
.header-tel .tel-item h4 {
    font-size: 25px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.header-tel .tel-item + .tel-item {
    padding-left: 2rem;
    border-left: 1px solid var(--gray-300);
}

/* 汉堡按钮 */
.site-menu-btn {
    order: 3;
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
    background: transparent;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    padding: 0.35rem;
    border-radius: 6px;
    cursor: pointer;
    display: none;
}
.site-menu-btn:hover { background: var(--gray-100); }

/* ============================================================
   主导航（通栏框架 + 内层 1280 均分）
   ============================================================ */
.site-nav {
    /* 通栏框架：绿上红下边框铺满屏幕 */
    order: 99;
    flex: 0 0 100vw;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    background: #fff;
    border-top: 15px solid var(--primary);
    border-bottom: 15px solid var(--accent);
    display: flex;
    justify-content: center;
    align-items: stretch;
    position: relative;
    z-index: 100;
}

/* 内层：限制 1280，菜单项均分 */
.site-nav .nav-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.site-nav .nav-inner > a,
.site-nav .nav-inner .nav-item {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    padding: 0 0.5rem;
    line-height: 60px;
    height: 60px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    text-align: center;
    border-right: 1px solid #cccccc;
    transition: all 0.2s;
    position: relative;
    white-space: nowrap;
    background: #fff;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}
.site-nav .nav-inner > a:first-child { border-left: 1px solid #cccccc; }
.site-nav .nav-inner > a:hover,
.site-nav .nav-inner > a.active,
.site-nav .nav-inner .nav-item:hover,
.site-nav .nav-inner .nav-item.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* 非 Portal 模板时语言切换器在 nav 内 */
.site-nav .nav-inner .lang-switcher {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 0.8rem;
    align-self: center;
}

/* Hero */
.hero-slider {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    aspect-ratio: 21 / 9 !important;
    max-height: 500px !important;
    min-height: 280px !important;
    background: #0a3d1c;
    overflow: hidden !important;
}
.hero-slider .hero-slide {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
}
.hero-slider .hero-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-slider .hero-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}
.hero-slider .hero-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    max-width: 800px;
    width: 100%;
    text-align: center;
    padding: 0 1.5rem;
    pointer-events: none;
}
.hero-slider .hero-caption h2 {
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 2px;
    background: rgba(var(--primary-rgb), 0.92);
    display: inline-block;
    padding: 0.5rem 2rem;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    line-height: 1.6;
}

/* Section */
.section { padding: 3rem 0; position: relative; }
.section-alt { background: var(--cream); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: 0.5px;
    line-height: 1.4;
}
.section-header h2 span { color: var(--primary); }
.section-header .subtitle,
.section-header .section-subtitle {
    font-size: 1rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
    display: block;
}
.section-divider {
    width: 70px;
    height: 3px;
    background: var(--primary);
    margin: 0.8rem auto 0;
    border-radius: 2px;
    position: relative;
}
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid white;
}

/* 数据展示（白底 + 深色字） */
.stats-section {
    background: white;
    padding: 2.5rem 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}
.stats-section .section-header h2 {
    color: var(--gray-900);
}
.stats-section .section-header .section-subtitle {
    color: var(--gray-400);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}
.stat-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -1px;
}
.stat-label {
    font-size: 16px;
    color: var(--gray-600);
    margin-top: 6px;
}

/* 服务卡片 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

/* ------------------------------------------------------------
   服务卡片列数自适应（PC 端，按服务数量动态）
   - 恰好 4 个 → 一行 4 列
   - 恰好 5 个 → 一行 5 列
   - 恰好 6 个 → 一行 3 列，2 行
   - 恰好 8 个 → 一行 4 列，2 行
   - 其他数量 → 走上方默认的 auto-fill
   ------------------------------------------------------------ */
@media (min-width: 769px) {
    .services-grid:has(> *:nth-child(4)):not(:has(> *:nth-child(5))) {
        grid-template-columns: repeat(4, 1fr);
    }
    .services-grid:has(> *:nth-child(5)):not(:has(> *:nth-child(6))) {
        grid-template-columns: repeat(5, 1fr);
    }
    .services-grid:has(> *:nth-child(6)):not(:has(> *:nth-child(7))) {
        grid-template-columns: repeat(3, 1fr);
    }
    .services-grid:has(> *:nth-child(8)):not(:has(> *:nth-child(9))) {
        grid-template-columns: repeat(4, 1fr);
    }
}
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.service-card .service-img-wrap,
.service-card .service-image-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.service-card .service-img-wrap img,
.service-card .service-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--bounce);
    display: block;
}
.service-card:hover .service-img-wrap img,
.service-card:hover .service-image-wrap img { transform: scale(1.06); }
.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    padding: 1.2rem 1.5rem 0.4rem;
    text-align: center;
}
.service-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.8;
    padding: 0 1.5rem 1.5rem;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 优势 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.advantage-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}
.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}
.advantage-icon {
    width: 68px; height: 68px;
    margin: 0 auto 1rem;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
}
.advantage-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}
.advantage-card p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.7; }

/* 新闻 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.4rem;
}
.news-card {
    display: flex;
    gap: 1.2rem;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    align-items: center;
}
.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary);
}
.news-date {
    background: var(--primary-light);
    border-radius: 10px;
    padding: 0.6rem;
    min-width: 60px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
    flex-shrink: 0;
}
.news-date small {
    display: block;
    font-size: 0.6rem;
    color: var(--primary);
    opacity: 0.7;
    font-weight: 500;
}
.news-content { min-width: 0; }
.news-content h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; line-height: 1.5; }
.news-content h3 a { color: var(--gray-900); transition: var(--transition); }
.news-content h3 a:hover { color: var(--primary); }
.news-content p {
    color: var(--gray-500);
    font-size: 0.82rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.case-list-img, .case-image {
    width: 120px; height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid var(--gray-100);
}
.news-card:has(.case-list-img) .news-content p,
.news-card:has(.case-image) .news-content p { display: none !important; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-md); border-left-color: var(--accent); }
.faq-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.4rem; }
.faq-item h4::before { content: "Q "; color: var(--primary); font-weight: 800; }
.faq-item p { color: var(--gray-500); font-size: 0.85rem; padding-left: 1.4rem; line-height: 1.7; }

/* 团队 */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.team-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--gray-100);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.team-avatar { width: 100%; height: 260px; object-fit: cover; }
.team-info { padding: 1.2rem; border-top: 2px solid var(--primary); }
.team-info h4 { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); }
.team-info p { font-size: 0.85rem; color: var(--gray-500); margin-top: 0.2rem; }

/* 相册 */
.gallery-marquee {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0;
    max-width: 100%;
}
.gallery-track {
    display: flex;
    gap: 1.2rem;
    width: max-content;
    animation: galleryScroll linear infinite;
    animation-duration: 40s;
}
.gallery-marquee:hover .gallery-track { animation-play-state: paused; }
@keyframes galleryScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.gallery-item {
    flex: 0 0 auto;
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
}
.gallery-item img {
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
    background: var(--gray-100);
}
.gallery-title {
    font-size: 0.88rem;
    color: var(--gray-700);
    font-weight: 500;
    text-align: center;
    padding: 0 0.3rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gallery-item:hover .gallery-title { color: var(--primary); }

/* 联系 */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.contact-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.6rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    border-top: 3px solid var(--primary);
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-top-color: var(--accent); }
.contact-icon {
    width: 60px; height: 60px;
    margin: 0 auto 0.8rem;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}
.contact-card h4 { font-size: 1rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.4rem; }
.contact-card p { font-size: 0.9rem; color: var(--gray-500); word-break: break-word; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }
.about-text p { color: var(--gray-600); line-height: 2; font-size: 1rem; margin-bottom: 0.8rem; text-indent: 2em; text-align: justify; }

/* 页脚 */
.site-footer { background: #29262a; color: #d8d8d8; padding: 2.5rem 0 1.5rem; }
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #454545;
}
.footer-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.footer-logo-icon {
    width: 40px; height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}
.footer-logo-img { height: 40px; width: auto; display: block; }
.footer-logo-text { color: white; font-weight: 700; font-size: 1.1rem; }
.footer-nav-col {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    flex: 1 1 auto;
}
.footer-nav-col a {
    color: #d8d8d8;
    font-size: 13px;
    padding: 0 12px;
    border-right: 1px solid #555;
    transition: color 0.25s;
}
.footer-nav-col a:last-child { border-right: none; }
.footer-nav-col a:hover { color: var(--primary); }
.footer-contact-col { display: flex; flex-direction: column; gap: 0.4rem; font-size: 12px; }
.footer-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #d8d8d8;
    text-decoration: none;
}
.footer-info svg { color: var(--primary); flex-shrink: 0; width: 14px; height: 14px; }
.footer-info:hover { color: var(--primary); }
.footer-bottom { padding-top: 1rem; text-align: center; font-size: 12px; color: #d8d8d8; line-height: 2; }
.footer-bottom a { color: #d8d8d8; font-size: 12px; }
.footer-bottom a:hover { color: var(--primary); }

/* 悬浮按钮 */
.floating-sidebar {
    position: fixed;
    left: 0;
    top: 28%;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.floating-sidebar a {
    width: 70px;
    padding: 10px 4px;
    background: var(--primary);
    color: white;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}
.floating-sidebar a:hover { background: var(--accent); }
.floating-sidebar a svg { width: 20px; height: 20px; }

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 44px; height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
    z-index: 99;
    opacity: 0; visibility: hidden;
    transition: all 0.4s var(--bounce);
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px) scale(1.06); background: var(--accent); }

/* 内页 */
.page-container { padding: 3rem 0; min-height: 60vh; background: var(--cream); }
.page-title { font-size: 2rem; font-weight: 700; color: var(--gray-900); text-align: center; margin-bottom: 2.5rem; }
.filter-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; justify-content: center; }
.filter-tags a {
    padding: 0.4rem 1.4rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1.5px solid var(--gray-200);
    color: var(--gray-600);
    background: white;
}
.filter-tags a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.filter-tags a.active { background: var(--primary-gradient); color: white; border-color: transparent; }
.breadcrumb { padding: 1rem 0; color: var(--gray-500); font-size: 0.85rem; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.breadcrumb a { color: var(--primary); }
.article-main {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    max-width: 1280px;
    margin: 2rem auto;
}
.article-main h1 { font-size: 1.8rem; color: var(--gray-900); text-align: center; }
.article-meta {
    color: var(--gray-400);
    font-size: 0.85rem;
    padding: 0.8rem 0 1.2rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
    text-align: center;
}
.article-body { font-size: 1rem; color: var(--gray-700); line-height: 2; }
.article-body h2 { font-size: 1.3rem; margin: 1.8rem 0 0.8rem; color: var(--gray-900); }
.article-body p { margin: 0.8rem 0; }

.pagination-container { display: flex; justify-content: center; margin: 2rem 0; }
.pagination { display: flex; gap: 0.3rem; list-style: none; }
.pagination li a, .pagination li span {
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 0.85rem;
    transition: var(--transition);
    background: white;
}
.pagination li a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination li.active span { background: var(--primary-gradient); color: white; border-color: transparent; }

/* 移动端底部导航 */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: white;
    border-top: 2px solid var(--primary);
    z-index: 99;
    padding: 0.4rem 0.5rem;
    justify-content: space-around;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.mobile-bottom-nav a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.7rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0.3rem 0.4rem;
    border-radius: 6px;
    transition: var(--transition);
    min-width: 50px;
}
.mobile-bottom-nav a:hover { color: var(--primary); background: var(--primary-light); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1280px) {
    .container { padding: 0 1.2rem; }
    .site-nav .nav-inner { padding: 0 1.2rem; }
    .site-nav .nav-inner > a,
    .site-nav .nav-inner .nav-item { padding: 0 0.4rem; font-size: 14px; }
    .gallery-item { width: 240px; }
    .gallery-item img { height: 160px; }
}

@media (max-width: 1024px) {
    .brand-slogan h3 { font-size: 18px; }
    .brand-slogan i { font-size: 11px; letter-spacing: 2px; }
    .header-tel { gap: 1rem; }
    .header-tel .tel-item h4 { font-size: 17px; }
    .header-tel .tel-item i { font-size: 11px; }
    .header-tel .tel-item + .tel-item { padding-left: 1rem; }

    .site-logo-img { max-height: 50px; }
    .site-logo-icon { width: 50px; height: 50px; font-size: 1.5rem; }
    .site-logo-text { font-size: 18px; }

    .site-nav .nav-inner > a,
    .site-nav .nav-inner .nav-item { padding: 0 0.35rem; font-size: 13px; line-height: 50px; height: 50px; }

    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .faq-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .case-list-img { width: 100px; height: 75px; }
    .floating-sidebar { display: none; }
}

@media (max-width: 768px) {
    /* 顶栏：保留欢迎语正标题 + 搜索 + 语言 */
    .top-bar { padding: 4px 0; }
    .top-bar .container { padding: 0 0.9rem; gap: 0.5rem; }
    .top-bar-left { font-size: 11px; }
    .top-bar-left .welcome-subtitle { display: none; }
    .top-bar .search-trigger,
    .top-bar .lang-switcher a { width: 24px; height: 24px; }
    .top-bar .search-panel { width: 280px; }

    /* 头部：logo + 汉堡 */
    .site-header .container {
        flex-wrap: nowrap;
        gap: 0.35rem;
        padding: 0.7rem 0.9rem 0;
        align-items: center;
    }
    .site-logo {
        margin-right: auto;
        max-width: 40%;
        flex: 0 1 auto;
        gap: 0.5rem;
    }
    .site-logo-img { max-height: 40px; }
    .site-logo-icon { width: 40px; height: 40px; font-size: 1.15rem; }
    .site-logo-text { font-size: 14px; letter-spacing: 0.5px; }

    /* 品牌口号和电话在移动端隐藏 */
    .brand-slogan,
    .header-tel { display: none !important; }

    /* 汉堡显示 */
    .site-menu-btn { display: flex; }

    /* 导航：折叠为抽屉 */
    .site-nav {
        order: 99;
        flex: 1 1 100%;
        width: auto;
        max-width: none;
        margin: 0.6rem -0.9rem 0;
        border-top: 5px solid var(--primary);
        border-bottom: 5px solid var(--accent);
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 12px 32px rgba(0,0,0,0.12);
        z-index: 99;
        max-height: 70vh;
        overflow-y: auto;
        box-sizing: border-box;
    }
    .site-nav.open { display: flex; }

    /* nav-inner 变成纵向，宽度 100% */
    .site-nav .nav-inner {
        flex-direction: column;
        max-width: none;
        width: 100%;
        padding: 0;
    }

    .site-nav .nav-inner > a,
    .site-nav .nav-inner .nav-item {
        flex: 0 0 auto;
        width: 100%;
        padding: 0.9rem 1.2rem;
        line-height: 1.6;
        height: auto;
        font-size: 15px;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid var(--gray-100);
        border-left: none !important;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }
    .site-nav .nav-inner > a:hover,
    .site-nav .nav-inner > a.active {
        background: var(--accent);
        color: white;
    }

    /* Section */
    .section { padding: 3rem 0; }
    .section-header h2 { font-size: 1.4rem; }
    .section-header .subtitle,
    .section-header .section-subtitle { font-size: 0.88rem; }

    /* Hero */
    .hero-slider {
        aspect-ratio: 16 / 9 !important;
        min-height: 200px !important;
        max-height: 320px !important;
    }
    .hero-slider .hero-caption h2 { font-size: 1rem; padding: 0.4rem 1.2rem; }

    /* 数据 */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
    .stat-num { font-size: 32px; }
    .stat-label { font-size: 13px; }

    /* 服务 */
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }
    .service-card .service-img-wrap,
    .service-card .service-image-wrap { height: 140px; }
    .service-card h3 {
        padding: 0.7rem 0.6rem 0.3rem;
        font-size: 0.92rem;
    }
    .service-card p {
        padding: 0 0.7rem 0.9rem;
        font-size: 0.72rem;
        line-height: 1.5;
        -webkit-line-clamp: 2;
    }

    /* 优势 */
    .advantages-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .advantage-card { padding: 1.4rem 1rem; }
    .advantage-icon { width: 52px; height: 52px; font-size: 1.4rem; }

    /* 新闻 */
    .news-grid { grid-template-columns: 1fr; }
    .news-card { flex-direction: row; align-items: center; gap: 0.8rem; padding: 0.9rem 1rem; }
    .news-date { min-width: 50px; font-size: 1.05rem; padding: 0.4rem; }
    .news-date small { font-size: 0.55rem; }
    .news-content h3 { font-size: 0.88rem; }
    .news-content p { display: none; }

    /* 案例卡片 */
    .news-card:has(.case-list-img) { flex-direction: column; align-items: stretch; }
    .news-card:has(.case-list-img) .case-list-img {
        width: 100%;
        height: 170px;
        margin-bottom: 0.6rem;
    }

    /* 团队 */
    .team-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .team-avatar { height: 170px; }
    .team-info { padding: 0.8rem; }
    .team-info h4 { font-size: 0.92rem; }

    /* 相册 */
    .gallery-marquee { mask-image: none; -webkit-mask-image: none; overflow: hidden; padding: 0; }
    .gallery-track {
        animation: none !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.6rem !important;
        width: 100% !important;
    }
    .gallery-track > .gallery-item:nth-child(n+7) { display: none !important; }
    .gallery-item { width: 100%; }
    .gallery-item img { height: 130px; border-radius: 8px; }
    .gallery-title { font-size: 0.78rem; }

    /* FAQ */
    .faq-grid { grid-template-columns: 1fr; }

    /* 联系 */
    .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
    .contact-card { padding: 0.8rem 0.4rem; }
    .contact-icon { width: 40px; height: 40px; font-size: 1rem; margin-bottom: 0.3rem; }
    .contact-card h4 { font-size: 0.72rem; }
    .contact-card p { font-size: 0.65rem; line-height: 1.3; }

    /* 页脚 */
    .footer-top { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .footer-nav-col { justify-content: flex-start; }
    .footer-nav-col a { padding: 0 8px; font-size: 12px; }
    .footer-bottom { font-size: 11px; }

    /* 底部导航 */
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 66px; }
    .back-to-top { bottom: 80px; right: 16px; width: 40px; height: 40px; }

    /* 文章 */
    .article-main { padding: 1.5rem; }
    .page-title { font-size: 1.5rem; }
}

@media (max-width: 400px) {
    .advantages-grid, .team-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .gallery-track { grid-template-columns: 1fr 1fr; }
    .hero-slider { aspect-ratio: 4 / 3 !important; min-height: 200px !important; }
    .site-logo-text { display: none; }
}

/* ============================================================
   ★ 案例展示网格（图片上 + 标题下）
   ============================================================ */
.case-showcase-grid {
    display: grid;
    grid-template-columns: repeat(var(--case-cols, 4), minmax(0, 1fr));
    gap: 1.5rem;
}

.case-showcase-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.case-showcase-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: var(--gray-100, #f3f4f6);
    cursor: default;
}

.case-showcase-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.case-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.case-showcase-item:hover .case-cover-img {
    transform: scale(1.04);
}

.case-cover-empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

/* 标题 */
.case-showcase-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900, #111827);
    line-height: 1.5;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}
.case-showcase-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s;
}
.case-showcase-title a:hover {
    color: var(--primary, #0284c7);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .case-showcase-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .case-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem;
    }
    .case-showcase-title {
        font-size: 0.88rem;
    }
}

@media (max-width: 400px) {
    .case-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem;
    }
    .case-showcase-title {
        font-size: 0.82rem;
    }
}

/* ============================================================
   ★ Portal 首页新闻模块（分类分组 + Tab 切换）
   ============================================================ */
.portal-news-wrap {
    position: relative;
}

/* ---------- 移动端 Tab 导航（PC 隐藏） ---------- */
.portal-news-tabs {
    display: none;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.portal-news-tabs::-webkit-scrollbar { display: none; }

.portal-news-tab {
    flex: 1;
    min-width: 90px;
    padding: 0.75rem 1rem;
    border: none;
    background: var(--gray-50, #f5f5f5);
    color: var(--gray-600, #666);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
    outline: none;
}
.portal-news-tab:hover {
    color: var(--primary);
    background: var(--primary-light, #e8f7ed);
}
.portal-news-tab.active {
    background: #fff;
    color: var(--primary);
    border-bottom-color: var(--accent, #e05862);
    font-weight: 700;
}

/* ---------- PC 端：一行 3 列 ---------- */
.portal-news-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.portal-news-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* 分类标题 */
.portal-news-column-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900, #333);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--gray-200, #eee);
    letter-spacing: 0.5px;
    line-height: 1.4;
}
.portal-news-column-title::before {
    content: "» ";
    color: var(--primary);
    margin-right: 4px;
    font-weight: 900;
    font-family: sans-serif;
}

/* 分类图片 16:9 */
.portal-news-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--gray-100, #f0f0f0);
    text-decoration: none;
}
.portal-news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.portal-news-cover:hover img {
    transform: scale(1.05);
}

/* 文章列表 */
.portal-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}
.portal-news-list li {
    border-bottom: 1px dashed var(--gray-200, #e5e5e5);
    padding: 0.55rem 0;
    line-height: 1.6;
}
.portal-news-list li:last-child {
    border-bottom: none;
}
.portal-news-list a {
    color: var(--gray-600, #555);
    text-decoration: none;
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    transition: color 0.25s;
    font-size: 0.88rem;
}
.portal-news-list a:hover {
    color: var(--primary);
}
.portal-news-item-date {
    color: var(--gray-400, #999);
    font-size: 0.78rem;
    flex-shrink: 0;
    font-family: 'Courier New', Consolas, monospace;
    font-weight: 500;
    letter-spacing: 0;
}
.portal-news-item-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 平板（1024px 以下） ---------- */
@media (max-width: 1024px) {
    .portal-news-columns {
        gap: 1.5rem;
    }
    .portal-news-column-title {
        font-size: 1.05rem;
    }
    .portal-news-list a {
        font-size: 0.82rem;
    }
    .portal-news-item-date {
        font-size: 0.72rem;
    }
}

/* ---------- 移动端：Tab 切换，隐藏其他列 ---------- */
@media (max-width: 768px) {
    .portal-news-tabs {
        display: flex;
    }

    .portal-news-columns {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .portal-news-column {
        display: none;
    }
    .portal-news-column.active {
        display: flex;
    }

    .portal-news-column-title {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .portal-news-list .portal-news-item-text {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }
}