/* ==================== CSS Reset & Base ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1a3a6b;
    --primary-light: #2563eb;
    --primary-bg: #eff6ff;
    --accent: #dc2626;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-gray: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --radius: 16px;
    --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text); line-height: 1.7; background: var(--bg); overflow-x: hidden;
}

/* ==================== Navigation ==================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-weight: 700; font-size: 16px; position: relative; }
.nav-logo-img { height: 40px; width: auto; }
.nav-logo-text { color: var(--primary); font-weight: 700; font-size: 16px; }
.nav-logo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    white-space: nowrap;
    animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
    text-decoration: none; color: var(--text-light); font-size: 14px;
    padding: 6px 14px; border-radius: 20px; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-bg); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary); }

/* ==================== Hero Section ==================== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #2563eb 100%);
    position: relative; overflow: hidden; padding: 80px 24px 60px;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 800px; height: 800px; border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.2), transparent 70%);
}
.hero-inner {
    max-width: 1200px; margin: 0 auto; position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-text { color: white; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
    padding: 8px 20px; border-radius: 30px; font-size: 14px;
    margin-bottom: 24px; border: 1px solid rgba(255,255,255,0.2);
}
.hero-badge .dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity:1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: 52px; font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: #60a5fa; }
.hero-sub { font-size: 20px; color: rgba(255,255,255,0.8); margin-bottom: 36px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 12px; font-size: 16px; font-weight: 600;
    text-decoration: none; transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: white; color: var(--primary); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }

.hero-visual { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; }
.hero-kiosk img { max-width: 100%; height: auto; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); margin-top: 16px; }
.hero-card {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 20px;
    padding: 32px; width: 100%; max-width: 440px; color: white;
}
.hero-card h3 { font-size: 18px; margin-bottom: 20px; color: #93c5fd; }
.hero-stat { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.hero-stat:last-child { border-bottom: none; }
.hero-stat .label { font-size: 14px; color: rgba(255,255,255,0.7); }
.hero-stat .value { font-size: 28px; font-weight: 900; color: #60a5fa; }
.hero-stat .value.green { color: #4ade80; }

/* ==================== Sections Common ==================== */
.section { padding: 100px 24px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block; background: var(--primary-bg); color: var(--primary-light);
    padding: 6px 18px; border-radius: 20px; font-size: 14px; font-weight: 600; margin-bottom: 16px;
}
.section-title { font-size: 40px; font-weight: 900; color: var(--text); margin-bottom: 16px; }
.section-desc { font-size: 18px; color: var(--text-light); max-width: 640px; margin: 0 auto; }
.bg-gray { background: var(--bg-gray); }

/* ==================== Video Section ==================== */
.video-section {
    padding: 80px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.video-container {
    max-width: 960px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    background: #000;
}
.video-container video {
    width: 100%;
    display: block;
}

/* ==================== Background Section ==================== */
.background-content {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.background-text p { font-size: 16px; color: var(--text-light); line-height: 2; }
.background-text .highlight { color: var(--primary); font-weight: 700; }
.background-visual {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 20px; padding: 40px; color: white;
}
.background-visual h3 { font-size: 22px; margin-bottom: 20px; }
.bg-feature { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.bg-feature .icon {
    width: 36px; height: 36px; background: rgba(255,255,255,0.2); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px;
}

/* ==================== Pain Points ==================== */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1100px; margin: 0 auto; }
.pain-card {
    background: white; border-radius: var(--radius); padding: 36px 28px;
    box-shadow: var(--shadow); border-top: 4px solid var(--accent);
    transition: var(--transition); position: relative; overflow: hidden;
}
.pain-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.pain-card .pain-num {
    position: absolute; top: 12px; right: 16px; font-size: 64px; font-weight: 900;
    color: rgba(220,38,38,0.08); line-height: 1;
}
.pain-icon {
    width: 56px; height: 56px; background: #fee2e2; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px;
}
.pain-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.pain-card p { font-size: 15px; color: var(--text-light); line-height: 1.7; }

/* ==================== Product Features ==================== */
.feature-intro {
    background: linear-gradient(135deg, var(--primary), #1e40af);
    border-radius: 20px; padding: 48px; color: white; margin-bottom: 48px;
    max-width: 1100px; margin-left: auto; margin-right: auto; margin-bottom: 48px;
}
.feature-intro p { font-size: 16px; line-height: 1.8; opacity: 0.9; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.feature-tag {
    background: rgba(255,255,255,0.15); padding: 8px 20px; border-radius: 20px; font-size: 14px;
    border: 1px solid rgba(255,255,255,0.2);
}
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.feature-card {
    background: white; border-radius: var(--radius); padding: 32px 24px;
    box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); border-color: var(--primary-light); }
.feature-card .f-icon {
    width: 48px; height: 48px; background: var(--primary-bg); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px;
}
.feature-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ==================== Core Competency ==================== */
.core-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 1100px; margin: 0 auto; }
.core-card {
    background: white; border-radius: var(--radius); padding: 32px;
    box-shadow: var(--shadow); transition: var(--transition);
    display: flex; gap: 20px; align-items: flex-start; border-left: 4px solid var(--primary-light);
}
.core-card:hover { transform: translateX(4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.core-icon {
    width: 52px; height: 52px; background: var(--primary-bg); border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.core-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.core-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ==================== Product Showcase ==================== */
.showcase-full {
    max-width: 1100px; margin: 0 auto;
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
.showcase-full img { width: 100%; height: auto; display: block; }

/* ==================== Feature Image ==================== */
.feature-image {
    max-width: 1100px; margin: 0 auto 48px;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.feature-image img { width: 100%; height: auto; display: block; }

/* ==================== Prompt Standards Section ==================== */
.prompt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}
.prompt-card {
    background: white;
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}
.prompt-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: 0 16px 48px rgba(37,99,235,0.15);
}
.prompt-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}
.prompt-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.prompt-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    min-height: 60px;
}
.prompt-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}
.prompt-version {
    background: var(--primary-bg);
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.prompt-size {
    background: #f0fdf4;
    color: #059669;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.prompt-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}

/* ==================== Tech Architecture ==================== */
.tech-image {
    max-width: 1000px; margin: 0 auto;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.tech-image img { width: 100%; height: auto; display: block; }

/* ==================== Deployment Image ==================== */
.deploy-image {
    max-width: 1100px; margin: 0 auto;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.deploy-image img { width: 100%; height: auto; display: block; }

/* ==================== Deployment ==================== */
.deploy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1100px; margin: 0 auto; }
.deploy-card {
    background: white; border-radius: 20px; overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); border: 2px solid transparent;
}
.deploy-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); border-color: var(--primary-light); }
.deploy-card .card-header { padding: 32px 28px 24px; text-align: center; }
.deploy-card:nth-child(1) .card-header { background: linear-gradient(135deg, #1e3a5f, #2563eb); }
.deploy-card:nth-child(2) .card-header { background: linear-gradient(135deg, #059669, #10b981); }
.deploy-card:nth-child(3) .card-header { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.deploy-card h3 { font-size: 20px; font-weight: 700; color: white; }
.deploy-card .card-body { padding: 28px; }
.deploy-card .scenario { font-size: 13px; color: var(--text-light); margin-bottom: 16px; padding: 8px 14px; background: var(--bg-gray); border-radius: 8px; }
.deploy-card .deploy-features { list-style: none; }
.deploy-card .deploy-features li { font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.deploy-card .deploy-features li:last-child { border-bottom: none; }
.deploy-card .deploy-features li::before { content: '✓ '; color: #22c55e; font-weight: 700; }

/* ==================== Value Section ==================== */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1100px; margin: 0 auto; }
.value-card {
    background: white; border-radius: 20px; padding: 36px 28px;
    box-shadow: var(--shadow); text-align: center; transition: var(--transition);
}
.value-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.value-card .value-icon {
    width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.value-card:nth-child(1) .value-icon { background: #dbeafe; }
.value-card:nth-child(2) .value-icon { background: #dcfce7; }
.value-card:nth-child(3) .value-icon { background: #fef3c7; }
.value-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.value-stats { display: flex; flex-direction: column; gap: 16px; }
.value-stat .stat-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.value-stat .stat-label { font-size: 14px; color: var(--text-light); }
.value-stat .stat-value { font-size: 20px; font-weight: 900; }
.value-card:nth-child(1) .stat-value { color: #2563eb; }
.value-card:nth-child(2) .stat-value { color: #059669; }
.value-card:nth-child(3) .stat-value { color: #d97706; }
.value-stat .stat-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.value-stat .stat-fill { height: 100%; border-radius: 4px; }
.value-card:nth-child(1) .stat-fill { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.value-card:nth-child(2) .stat-fill { background: linear-gradient(90deg, #059669, #34d399); }
.value-card:nth-child(3) .stat-fill { background: linear-gradient(90deg, #d97706, #fbbf24); }

/* ==================== Cases Scroll ==================== */
.cases-scroll-wrapper {
    overflow: hidden;
    max-width: 1000px;
    position: relative;
    margin: 0 auto;
}
.cases-scroll-wrapper::before,
.cases-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.cases-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}
.cases-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}
.cases-scroll {
    display: flex;
    gap: 28px;
    animation: scrollCases 20s linear infinite;
    width: max-content;
    padding: 10px 0;
}
.cases-scroll:hover {
    animation-play-state: paused;
}
@keyframes scrollCases {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.case-card {
    background: white; border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1); border: 1px solid var(--border);
    overflow: hidden; transition: var(--transition);
    flex-shrink: 0;
    width: 420px;
}
.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.case-image {
    height: 200px; overflow: hidden;
}
.case-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: var(--transition);
}
.case-body { padding: 24px; }
.case-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.case-avatar {
    width: 52px; height: 52px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: white; flex-shrink: 0;
}
.case-header h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; line-height: 1.3; }
.case-header p { font-size: 12px; color: var(--text-light); line-height: 1.3; }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.case-stat { text-align: center; padding: 12px 6px; background: var(--bg-gray); border-radius: 10px; }
.case-stat .num { font-size: 22px; font-weight: 900; color: var(--primary-light); }
.case-stat .label { font-size: 11px; color: var(--text-light); margin-top: 2px; line-height: 1.3; }
.case-quote {
    background: var(--primary-bg); border-radius: 10px; padding: 14px 16px;
    font-size: 13px; color: var(--text); line-height: 1.6;
    border-left: 3px solid var(--primary-light);
}

/* ==================== Footer ==================== */
.footer { background: #0f172a; color: rgba(255,255,255,0.8); padding: 60px 24px 30px; }
.footer-inner {
    max-width: 1200px; margin: 0 auto; display: grid;
    grid-template-columns: 2fr 1fr 1fr; gap: 48px;
}
.footer h3, .footer h4 { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col li { font-size: 14px; margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; transition: var(--transition); }
.footer-col a:hover { color: white; }
.footer-bottom {
    max-width: 1200px; margin: 40px auto 0; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1); text-align: center;
    font-size: 13px; color: rgba(255,255,255,0.5);
}

/* ==================== Animations ==================== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero h1 { font-size: 36px; }
    .hero-buttons { justify-content: center; }
    .pain-grid, .feature-grid, .deploy-grid, .value-grid, .prompt-grid { grid-template-columns: 1fr; }
    .core-grid { grid-template-columns: 1fr; }
    .background-content { grid-template-columns: 1fr; }
    .cases-scroll { animation: none; }
    .cases-scroll-wrapper { overflow-x: auto; }
    .case-card { width: 320px; }
    .case-stats { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .section-title { font-size: 30px; }
    .tech-layer { flex-direction: column; text-align: center; }
    .nav-logo-img { height: 32px; }
    .nav-logo-badge { display: none; }
}

/* ==================== Coze Dialog ==================== */
.coze-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.coze-dialog.show { display: flex; }
.coze-dialog-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.coze-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.coze-dialog-header h3 { margin: 0; font-size: 18px; color: #1e293b; }
.coze-dialog-body {
    flex: 1;
    overflow: hidden;
    background: #f1f5f9;
}
.coze-dialog-body iframe {
    width: 100%;
    height: 70vh;
    border: none;
}
@media (max-width: 600px) {
    .hero h1 { font-size: 28px; }
    .section { padding: 60px 16px; }
    .case-stats { grid-template-columns: 1fr 1fr; }
    .case-image { height: 160px; }
}
