/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
:root {
    --primary: #0066CC;
    --primary-dark: #004c99;
    --secondary: #7FDBFF;
    --bg-light: #f8fafc;
    --white: #FFFFFF;
    --gray-200: #e2e8f0;
    --shadow-sm: 0 8px 20px rgba(0,0,0,0.05);
    --radius-lg: 28px;
    --radius-md: 20px;
}

/* ===== PC 端样式 (≥992px) ===== */
@media (min-width: 992px) {
    .mobile-only { display: none !important; }
    .pc-only { display: block; }

    .pc-nav {
        background: var(--primary);
        color: white;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    .pc-nav .nav-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 12px 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .pc-nav .logo {
        font-size: 2rem;
        font-weight: 800;
        color: white;
        letter-spacing: -0.02em;
        white-space: nowrap;
    }
    .pc-nav .logo span { color: var(--secondary); }
    .pc-nav .nav-menu {
        display: flex;
        gap: 30px;
        list-style: none;
    }
    .pc-nav .nav-menu a {
        font-weight: 600;
        font-size: 1.1rem;
        padding: 8px 16px;
        border-radius: 40px;
        transition: background 0.2s;
        color: white;
        display: inline-block;
    }
    .pc-nav .nav-menu a:hover,
    .pc-nav .nav-menu a.active {
        background: var(--secondary);
        color: var(--primary-dark);
    }

    .page { display: block; }
    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 40px 30px;
    }
    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 30px;
    }
    .section-title {
        font-size: 2.2rem;
        font-weight: 700;
        color: var(--primary);
        position: relative;
        padding-bottom: 15px;
    }
    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 80px;
        height: 5px;
        background: var(--secondary);
        border-radius: 3px;
    }
    .more-link {
        font-weight: 600;
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border-bottom: 2px solid transparent;
        transition: border-color 0.2s;
    }
    .more-link:hover { border-bottom-color: var(--secondary); }

    .grid-6 {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 24px;
    }
    .grid-5 {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
    .service-card, .case-card {
        background: white;
        border-radius: var(--radius-md);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        transition: transform 0.3s, box-shadow 0.3s;
        cursor: pointer;
    }
    .service-card:hover, .case-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 30px rgba(0,102,204,0.15);
    }
    .service-card img {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
    }
    .service-card p {
        text-align: center;
        font-weight: 600;
        padding: 15px 8px;
        color: var(--primary);
        background: white;
    }
    .case-card img {
        width: 100%;
        aspect-ratio: 5/3;
        object-fit: cover;
    }
    .case-card .case-title {
        padding: 15px 12px;
        font-weight: 600;
        text-align: center;
        color: var(--primary);
    }

    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 40px 0 20px;
        flex-wrap: wrap;
    }
    .page-btn {
        display: inline-block;
        padding: 8px 16px;
        background: white;
        border: 1px solid var(--gray-200);
        border-radius: 30px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        color: var(--primary);
    }
    .page-btn.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }
    .page-btn.prev, .page-btn.next {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }
    .page-btn.disabled {
        opacity: 0.4;
        pointer-events: none;
    }

    .hero-card {
        background-color: var(--primary);
        border-radius: var(--radius-lg);
        min-height: 500px;
        background-image: url('../images/hero-bg.jpg');
        background-size: cover;
        background-position: center;
        margin-bottom: 30px;
    }

    .about-preview {
        display: flex;
        gap: 60px;
        background: var(--bg-light);
        border-radius: 30px;
        padding: 60px;
        align-items: center;
        margin: 50px 0;
    }
    .about-text h3 {
        font-size: 2.2rem;
        color: var(--primary);
    }
    .about-text p {
        color: #2c3e50;
        font-size: 1.05rem;
        margin: 20px 0;
    }
    .about-img img {
        width: 100%;
        border-radius: 20px;
    }

    .region-tabs {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        margin: 30px 0 25px;
    }
    .region-tab {
        padding: 10px 28px;
        background: white;
        border-radius: 40px;
        font-weight: 600;
        color: var(--primary);
        cursor: pointer;
        box-shadow: var(--shadow-sm);
        transition: all 0.2s;
    }
    .region-tab.active {
        background: var(--primary);
        color: white;
    }

    .tertiary-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    .seo-card {
        background: white;
        border-radius: 24px;
        padding: 24px;
        box-shadow: var(--shadow-sm);
    }
    .seo-card h4 {
        font-size: 1.2rem;
        color: var(--primary);
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .preview-note {
        background: #f1f5f9;
        font-size: 0.7rem;
        padding: 4px 8px;
        border-radius: 30px;
        color: #475569;
    }
    .url-example {
        background: #eef2f6;
        padding: 6px 12px;
        border-radius: 30px;
        font-family: monospace;
        font-size: 0.8rem;
        color: #1f4a6e;
        margin-bottom: 15px;
    }
    .tdk-preview {
        border-top: 1px dashed #cbd5e1;
        padding-top: 15px;
        font-size: 0.85rem;
    }
    .tdk-preview p {
        display: flex;
        margin: 6px 0;
    }
    .tdk-preview strong {
        width: 55px;
        color: var(--secondary);
    }

    .news-columns {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    .news-column {
        background: white;
        border-radius: 24px;
        padding: 20px;
        box-shadow: var(--shadow-sm);
    }
    .news-item {
        display: flex;
        justify-content: space-between;
        padding: 14px 0;
        border-bottom: 1px solid #e9eef3;
    }
    .news-item:last-child { border: none; }
    .news-item a {
        font-weight: 600;
        color: var(--primary);
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 10px;
    }
    .news-item .date {
        color: #64748b;
        font-size: 0.85rem;
    }

    .contact-wrap {
        display: flex;
        gap: 40px;
        align-items: stretch;
    }
    .contact-info {
        flex: 1;
        background: white;
        border-radius: var(--radius-lg);
        padding: 50px 40px;
        box-shadow: var(--shadow-sm);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .contact-info h3 {
        color: var(--primary);
        font-size: 2rem;
        margin-bottom: 20px;
    }
    .contact-info .info-item {
        display: flex;
        align-items: center;
        gap: 20px;
        margin: 25px 0;
        font-size: 1.2rem;
    }
    .contact-info .info-item i {
        width: 60px;
        height: 60px;
        background: var(--primary);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    .qr-placeholder {
        width: 160px;
        height: 160px;
        background: #eef2f6;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 2px dashed var(--secondary);
        margin-top: 20px;
        color: var(--primary);
    }
    .contact-image {
        flex: 1;
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        background: #eef2f6;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .contact-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* 友情链接样式 - 深蓝色背景 + 白色字体 + 圆角按钮 */
    .friend-links {
        background: var(--primary);
        padding: 40px 0;
        margin-top: 0px;
    }
    .links-wrap {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 30px;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    .links-wrap a {
        background: #0066CC;
        color: white;
        text-decoration: none;
        padding: 8px 20px;
        border-radius: 40px;
        display: inline-block;
        transition: background 0.2s;
        font-weight: 500;
    }
    .links-wrap a:hover {
        background: #004999;
        color: white;
    }
    .copyright {
        text-align: center;
        margin-top: 30px;
        color: #cbd5e1;
    }
}

/* ===== 移动端样式 (<992px) ===== */
@media (max-width: 991px) {
    .pc-only { display: none !important; }
    .mobile-only { display: block; }

    .mobile-nav {
        background: var(--primary);
        color: white;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .mobile-nav-row1 {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    .mobile-nav-row1 .logo {
        font-size: 1.8rem;
        font-weight: 800;
        color: white;
    }
    .mobile-nav-row1 .logo span { color: var(--secondary); }

    .mobile-nav-row2 {
        display: flex;
        flex-wrap: wrap;
        padding: 8px 8px;
        gap: 4px;
        justify-content: center;
    }
    .mobile-nav-item {
        flex: 0 0 calc(33.33% - 8px);
        text-align: center;
        padding: 10px 4px;
        font-weight: 600;
        font-size: 1rem;
        color: white;
        border-radius: 40px;
        transition: background 0.2s;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background: rgba(255,255,255,0.1);
        margin: 2px;
        display: inline-block;
    }
    .mobile-nav-item.active,
    .mobile-nav-item:active {
        background: var(--secondary);
        color: var(--primary-dark);
    }

    .page { display: block; }
    .container-mobile {
        padding: 15px 12px 20px;
    }

    .hero-card {
        background-color: var(--primary);
        border-radius: 16px;
        min-height: 220px;
        background-image: url('../images/hero-bg-mobile.jpg');
        background-size: cover;
        background-position: center;
        margin-bottom: 20px;
    }

    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin: 20px 0 12px;
    }
    .section-title {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--primary);
        padding-bottom: 5px;
        border-bottom: 3px solid var(--secondary);
        display: inline-block;
    }
    .more-link {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--primary);
        background: rgba(127,219,255,0.1);
        padding: 4px 10px;
        border-radius: 30px;
    }

    .grid-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .service-card, .case-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        transition: transform 0.2s;
        cursor: pointer;
    }
    .service-card:active, .case-card:active { transform: scale(0.98); }
    .service-card img {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
    }
    .service-card p {
        text-align: center;
        font-weight: 600;
        padding: 8px 4px;
        font-size: 0.75rem;
        color: var(--primary);
        background: #f8fafc;
    }
    .case-card img {
        width: 100%;
        aspect-ratio: 5/3;
        object-fit: cover;
    }
    .case-card .case-title {
        padding: 8px;
        font-weight: 600;
        font-size: 0.75rem;
        text-align: center;
        background: #f8fafc;
        color: var(--primary);
    }

    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        margin: 15px 0;
        flex-wrap: wrap;
    }
    .page-btn {
        display: inline-block;
        padding: 4px 10px;
        background: white;
        border: 1px solid #cbd5e0;
        border-radius: 30px;
        font-size: 0.7rem;
        font-weight: 600;
        cursor: pointer;
        color: var(--primary);
    }
    .page-btn.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }
    .page-btn.prev, .page-btn.next {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }
    .page-btn.disabled {
        opacity: 0.4;
        pointer-events: none;
    }

    .about-preview {
        display: flex;
        flex-direction: column;
        gap: 20px;
        background: var(--bg-light);
        border-radius: 16px;
        padding: 20px;
        margin: 25px 0;
    }
    .about-text h3 { font-size: 1.4rem; color: var(--primary); }
    .about-text p { font-size: 0.85rem; margin: 8px 0; }
    .about-img img { width: 100%; border-radius: 12px; }

    .region-tabs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 5px 0 10px;
        margin: 10px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .region-tab {
        flex: 0 0 auto;
        padding: 6px 16px;
        background: white;
        border-radius: 40px;
        font-weight: 600;
        font-size: 0.8rem;
        color: var(--primary);
        white-space: nowrap;
        box-shadow: var(--shadow-sm);
    }
    .region-tab.active {
        background: var(--primary);
        color: white;
    }

    .tertiary-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .seo-card {
        background: white;
        border-radius: 16px;
        padding: 15px;
        box-shadow: var(--shadow-sm);
    }
    .seo-card h4 {
        font-size: 0.95rem;
        color: var(--primary);
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }
    .preview-note {
        background: #f1f5f9;
        font-size: 0.55rem;
        padding: 2px 6px;
        border-radius: 20px;
        color: #475569;
    }
    .url-example {
        background: #eef2f6;
        padding: 4px 8px;
        border-radius: 20px;
        font-size: 0.65rem;
        color: #0066CC;
        margin: 8px 0;
        word-break: break-all;
    }
    .tdk-preview {
        border-top: 1px dashed #cbd5e1;
        padding-top: 8px;
        font-size: 0.65rem;
    }
    .tdk-preview p { display: flex; margin: 3px 0; }
    .tdk-preview strong { width: 45px; color: var(--secondary); }

    .news-columns {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .news-column {
        background: white;
        border-radius: 16px;
        padding: 12px;
        box-shadow: var(--shadow-sm);
    }
    .news-item {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid #eef2f6;
        font-size: 0.85rem;
    }
    .news-item:last-child { border: none; }
    .news-item a {
        font-weight: 600;
        color: var(--primary);
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 8px;
    }
    .news-item .date {
        color: #64748b;
        font-size: 0.7rem;
    }

    .contact-info {
        background: white;
        border-radius: 16px;
        padding: 25px;
        box-shadow: var(--shadow-sm);
    }
    .info-item {
        display: flex;
        align-items: center;
        gap: 15px;
        margin: 18px 0;
        font-size: 0.9rem;
    }
    .info-item i {
        width: 40px;
        height: 40px;
        background: var(--primary);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }
    .qr-placeholder {
        width: 120px;
        height: 120px;
        background: #f8fafc;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 2px dashed var(--secondary);
        margin-top: 15px;
        font-size: 0.7rem;
        color: var(--primary);
    }

    /* 移动端友情链接样式 */
    .friend-links {
        background: var(--primary);
        padding: 30px 15px;
        margin-top: 40px;
        text-align: center;
    }
    .links-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .links-wrap a {
        background: #0066CC;
        color: white;
        text-decoration: none;
        padding: 6px 15px;
        border-radius: 30px;
        display: inline-block;
        font-size: 0.8rem;
        transition: background 0.2s;
    }
    .links-wrap a:hover {
        background: #004999;
    }
    .copyright {
        text-align: center;
        margin-top: 20px;
        color: #cbd5e1;
        font-size: 0.7rem;
    }

    /* 底部导航 - 改为蓝色背景，与顶部导航一致 */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--primary);
        box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 8px 0;
        z-index: 200;
    }
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: white;
        font-size: 0.7rem;
        transition: color 0.2s;
    }
    .nav-item i {
        font-size: 1.4rem;
        margin-bottom: 2px;
    }
    .nav-item.active {
        color: var(--secondary);
    }
    .nav-item span {
        font-size: 0.8rem;
        font-weight: 500;
    }

    body {
        padding-bottom: 70px;
    }
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.lightbox.active {
    display: flex;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 3px solid white;
    border-radius: 8px;
}

/* 文章段落首行缩进2字符 */
.container p,
.detail-content p {
    text-indent: 2em;
    margin: 1em 0;
}
/* 方案一：强制消除幻灯片与导航栏的缝隙 */
.pc-only .container {
    padding-top: 0 !important;
}

.pc-only .page-slider {
    margin-top: 0 !important;
    position: relative;
    top: -1px;
}
/* 隐藏幻灯片左右箭头（只有一张图片时） */
.slider-prev,
.slider-next {
    display: none !important;
}