/* ==================== Base Styles ==================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

html {
    width: 100%;
}

body {
    font-family: 微软雅黑;
    background-color: #f6f6f6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    max-width: 100%;
}

@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }
    body {
        min-width: 320px;
        max-width: 100vw;
        width: 100%;
        overflow-x: hidden;
    }
    body * {
        max-width: 100vw;
    }
}

@media (min-width: 769px) {
    body {
        min-width: 1200px;
        overflow-x: scroll;
    }
}

/* ==================== Hero Base ==================== */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.7) 0%, rgba(26, 58, 92, 0.5) 50%, rgba(13, 33, 55, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    z-index: 10;
}

.hero-title {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 40px;
}

/* ==================== Service Page - Hero ==================== */
.service-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d2137 100%);
}

.service-hero .hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.service-hero .hero-overlay {
    background: none;
}

.service-hero .hero-content {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    max-width: 1100px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 50px;
}

.service-hero .hero-title {
    text-shadow: none;
}

.service-hero .hero-desc {
    font-size: 20px;
    line-height: 1.8;
    max-width: 690px;
}

/* ==================== Service Product Section (通用) ==================== */
.service-product-section {
    padding: 80px 0;
    background: #f6f6f6;
}

.service-alt-bg {
    background: #fff;
}

.service-product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.prod-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 600px;
}

/* 反向排列：图片在左，文字在右 */
.prod-reverse .questionnaire-left {
    order: 2;
}

.prod-reverse .phone-mockup {
    order: 1;
}

/* 复用的 zxwjglxt / xsdxfwxt 在独立 section 中需要重置显示 */
.service-product-container .zxwjglxt,
.service-product-container .xsdxfwxt {
    display: grid !important;
}

.service-product-container .xsdxfwxt .questionnaire-left {
    order: 2;
}

.service-product-container .xsdxfwxt .phone-mockup {
    order: 1;
}

/* ==================== 广告智析系统 — 统一Grid布局 ==================== */
#ggzxRadioGroup {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px 24px;
}

#ggzxRadioGroup .type-row {
    grid-column: 1 / -1;
    margin-bottom: 4px;
}

#ggzxRadioGroup .type-options {
    display: contents;
}

#ggzxRadioGroup .type-options label {
    white-space: nowrap;
}

/* ==================== Button Variants ==================== */
.demo-btn-teal {
    background: #00baad;
}

.demo-btn-teal:hover {
    background: #009688;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 186, 173, 0.4);
}

.demo-btn-orange {
    background: #ff8d1a;
}

.demo-btn-orange:hover {
    background: #e07a10;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 141, 26, 0.4);
}

.demo-btn-coral {
    background: #ea6f5a;
}

.demo-btn-coral:hover {
    background: #d15c48;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(234, 111, 90, 0.4);
}
}

/* ==================== Responsive - Tablet (768px) ==================== */
@media (max-width: 768px) {
    .service-hero {
        height: 480px;
    }

    .service-hero .hero-content {
        padding: 40px 20px 0;
    }

    .service-hero .hero-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .service-hero .hero-desc {
        font-size: 14px;
    }

    .service-product-section {
        padding: 40px 0;
    }

    .service-product-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .prod-item {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto;
    }

    .prod-reverse .questionnaire-left {
        order: 1;
    }

    .prod-reverse .phone-mockup {
        order: 1;
    }

    /* zxwjglxt / xsdxfwxt 复用组件在 service 页面中的移动端适配 */
    .service-product-container .zxwjglxt,
    .service-product-container .xsdxfwxt {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-product-container .xsdxfwxt .questionnaire-left {
        order: 1;
    }

    .service-product-container .xsdxfwxt .phone-mockup {
        order: 1;
    }

    .service-product-container .questionnaire-left h3 {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .service-product-container .questionnaire-left > p {
        font-size: 14px;
    }

    .service-product-container .phone-preview-wrap {
        width: 100%;
        height: auto;
        margin: 0 auto;
        margin-left: -8px;
    }

    .service-product-container .phone-frame {
        width: 200px;
        height: auto;
        border-radius: 28px;
        padding: 8px;
    }

    .service-product-container .phone-screen {
        border-radius: 20px;
    }

    .service-product-container .preview-dot {
        left: 190px;
    }

    .service-product-container .preview-label {
        left: 205px;
        width: calc(100% - 195px);
        font-size: 13px;
        padding: 8px 10px;
    }

    .service-product-container .preview-dot img {
        height: 9px;
    }

    .type-row {
        flex-wrap: wrap;
    }

    #ggzxRadioGroup {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px 12px;
    }

    .switch-text {
        font-size: 14px;
    }
}

/* ==================== Responsive - Mobile (480px) ==================== */
@media (max-width: 480px) {
    .service-hero {
        height: 350px;
    }

    .service-hero .hero-content {
        padding: 40px 20px 0;
    }

    .service-hero .hero-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .service-hero .hero-desc {
        font-size: 14px;
        line-height: 1.7;
    }

    .service-product-section {
        padding: 30px 0;
    }

    .service-product-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .service-product-container .questionnaire-left h3 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .service-product-container .phone-preview-wrap {
        height: auto;
        margin-left: -8px;
    }

    .service-product-container .phone-frame {
        width: 165px;
        height: auto;
        border-radius: 24px;
    }

    .service-product-container .phone-screen {
        border-radius: 16px;
    }

    .service-product-container .preview-dot {
        left: 157px;
    }

    .service-product-container .preview-label {
        left: 168px;
        width: calc(100% - 158px);
        font-size: 13px;
        padding: 6px 8px;
        border-radius: 6px;
    }

    .service-product-container .preview-dot img {
        height: 8px;
    }

    .prod-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .prod-reverse .questionnaire-left {
        order: 1;
    }

    .service-product-container .xsdxfwxt .questionnaire-left {
        order: 1;
    }

    .type-options {
        gap: 10px 16px;
    }

    .type-label {
        font-size: 14px;
    }

    .type-options label {
        font-size: 14px;
    }

    #ggzxRadioGroup {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px 12px;
    }
}
