/* Service Page Styles */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #3182ce;
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Saira', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu .has-dropdown i {
    font-size: 10px;
    margin-left: 5px;
}

.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.header.scrolled .phone-link {
    color: var(--text-dark);
}

.phone-link i {
    font-size: 14px;
}

.search-btn,
.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: white;
    transition: var(--transition);
}

.header.scrolled .search-btn,
.header.scrolled .lang-btn {
    color: var(--text-dark);
}

.search-btn:hover,
.lang-btn:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

.header.scrolled .mobile-menu-btn {
    color: var(--text-dark);
}

/* Service Hero */
.service-hero {
    position: relative;
    height: 55vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.service-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 30, 60, 0.75) 0%, rgba(0, 30, 60, 0.35) 100%);
    z-index: -1;
}

.service-hero-content {
    color: white;
    padding-top: 60px;
    text-align: center;
}

.service-hero-content h1 {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
    max-width: none;
}

.btn-discover {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background-color: white;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    /* 保留基础圆角，clip-path会覆盖 */
    transition: var(--transition);
    /* 切掉左上和右下角，15px是切角的大小 */
    clip-path: polygon(15px 0%,
            /* 左上角切掉 */
            100% 0%,
            /* 右上角 */
            100% calc(100% - 15px),
            /* 右下角切掉 */
            calc(100% - 15px) 100%,
            /* 右下角切掉 */
            0% 100%,
            /* 左下角 */
            0% 15px
            /* 左上角切掉 */
        );
}

.btn-discover:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Service About Section */
.service-about {
    padding: 80px 0;
    background-color: var(--bg-white);
}

/* 主布局：左右分栏 */
.about-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

/* 左侧图片区域 */
.about-image-wrapper {
    width: 100%;
}

.about-image-wrapper .service-about-image {
    width: 100%;
    margin-bottom: 0;
}

.about-image-wrapper .service-about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 右侧内容区域 */
.about-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-about-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin: 0;
}

.about-text-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* 底部统计数据行 */
.about-stats-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.about-stats-row .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.about-stats-row .stat-num {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.about-stats-row .stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* Development History */
.development-history {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.history-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

.history-header {
    position: sticky;
    top: 100px;
}

.history-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 15px;
}

.history-title p {
    font-size: 13px;
    color: var(--text-light);
    max-width: 260px;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 600px;
    overflow-y: auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--border-color);
    transform: translateX(-50%);
    height: 100%;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    margin-bottom: 60px;
    position: relative;
}

.timeline-content {
    padding: 0 40px;
}

.timeline-content.left {
    text-align: right;
}

.timeline-content.right {
    text-align: left;
}

.timeline-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
}

.timeline-year {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    padding: 0 40px;
}

.timeline-year.left {
    text-align: right;
}

.timeline-year.right {
    text-align: left;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    background-color: transparent;
    border: 2px solid var(--text-dark);
    border-radius: 50%;
}

.timeline-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 10px;
}

/* Subsidiaries */
.subsidiaries {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.subsidiaries-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 50px;
    line-height: 1.4;
}

.subsidiaries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.subsidiary-card {
    background-color: var(--bg-white);
}

.subsidiary-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.subsidiary-image img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.subsidiary-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.subsidiary-card p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
}


/* Responsive */
@media (max-width: 1024px) {
    .service-about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-about-right .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .service-about-bottom {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-about-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .split-left .service-about-image {
        margin-bottom: 0;
    }

    .subsidiary-image {
        height: 220px;
    }

    .history-wrapper {
        grid-template-columns: 220px 1fr;
        gap: 40px;
    }

    .timeline::before {
        left: 50%;
    }

    .timeline-item {
        grid-template-columns: 1fr auto 1fr;
        gap: 20px;
    }

    .timeline-content {
        padding: 0 20px;
    }

    .timeline-year {
        font-size: 20px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .service-hero {
        height: 50vh;
        min-height: 300px;
    }

    .service-hero-content h1 {
        font-size: 36px;
    }

    .service-about-left h2 {
        font-size: 28px;
    }

    .service-about-right .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-about-bottom {
        grid-template-columns: 1fr;
    }

    .service-about-split {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .subsidiaries-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .subsidiaries-title {
        font-size: 24px;
    }

    .subsidiary-image {
        height: 200px;
    }

    .history-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .history-header {
        position: static;
    }

    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        left: 50%;
    }

    .timeline-item {
        grid-template-columns: 1fr auto 1fr;
    }

    .timeline-content {
        padding: 0 15px;
    }

    .timeline-year {
        font-size: 18px;
        padding: 0 15px;
    }
}

/* 页脚 */
.footer {
    background-image: url('https://www.conbyth.com/images/footer-bg.webp');
    color: var(--text-dark);
    padding: 50px 0 15px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('https://www.conbyth.com/images/world-map.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    opacity: 0.15;
    pointer-events: none;
}

.footer-content {
    display: flex;
    gap: 60px;
    margin-bottom: 0px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Logo Section */
.footer-section.logo-section {
    display: flex;
    flex-direction: column;
    flex: 5;
}

.footer-section.nav-section {
    flex: 2;
}

.footer-section.products-section {
    flex: 2;
}

/* 合并后的 Quick Links + Products 区域 */
.footer-section.nav-products-section {
    flex: 4;
}

.nav-products-row {
    display: flex;
    gap: 30px;
}

.quick-links-col {
    flex: 1;
}

.products-col {
    flex: 1;
}

.footer-section.contact-section {
    flex: 2.5;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-brand h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.company-intro {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
}

.company-intro strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Nav Section */
.footer-nav-columns {
    display: flex;
    gap: 20px;
}

.footer-section.nav-section h4,
.footer-section.products-section h4,
.footer-section.contact-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.footer-nav-list,
.footer-products-list {
    list-style: none;
}

.footer-nav-list li,
.footer-products-list li {
    margin-bottom: 8px;
}

.footer-nav-list a,
.footer-products-list a {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav-list a:hover,
.footer-products-list a:hover {
    color: var(--primary-color);
}

/* Contact Section */
.contact-section .contact-list {
    list-style: none;
    margin-bottom: 15px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-list li i {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-list li span {
    flex: 1;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-light);
    text-decoration: none;
    background-color: transparent;
}

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.social-links a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-bottom .container {
    border-top: 1px solid #cfd5dd;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.footer-bottom-left {
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-bottom-left p {
    margin: 0;
}

/* 移动端导航响应式 */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 12px 30px;
    }

    .nav-menu a {
        color: var(--text-dark);
        font-size: 15px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .phone-link span {
        display: none;
    }

    .links-section {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ==================== Mega Menu ==================== */
.has-megamenu {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: #f0f0f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1001;
    margin-top: 10px;
}

.has-megamenu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.level1-link {
    display: block;
    padding: 12px 24px;
    color: #333333 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.level1-link:hover {
    background: #e0e0e0;
    color: var(--primary-color) !important;
}

@media (max-width: 1024px) {
    .mega-menu {
        display: none;
    }
}

/* iPhone 15 适配 (430px) */
@media (max-width: 430px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        padding: 15px 0;
    }

    .logo img {
        height: 32px;
    }

    .service-hero {
        height: 40vh;
        min-height: 280px;
    }

    .service-hero-content h1 {
        font-size: 36px;
    }

    .service-about {
        padding: 40px 0;
    }

    .about-main-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .service-about-title {
        font-size: 24px;
    }

    .about-text-content p {
        font-size: 13px;
    }

    .about-stats-row {
        flex-wrap: wrap;
        gap: 20px;
        padding-top: 30px;
    }

    .about-stats-row .stat-item {
        flex: 0 0 calc(50% - 10px);
        text-align: center;
    }

    .about-stats-row .stat-num {
        font-size: 32px;
    }

    .about-stats-row .stat-label {
        font-size: 12px;
    }

    .development-history {
        padding: 40px 0;
    }

    .history-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .history-title h2 {
        font-size: 24px;
    }

    .history-title p {
        font-size: 12px;
        max-width: 100%;
    }

    .timeline {
        height: auto;
        overflow-y: visible;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 30px;
        padding-left: 40px;
    }

    .timeline-center {
        position: absolute;
        left: 20px;
        width: auto;
    }

    .timeline-year {
        font-size: 16px;
        padding: 0;
        text-align: left;
    }

    .timeline-year.left,
    .timeline-year.right {
        text-align: left;
    }

    .timeline-content {
        padding: 0;
        text-align: left;
    }

    .timeline-content.left,
    .timeline-content.right {
        text-align: left;
    }

    .timeline-content h4 {
        font-size: 13px;
    }

    .timeline-content p {
        font-size: 11px;
    }

    .subsidiaries {
        padding: 40px 0;
    }

    .subsidiaries-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .subsidiary-image {
        height: 200px;
    }

    .subsidiary-card h4 {
        font-size: 13px;
    }

    .subsidiary-card p {
        font-size: 11px;
    }

    .footer {
        padding: 30px 0 10px;
    }

    .footer {
        padding: 30px 0 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        padding: 0 16px;
        margin-bottom: 30px;
    }

    .footer-section.logo-section,
    .footer-section.nav-section,
    .footer-section.products-section,
    .footer-section.contact-section,
    .footer-section.nav-products-section {
        flex: none;
    }

    .nav-products-row {
        gap: 20px;
    }

    .quick-links-col,
    .products-col {
        flex: 1;
        min-width: 0;
    }

    .quick-links-col h4,
    .products-col h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-logo img {
        height: 32px;
    }

    .company-intro {
        font-size: 12px;
    }

    .footer-nav-columns {
        gap: 30px;
    }

    .footer-section.nav-section h4,
    .footer-section.products-section h4,
    .footer-section.contact-section h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .contact-list li {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .social-links a {
        width: 28px;
        height: 28px;
    }

    .footer-bottom .container {
        padding: 0 16px;
    }

    .footer-bottom-left {
        padding: 12px 0;
        font-size: 12px;
    }
}