/* ============================================
   喇叭哥智能揽客 - 官网样式
   移动端优先 (H5)
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --text: #1e293b;
    --text-secondary: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 4px 10px -6px rgba(0,0,0,0.05);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --max-width: 480px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 10px 16px;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.nav-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

/* === Hero（全屏轮播）=== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #1a1a1a;
}

/* 桌面端：限制轮播宽度为手机比例，居中 */
@media (min-width: 481px) {
    .hero {
        max-width: 430px;
        margin: 0 auto;
        border-left: 1px solid #333;
        border-right: 1px solid #333;
    }
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-track {
    display: flex;
    flex: 1;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f5f5f5;
}

/* === Carousel Dots === */
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(0,0,0,0.35);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.carousel-dots .dot.active {
    background: #fff;
    width: 22px;
    border-radius: 3px;
}

/* === Section Common === */
.section {
    padding: 50px 16px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 14px;
    border-radius: 12px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* === Product Intro === */
.product-intro {
    background: var(--white);
}

.intro-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.intro-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.intro-card:active {
    transform: scale(0.98);
}

.intro-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 14px;
    padding: 12px;
}

.intro-icon svg {
    width: 100%;
    height: 100%;
}

.intro-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.intro-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === Pain & Solution === */
.pain-solution {
    background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
}

.split-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.split-box {
    width: 100%;
    border-radius: var(--radius);
    padding: 20px;
}

.split-box h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
}

.split-box ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.split-box li {
    font-size: 14px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
    color: var(--text-secondary);
}

.pain-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.pain-box h3 { color: #dc2626; }
.pain-box li::before { content: '✕'; position: absolute; left: 0; color: #ef4444; font-size: 12px; top: 2px; }

.solution-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.solution-box h3 { color: #16a34a; }
.solution-box li::before { content: '✓'; position: absolute; left: 0; color: #22c55e; font-size: 12px; font-weight: 700; top: 2px; }

.split-arrow {
    color: var(--primary);
    width: 40px;
    height: 40px;
    transform: rotate(90deg);
}

.split-arrow svg {
    width: 100%;
    height: 100%;
}

/* === Features === */
.features {
    background: var(--white);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}

.feature-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
}

.feature-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.feature-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-tags span {
    font-size: 11px;
    padding: 3px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 6px;
    font-weight: 500;
}

/* === Gallery === */
.gallery {
    background: var(--bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
    aspect-ratio: 3 / 4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:active img {
    transform: scale(1.05);
}

/* === Video === */
.video-section {
    background: var(--white);
}

.video-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.video-wrapper video {
    width: 100%;
    display: block;
    max-height: 60vh;
    object-fit: contain;
}

/* === Scenarios === */
.scenarios {
    background: var(--bg);
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.scenario-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px 8px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.scenario-item:active {
    transform: scale(0.95);
}

.scenario-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.scenario-item span {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* === Contact === */
.contact {
    background: var(--white);
}

.contact-card {
    text-align: center;
    background: linear-gradient(135deg, #eff6ff, #ede9fe);
    border-radius: var(--radius);
    padding: 32px 24px;
    border: 1px solid #c7d2fe;
}

.contact-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 8px;
}

.contact-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.contact-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.contact-info {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    text-align: left;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    line-height: 1.5;
}

.contact-row svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

.contact-phone {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.contact-phone a {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

/* === Footer === */
.footer {
    background: var(--text);
    color: #94a3b8;
    text-align: center;
    padding: 24px 16px;
    font-size: 12px;
}

/* === Scroll Animation === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive: Larger screens === */
@media (min-width: 768px) {
    :root { --max-width: 800px; }

    .intro-cards {
        flex-direction: row;
    }

    .intro-card {
        flex: 1;
    }

    .split-layout {
        flex-direction: row;
        align-items: stretch;
    }

    .split-arrow {
        transform: rotate(0deg);
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .scenario-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === Image Preview Modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active img {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
