/* ==================== 
   汇程移民 - 全局样式
   ==================== */

:root {
    --primary: #00a8a8;
    --primary-dark: #007a8a;
    --primary-light: #e6f7f7;
    --secondary: #1e3a5f;
    --accent: #ff6b35;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg: #ffffff;
    --bg-light: #f5f8fa;
    --bg-gray: #f0f4f5;
    --border: #e5e9eb;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 
   按钮样式
   ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 168, 0.3);
}

.btn-header {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
}

.btn-header:hover {
    background: var(--primary-dark);
}

.btn-small {
    padding: 8px 20px;
    font-size: 13px;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-small:hover {
    background: var(--primary);
    color: white;
}

.btn-block {
    width: 100%;
}

/* ==================== 
   顶部联系栏
   ==================== */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    opacity: 0.9;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hotline-label {
    margin-right: 6px;
}

.hotline-num {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.hotline-num:hover {
    color: #ffeb3b;
}

.hotline-sep {
    opacity: 0.6;
    margin: 0 4px;
}

/* ==================== 
   主导航
   ==================== */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

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

.main-nav {
    flex: 1;
    margin-left: 40px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;
    padding: 24px 16px;
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
    position: relative;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--primary);
}

.nav-list > li > a.active::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text);
}

.dropdown a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== 
   Banner区域
   ==================== */
.hero {
    position: relative;
    height: 580px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    color: white;
    width: 100%;
    padding-top: 40px;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.slide-content .btn {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.slider-dots {
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background: white;
    width: 28px;
    border-radius: 5px;
}

/* ==================== 
   通用区块
   ==================== */
.section {
    padding: 70px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-header.center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-icon {
    font-size: 28px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-light);
}

.link-more {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.link-more:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* ==================== 
   全球移民快捷入口
   ==================== */
.section-countries-quick {
    background: var(--bg-light);
    padding: 50px 0;
}

.country-quick-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

.country-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 10px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.country-quick-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.country-flag {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f0f4f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-quick-item span:last-child {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* ==================== 
   服务业务
   ==================== */
.section-services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text);
}

.service-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==================== 
   移民国家
   ==================== */
.section-countries {
    background: var(--bg-light);
}

.countries-slider {
    position: relative;
    overflow: hidden;
}

.countries-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
}

.country-card {
    flex: 0 0 calc(25% - 18px);
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.country-img {
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-flag-lg {
    font-size: 64px;
    opacity: 0.9;
}

.country-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: white;
}

.country-name-overlay h3 {
    font-size: 20px;
    font-weight: 600;
}

.country-name-overlay span {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
}

.country-info {
    padding: 18px;
}

.country-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 
   移民项目
   ==================== */
.section-projects {
    background: white;
}

.project-tabs,
.news-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 15px;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}

.project-panels {
    position: relative;
}

.project-panel {
    display: none;
}

.project-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.project-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.project-img {
    height: 150px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.project-country {
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.project-info {
    padding: 18px;
}

.project-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text);
}

.project-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==================== 
   移民攻略
   ==================== */
.section-news {
    background: white;
}

.news-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

/* 左半：头条一大图（占满左半高度） */
.news-feature-primary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.news-feature-primary .news-feature-card {
    width: 100%;
    height: auto;
}
.news-feature-primary .news-feature-img {
    height: 300px;  /* 大图：与右侧列表高度平衡 */
    flex: 0 0 auto;
}

/* 头条一附文：紧凑型，填充大图下方的空白 */
.news-feature-mini {
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    min-height: 150px;
    border: 1px solid rgba(0, 122, 138, 0.08);
}
.news-feature-mini:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 122, 138, 0.20);
}
.news-feature-mini-icon {
    width: 140px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    background-size: cover;
    background-position: center;
}
.news-feature-mini-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.20) 100%);
    pointer-events: none;
}
.news-feature-mini-icon span {
    position: relative;
    z-index: 1;
}
.news-feature-mini-info {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.news-feature-mini-info h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-feature-mini-info p {
    font-size: 12.5px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-feature-mini-info .news-feature-date {
    margin-top: auto;
}

/* 左侧容器内的头条二卡片：与附文卡片视觉统一 */
.news-feature-primary .news-feature-card-secondary {
    border: 1px solid rgba(0, 122, 138, 0.08);
}

/* 右半：文章列表 */
.news-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* 头条二：无图，文字为主，渐变 + emoji 横幅 */
.news-feature-card-secondary {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    min-height: 150px;
}
.news-feature-card-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.news-feature-card-secondary .news-feature-icon-block {
    width: 160px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    background-size: cover;
    background-position: center;
}
.news-feature-card-secondary .news-feature-icon-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.20) 100%);
    pointer-events: none;
}
.news-feature-card-secondary .news-feature-icon-block span {
    position: relative;
    z-index: 1;
}
.news-feature-card-secondary .news-feature-info {
    flex: 1;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.news-feature-card-secondary .news-feature-info h3 {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-feature-card-secondary .news-feature-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 保留旧类名（兼容 news.html 内部可能用到） */
.news-feature-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.news-feature-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-feature-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    position: relative;
    color: rgba(255, 255, 255, 0.95);
    background-size: cover;
    background-position: center;
}
.news-feature-img::after {
    /* 暗色遮罩，让白字可读 */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
}
.news-feature-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 4px 10px;
    background: var(--accent, #E85D75);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.news-feature-info {
    padding: 22px 25px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-feature-info h3 {
    font-size: 17px;
    line-height: 1.5;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-feature-info p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-feature-date {
    margin-top: auto;
    padding-top: 10px;
    font-size: 12px;
    color: var(--text-muted, #999);
}

@media (max-width: 992px) {
    .news-content {
        grid-template-columns: 1fr;
    }
    .news-feature-primary .news-feature-img {
        height: 240px;
    }
    .news-feature-card-secondary .news-feature-icon-block {
        width: 110px;
        font-size: 48px;
    }
    .news-feature-mini-icon {
        width: 100px;
        font-size: 44px;
    }
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.news-item:hover {
    background: var(--primary-light);
}

.news-tag {
    flex-shrink: 0;
    padding: 4px 10px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 12px;
}

.news-tag.new {
    background: var(--accent);
}

.news-item h4 {
    flex: 1;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-date {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== 
   成功案例
   ==================== */
.section-cases {
    background: var(--bg-light);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.case-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    position: relative;
    overflow: hidden;
}

.case-read-more {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    background: rgba(0, 122, 138, 0.9);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: bottom 0.3s ease;
}

.case-card:hover .case-read-more {
    bottom: 0;
}

.case-info {
    padding: 22px;
}

.case-info h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.5;
}

.case-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.case-tags span {
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 12px;
}

/* ==================== 
   荣誉证书
   ==================== */
.section-certificates {
    background: white;
    padding: 60px 0;
}

.certificates-slider {
    position: relative;
    overflow: hidden;
}

.certificates-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.cert-card {
    flex: 0 0 calc(16.666% - 16.7px);
    min-width: 160px;
    text-align: center;
    padding: 25px 15px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.cert-card:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.cert-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.cert-card p {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.5;
}

/* ==================== 
   联系表单
   ==================== */
.section-contact {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 60px;
    align-items: center;
}

.contact-form-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form-box h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.contact-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form label {
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.contact-form input,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    outline: none;
}

.contact-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form select option {
    color: var(--text);
}

.contact-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.feature-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.feature-item h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 13px;
    opacity: 0.85;
}

/* ==================== 
   关于我们
   ==================== */
.section-about {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text);
}

.about-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 18px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item span {
    font-size: 13px;
    color: var(--text-light);
}

.about-img {
    height: 320px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    box-shadow: var(--shadow);
}

/* ==================== 
   页脚
   ==================== */
.main-footer {
    background: #1a2a3a;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

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

.footer-logo {
    height: 48px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.85;
}

.footer-hotline p {
    font-size: 13px;
    margin-bottom: 6px;
    opacity: 0.8;
}

.footer-hotline a {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.footer-hotline a:hover {
    color: var(--primary);
}

.footer-hotline span {
    margin: 0 8px;
    opacity: 0.5;
}

.footer-links h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 18px;
}

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

.footer-links a {
    font-size: 13px;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}

/* 关注我们：公众号二维码 */
.footer-qrcode-col h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 18px;
    text-align: center;
}
.footer-qrcode {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: center;
}
.footer-qrcode-item {
    flex: 0 1 auto;
    text-align: center;
    transition: transform 0.25s ease;
}
.footer-qrcode-item:hover {
    transform: translateY(-3px);
}
.footer-qrcode-img {
    width: 100%;
    max-width: 130px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
    display: block;
    margin: 0 auto 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-qrcode-item-title {
    font-size: 13px;
    color: white;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.4;
    text-align: center;
}
.footer-qrcode-item-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
    text-align: center;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-contact-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact-item a {
    color: #00D2C6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-contact-item a:hover {
    color: #2ff5e8;
    text-decoration: underline;
}

.footer-contact-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}

.footer-contact-item .contact-label {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    vertical-align: middle;
}

.footer-disclaimer {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
}

.footer-copyright {
    margin: 0;
    font-size: 12px;
    opacity: 0.6;
}

.footer-bottom p {
    font-size: 12px;
    opacity: 0.6;
}

.admin-entry {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: all 0.2s;
}

.admin-entry:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ==================== 
   滑块箭头
   ==================== */
.slider-arrows {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ==================== 
   侧边悬浮工具
   ==================== */
.side-tools {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-tool {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
}

.side-tool:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.tel-tool .side-tool-tip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 12px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.tel-tool:hover .side-tool-tip {
    opacity: 1;
    visibility: visible;
}

.side-tool-tip p {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.side-tool-tip strong {
    font-size: 16px;
    color: var(--primary);
}

.back-to-top {
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ==================== 
   弹窗
   ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 35px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text);
}

.modal-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text);
}

.modal-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* ==================== 
   动画
   ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== 
   全站电话号码微动画
   ==================== */
@keyframes hotline-pulse {
    0%, 100% {
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 18px rgba(0, 210, 198, 0.35);
        transform: scale(1.03);
    }
}

@keyframes phone-icon-ring {
    0%, 75%, 100% {
        transform: rotate(0deg) scale(1);
    }
    80% {
        transform: rotate(-14deg) scale(1.15);
    }
    85% {
        transform: rotate(10deg) scale(1.15);
    }
    90% {
        transform: rotate(-6deg) scale(1.1);
    }
    95% {
        transform: rotate(3deg) scale(1.05);
    }
}

/* 顶部热线号码：柔和白光脉冲 */
.top-bar .hotline-num {
    animation: hotline-pulse 2.2s ease-in-out infinite;
}

.top-bar .hotline-num:nth-of-type(2) {
    animation-delay: 0.4s;
}

/* 页脚热线号码：柔和白光脉冲 */
.footer-hotline a {
    animation: hotline-pulse 2.4s ease-in-out infinite;
}

.footer-hotline a:nth-of-type(2) {
    animation-delay: 0.5s;
}

/* 案例/项目详情页中部 CTA 电话 */
.cta-phones a {
    animation: hotline-pulse 2.4s ease-in-out infinite;
}

.cta-phones a:nth-of-type(2) {
    animation-delay: 0.5s;
}

/* 侧边悬浮电话图标：轻微摆动 */
.side-tool.tel-tool span {
    display: inline-block;
    transform-origin: center bottom;
    animation: phone-icon-ring 2.5s ease-in-out infinite;
}

/* 尊重用户关闭动画的偏好 */
@media (prefers-reduced-motion: reduce) {
    .top-bar .hotline-num,
    .footer-hotline a,
    .cta-phones a,
    .side-tool.tel-tool span {
        animation: none !important;
    }
}

/* ==================== 
   响应式设计
   ==================== */
@media (max-width: 1200px) {
    .country-quick-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .project-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-card {
        flex: 0 0 calc(25% - 15px);
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .main-nav.mobile-open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px;
    }

    .nav-list > li > a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-list > li > a.active::after {
        display: none;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        padding-left: 15px;
    }

    .has-dropdown:hover .dropdown {
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .btn-header {
        display: none;
    }

    .header-inner {
        justify-content: space-between;
    }

    .hero {
        height: auto;
        min-height: 600px;
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .country-card {
        flex: 0 0 calc(50% - 12px);
    }

    .news-content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-features {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img {
        order: -1;
        height: 250px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 10px;
        width: 100%;
    }

    .hotline-label {
        width: 100%;
        margin-right: 0;
        font-size: 12px;
        opacity: 0.85;
    }

    .hotline-num {
        font-size: 13px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .country-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid,
    .project-grid,
    .cases-grid,
    .about-stats {
        grid-template-columns: 1fr;
    }

    .country-card {
        flex: 0 0 100%;
    }

    .cert-card {
        flex: 0 0 calc(50% - 10px);
    }

    .contact-form-box {
        padding: 25px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
        text-align: center;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        text-align: center;
        max-width: 100%;
    }

    .footer-links,
    .footer-qrcode-col {
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 18px;
        margin-left: auto;
        margin-right: auto;
        display: block;
        height: 44px;
        width: auto;
    }

    .footer-hotline {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 8px;
    }

    .footer-hotline p {
        width: 100%;
        margin-bottom: 6px;
    }

    .footer-links h4,
    .footer-qrcode-col h4 {
        margin-bottom: 12px;
        font-size: 15px;
    }

    .footer-links ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 12px;
        text-align: center;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-qrcode {
        margin: 0 auto;
        justify-content: center;
    }

    .footer-qrcode-item {
        padding: 0;
    }

    .footer-qrcode-img {
        width: 110px;
        height: 110px;
        max-width: none;
        margin-bottom: 10px;
        padding: 5px;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .slider-dots {
        bottom: 320px;
    }

    .hero {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 26px;
    }

    .project-tabs,
    .news-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .side-tools {
        right: 10px;
        bottom: 80px;
    }

    .side-tool {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}

/* 文章详情正文内的图片（支持后台设置的左/中/右对齐与文字环绕） */
.article-body {
    overflow-wrap: break-word;
}
.article-body::after {
    content: '';
    display: block;
    clear: both;
}
.article-body img {
    max-width: 100%;
    height: auto !important;
    border-radius: 8px;
    margin: 12px auto;
    display: block;
}
.article-body img[style*="float: left"],
.article-body img[style*="float:left"] {
    margin: 8px 18px 8px 0;
}
.article-body img[style*="float: right"],
.article-body img[style*="float:right"] {
    margin: 8px 0 8px 18px;
}
