/* ============================================
   泽途新邦 官网样式表
   ============================================ */

/* ====== CSS 变量 ====== */
:root {
    --bg: #ffffff;
    --bg-dark: #0a0e1a;
    --bg-dark-2: #111827;
    --surface: #f8fafc;
    --surface-2: #f1f5f9;
    --ink: #0f172a;
    --muted: #64748b;
    --muted-light: #94a3b8;
    --rule: #e2e8f0;
    --accent: #2563eb;
    --accent-2: #7c3aed;
    --accent-light: #3b82f6;
    --accent-dark: #1d4ed8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-soft: linear-gradient(135deg, #dbeafe 0%, #e9d5ff 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --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 30px -5px rgba(0,0,0,0.1), 0 8px 16px -8px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 50px -10px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(37,99,235,0.15);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --max-width: 1200px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Fira Code', 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}

/* ====== Reset ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ====== 通用按钮 ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,99,235,0.4);
}

.btn-outline {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.btn-full { width: 100%; }

/* ====== 通用 Section Header ====== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    background: rgba(37,99,235,0.08);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ====== 导航栏 ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    padding: 12px 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: white;
    transition: color 0.3s;
}

.navbar.scrolled .nav-logo { color: var(--ink); }

.logo-icon { width: 36px; height: 36px; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-radius: 8px;
    transition: all 0.3s;
}

.navbar.scrolled .nav-link { color: var(--muted); }

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255,255,255,0.15);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--accent);
    background: rgba(37,99,235,0.08);
}

.nav-cta {
    background: var(--gradient);
    color: white !important;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

.navbar.scrolled .nav-cta { color: white !important; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.navbar.scrolled .hamburger span { background: var(--ink); }

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ====== Hero ====== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #2563eb, transparent 70%);
    top: -100px; left: -100px;
}

.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #7c3aed, transparent 70%);
    bottom: -50px; right: -50px;
    animation-delay: 2s;
}

.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #06b6d4, transparent 70%);
    top: 40%; left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    color: white;
    letter-spacing: -2px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleFade 1s ease-out;
}

@keyframes titleFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: 24px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 40px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-plus {
    font-size: 40px;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.1);
}

/* ====== About ====== */
.about {
    padding: 100px 0;
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--ink);
}

.about-text p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.value-card {
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--rule);
    transition: all 0.3s;
}

.value-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.value-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-soft);
    border-radius: var(--radius-sm);
    color: var(--accent);
    margin-bottom: 16px;
}

.value-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* About Visual - Card Stack */
.about-visual {
    position: relative;
    height: 480px;
}

.about-card-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.stack-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--rule);
    overflow: hidden;
    transition: all 0.4s;
}

.stack-card-1 {
    top: 0;
    right: 20px;
    width: 100%;
    z-index: 3;
}

.stack-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
}

.stack-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}

.stack-dot.red { background: #ff5f57; }
.stack-dot.yellow { background: #febc2e; }
.stack-dot.green { background: #28c840; }

.stack-body { padding: 20px; }

.stack-line {
    height: 10px;
    border-radius: 5px;
    background: var(--surface-2);
    margin-bottom: 10px;
}

.w70 { width: 70%; }
.w90 { width: 90%; }
.w50 { width: 50%; }

.stack-code {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.6;
}

.code-key { color: #c084fc; }
.code-var { color: #60a5fa; }
.code-fn { color: #fbbf24; }
.code-str { color: #34d399; }
.code-prop { color: #93c5fd; }

.stack-card-2 {
    bottom: 40px;
    left: -20px;
    width: 220px;
    padding: 20px;
    z-index: 2;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    margin-bottom: 12px;
}

.mini-chart .bar {
    flex: 1;
    background: var(--gradient);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.mini-chart .bar:hover { opacity: 1; }

.stack-label {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin: 0;
}

.stack-card-3 {
    bottom: 0;
    right: 40px;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.tech-orbit {
    position: relative;
    width: 160px;
    height: 160px;
}

.orbit-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
}

.orbit-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed var(--rule);
    border-radius: 50%;
    animation: spin 15s linear infinite;
}

.orbit-1 { width: 100px; height: 100px; }
.orbit-2 { width: 130px; height: 130px; animation-duration: 20s; animation-direction: reverse; }
.orbit-3 { width: 160px; height: 160px; animation-duration: 25s; }

.orbit-item {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid var(--rule);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ====== Services ====== */
.services {
    padding: 100px 0;
    background: var(--surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--rule);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    margin-bottom: 20px;
    color: white;
}

.service-icon-ai { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.service-icon-java { background: linear-gradient(135deg, #dc2626, #f59e0b); }
.service-icon-mini { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.service-icon-web { background: linear-gradient(135deg, #059669, #14b8a6); }

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card > p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    margin-bottom: 24px;
}

.service-features li {
    font-size: 14px;
    color: var(--ink);
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0; top: 12px;
    width: 14px; height: 14px;
    background: var(--gradient-soft);
    border-radius: 4px;
}

.service-features li::after {
    content: '✓';
    position: absolute;
    left: 2px; top: 6px;
    font-size: 10px;
    color: var(--accent);
    font-weight: 700;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    transition: gap 0.3s;
}

.service-link:hover { gap: 10px; }

/* ====== DEMO 展示 ====== */
.demos {
    padding: 100px 0;
    background: var(--bg);
}

.demo-block {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.demo-block.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.demo-block.reverse .demo-intro { order: 2; }
.demo-block.reverse .demo-preview { order: 1; }

.demo-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
    background: rgba(37,99,235,0.08);
    padding: 6px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.demo-intro h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.demo-intro > p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.demo-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-points li {
    font-size: 15px;
    color: var(--ink);
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.demo-points li::before {
    content: '';
    position: absolute;
    left: 0; top: 4px;
    width: 18px; height: 18px;
    background: var(--gradient);
    border-radius: 50%;
    opacity: 0.15;
}

.demo-points li::after {
    content: '';
    position: absolute;
    left: 5px; top: 9px;
    width: 8px; height: 5px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

.demo-points strong { color: var(--accent); font-weight: 700; }

/* ====== AI Chat Demo ====== */
.chat-window {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--rule);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--gradient);
    color: white;
}

.chat-bot-avatar {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-bot-info { display: flex; flex-direction: column; }
.chat-bot-name { font-weight: 700; font-size: 15px; }
.chat-bot-status { font-size: 12px; opacity: 0.8; display: flex; align-items: center; gap: 4px; }

.status-dot {
    width: 6px; height: 6px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-body {
    height: 360px;
    overflow-y: auto;
    padding: 20px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--muted-light); border-radius: 2px; }

.chat-msg {
    display: flex;
    gap: 10px;
    max-width: 85%;
    animation: msgIn 0.4s ease-out;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-msg { flex-direction: row-reverse; align-self: flex-end; }

.msg-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.msg-avatar.bot { background: var(--gradient); color: white; }
.msg-avatar.user { background: var(--surface-2); color: var(--muted); }

.msg-bubble {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.6;
}

.bot-bubble {
    background: white;
    color: var(--ink);
    border: 1px solid var(--rule);
    border-top-left-radius: 4px;
}

.user-bubble {
    background: var(--gradient);
    color: white;
    border-top-right-radius: 4px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-indicator span {
    width: 8px; height: 8px;
    background: var(--muted-light);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.chat-quick {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    flex-wrap: wrap;
    border-top: 1px solid var(--rule);
    background: white;
}

.quick-btn {
    padding: 8px 14px;
    font-size: 13px;
    color: var(--accent);
    background: rgba(37,99,235,0.06);
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: 20px;
    transition: all 0.3s;
}

.quick-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border-top: 1px solid var(--rule);
}

.chat-input input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--surface);
}

.chat-send {
    width: 42px; height: 42px;
    background: var(--gradient);
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chat-send:hover { transform: scale(1.05); }

/* ====== Java Code Demo ====== */
.code-window {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid #1e293b;
}

.code-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
}

.code-tab {
    padding: 14px 20px;
    font-size: 14px;
    color: #94a3b8;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.code-tab.active {
    color: white;
    border-bottom-color: var(--accent);
}

.code-tab:hover { color: #e2e8f0; }

.code-meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.code-badge.bad { background: rgba(239,68,68,0.15); color: #fca5a5; }
.code-badge.good { background: rgba(16,185,129,0.15); color: #6ee7b7; }

.code-arrow { color: #64748b; font-size: 14px; }

.code-content { position: relative; }

.code-block {
    display: none;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: #e2e8f0;
    overflow-x: auto;
    max-height: 440px;
}

.code-block.active { display: block; }

.code-block::-webkit-scrollbar { height: 6px; width: 6px; }
.code-block::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

.ln { color: #475569; margin-right: 12px; user-select: none; display: inline-block; width: 24px; text-align: right; }
.kw { color: #c084fc; }
.fn { color: #fbbf24; }
.cmt { color: #64748b; font-style: italic; }
.str { color: #34d399; }

/* ====== Phone Mockup (小程序 Demo) ====== */
.phone-mockup {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: #1a1a2e;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl), 0 0 0 2px #2a2a3e, 0 0 60px rgba(37,99,235,0.1);
    position: relative;
    transition: transform 0.4s;
}

.phone-frame:hover { transform: rotateY(-5deg) rotateX(2deg); }

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.miniapp-tabs {
    margin-top: 28px;
}

.miniapp-tab-bar {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    background: white;
    border-bottom: 1px solid var(--rule);
}

.mini-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.3s;
}

.mini-tab.active { color: var(--accent); }
.mini-tab:hover { color: var(--accent); }

.miniapp-content {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

.miniapp-content::-webkit-scrollbar { display: none; }

.mini-page { display: none; padding: 12px; }
.mini-page.active { display: block; animation: fadeIn 0.3s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mini Home */
.mini-banner {
    height: 120px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.banner-title { font-size: 18px; font-weight: 700; color: white; margin: 0; }
.banner-sub { font-size: 12px; color: rgba(255,255,255,0.8); margin: 4px 0 0; }

.mini-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.mini-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--muted);
}

.mi-circle {
    width: 36px; height: 36px;
    border-radius: 10px;
}

.mi-1 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.mi-2 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.mi-3 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.mi-4 { background: linear-gradient(135deg, #fa709a, #fee140); }

.mini-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mini-product {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.mp-img {
    height: 80px;
    border-radius: 8px 8px 0 0;
}

.mp-1 { background: linear-gradient(135deg, #2d3436, #636e72); }
.mp-2 { background: linear-gradient(135deg, #fdcb6e, #e17055); }
.mp-3 { background: linear-gradient(135deg, #00b894, #00cec9); }
.mp-4 { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }

.mp-name { font-size: 11px; font-weight: 600; padding: 4px 6px 0; }
.mp-price { font-size: 12px; color: var(--danger); font-weight: 700; padding: 0 6px 6px; }

/* Mini Category */
.cat-layout {
    display: flex;
    height: 100%;
    gap: 8px;
}

.cat-sidebar {
    width: 70px;
    background: var(--surface);
    border-radius: 8px;
    padding: 4px;
}

.cat-side-item {
    padding: 8px 4px;
    font-size: 10px;
    text-align: center;
    border-radius: 6px;
    margin-bottom: 2px;
    color: var(--muted);
    cursor: pointer;
}

.cat-side-item.active {
    background: white;
    color: var(--accent);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.cat-main { flex: 1; }

.cat-banner {
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    margin-bottom: 8px;
}

.cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: var(--muted);
}

.ci-img {
    width: 100%;
    height: 50px;
    border-radius: 6px;
}

.ci-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.ci-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.ci-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.ci-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }

/* Mini Cart */
.cart-header {
    font-size: 14px;
    font-weight: 700;
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 8px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: white;
    border-radius: 8px;
    margin-bottom: 6px;
    box-shadow: var(--shadow-sm);
}

.cart-check {
    width: 16px; height: 16px;
    border: 2px solid var(--muted-light);
    border-radius: 50%;
    flex-shrink: 0;
}

.cart-check.checked {
    background: var(--accent);
    border-color: var(--accent);
    position: relative;
}

.cart-check.checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 10px;
}

.cart-img {
    width: 50px; height: 50px;
    border-radius: 6px;
    flex-shrink: 0;
}

.cart-info { flex: 1; }
.cart-name { font-size: 11px; font-weight: 600; margin: 0; }
.cart-spec { font-size: 9px; color: var(--muted); margin: 2px 0; }
.cart-price { font-size: 12px; color: var(--danger); font-weight: 700; margin: 0; }
.cart-qty { font-size: 11px; color: var(--muted); }

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    margin-top: 8px;
    font-size: 13px;
}

.cart-footer strong { color: var(--danger); font-size: 16px; }

.cart-pay-btn {
    background: var(--gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Mini Profile */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 12px;
}

.profile-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    margin: 0 auto 8px;
    border: 2px solid rgba(255,255,255,0.5);
}

.profile-name { font-size: 14px; font-weight: 700; color: white; }
.profile-vip {
    display: inline-block;
    font-size: 10px;
    color: #fbbf24;
    background: rgba(251,191,36,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}

.profile-orders {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.po-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: var(--muted);
}

.po-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
}

.po-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.po-2 { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.po-3 { background: linear-gradient(135deg, #10b981, #059669); }
.po-4 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.profile-menu {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.pm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    font-size: 12px;
    border-bottom: 1px solid var(--surface);
}

.pm-item:last-child { border-bottom: none; }
.pm-arrow { color: var(--muted-light); }

/* ====== Website Gallery Demo ====== */
.website-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.website-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--rule);
    transition: all 0.4s;
    cursor: pointer;
}

.website-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.website-preview {
    height: 220px;
    padding: 12px;
    overflow: hidden;
    position: relative;
}

.wp-tech { background: linear-gradient(135deg, #0f172a, #1e3a5f); }
.wp-business { background: linear-gradient(135deg, #1e293b, #334155); }
.wp-creative { background: linear-gradient(135deg, #7c3aed, #ec4899); }

.wp-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.wp-logo {
    width: 40px; height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 4px;
}

.wp-menu { display: flex; gap: 6px; }

.wp-mi {
    width: 20px; height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.wp-hero { margin-bottom: 16px; }

.wp-hero-center { text-align: center; }

.wp-title {
    width: 70%; height: 12px;
    background: rgba(255,255,255,0.8);
    border-radius: 6px;
    margin-bottom: 8px;
}

.wp-hero-center .wp-title { margin: 0 auto 8px; }

.wp-sub {
    width: 50%; height: 6px;
    background: rgba(255,255,255,0.4);
    border-radius: 3px;
    margin-bottom: 12px;
}

.wp-hero-center .wp-sub { margin: 0 auto 12px; }

.wp-btn {
    width: 60px; height: 16px;
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
}

.wp-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.wp-card {
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
}

.wp-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.wp-feat {
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
}

.wp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.wp-gi {
    height: 30px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

.website-info {
    padding: 20px;
}

.website-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(37,99,235,0.08);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.website-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.website-info p {
    font-size: 13px;
    color: var(--muted);
}

/* ====== Process ====== */
.process {
    padding: 100px 0;
    background: var(--surface);
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0.2;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 48px; height: 48px;
    margin: 0 auto 20px;
    background: white;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.process-step:hover .step-num {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.step-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    padding: 0 8px;
}

/* ====== Contact ====== */
.contact {
    padding: 100px 0;
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info .section-header { text-align: left; }
.contact-info .section-subtitle { margin: 0 0 40px; }

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-soft);
    border-radius: var(--radius);
    color: var(--accent);
    flex-shrink: 0;
}

.ci-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 2px;
}

.ci-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.contact-form-wrap {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--rule);
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--ink);
    background: var(--surface);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group textarea { resize: vertical; }

.form-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(16,185,129,0.08);
    color: var(--success);
    border-radius: var(--radius);
    font-size: 14px;
    text-align: center;
}

/* ====== Footer ====== */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h5 {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    transition: color 0.3s;
}

.footer-col ul li a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ====== Back to Top ====== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px; height: 44px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover { transform: translateY(-4px); }

/* ====== 动画入场 ====== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   响应式 - 平板
   ============================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }

    .demo-block,
    .demo-block.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .demo-block.reverse .demo-intro { order: 0; }
    .demo-block.reverse .demo-preview { order: 0; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }

    .about-visual { height: 400px; max-width: 500px; margin: 0 auto; }

    .website-gallery { grid-template-columns: repeat(2, 1fr); }

    .contact-grid { grid-template-columns: 1fr; }

    .hero-title { font-size: 56px; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   响应式 - 手机
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 8px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
    }

    .nav-menu.active { right: 0; }

    .nav-link {
        color: var(--ink) !important;
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 10px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--surface);
        color: var(--accent) !important;
    }

    .nav-cta {
        margin-top: 8px;
        text-align: center;
    }

    .hamburger { display: flex; z-index: 1001; }

    .hamburger span { background: var(--ink) !important; }

    .navbar:not(.scrolled) .hamburger span { background: white !important; }

    .hero-title { font-size: 42px; }
    .hero-subtitle { font-size: 18px; }
    .hero-desc { font-size: 15px; }

    .hero-stats { gap: 16px; }
    .stat-num, .stat-plus { font-size: 28px; }
    .stat-divider { display: none; }

    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 15px; }

    .about { padding: 60px 0; }
    .services { padding: 60px 0; }
    .demos { padding: 60px 0; }
    .process { padding: 60px 0; }
    .contact { padding: 60px 0; }

    .about-values { grid-template-columns: 1fr; }

    .services-grid { grid-template-columns: 1fr; }

    .demo-block { margin-bottom: 60px; }
    .demo-intro h3 { font-size: 24px; }

    .website-gallery { grid-template-columns: 1fr; }

    .process-timeline {
        flex-direction: column;
        gap: 30px;
    }

    .process-timeline::before { display: none; }

    .process-step {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        text-align: left;
    }

    .step-num { margin: 0; flex-shrink: 0; }

    .contact-form-wrap { padding: 24px; }

    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }

    .back-to-top { bottom: 20px; right: 20px; }

    .chat-body { height: 280px; }

    .code-block { font-size: 11px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 36px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }

    .phone-frame { width: 260px; height: 520px; }

    .hero-stats { flex-direction: column; gap: 20px; }
}
