/* ============================================
   一禾软件 - 网站样式表
   现代简约 · AI智能 · 科技商务风格
   ============================================ */

/* ===== 阿里妈妈方圆体 (在线链接，仅供体验调试) ===== */
@font-face {
  font-family: "阿里妈妈方圆体 VF Regular";
  src: url("https://at.alicdn.com/wf/webfont/kdnZLGRijxiC/xLArq4UWe2t2.woff2") format("woff2"),
       url("https://at.alicdn.com/wf/webfont/kdnZLGRijxiC/3iFqatnFj7BA.woff") format("woff");
  font-variation-settings: "BEVL" 1, "wght" 339.57;
  font-display: swap;
}

.webfont {
  font-family: "阿里妈妈方圆体 VF Regular";
  font-variation-settings: "BEVL" 1, "wght" 339.57;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1729;
    --bg-tertiary: #141d33;
    --bg-card: rgba(20, 29, 51, 0.6);
    --bg-card-hover: rgba(30, 41, 66, 0.8);
    --border-color: rgba(99, 119, 200, 0.15);
    --border-hover: rgba(0, 212, 255, 0.3);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-cyan: #00d4ff;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --gradient-bg: radial-gradient(ellipse at top, rgba(0, 212, 255, 0.08), transparent 60%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);

    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1200px;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Light Theme ===== */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-card: rgba(241, 245, 249, 0.8);
    --bg-card-hover: rgba(226, 232, 240, 0.9);
    --border-color: rgba(148, 163, 184, 0.2);
    --border-hover: rgba(0, 180, 216, 0.4);

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --accent-cyan: #0891b2;
    --accent-purple: #7c3aed;
    --accent-blue: #2563eb;
    --gradient-primary: linear-gradient(135deg, #0891b2 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
    --gradient-bg: radial-gradient(ellipse at top, rgba(8, 145, 178, 0.06), transparent 60%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(8, 145, 178, 0.1);
}

[data-theme="light"] .navbar {
    background: rgba(248, 250, 252, 0.3);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(248, 250, 252, 0.95);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

[data-theme="light"] .hero-glow.glow-1 {
    background: rgba(8, 145, 178, 0.2);
}

[data-theme="light"] .hero-glow.glow-2 {
    background: rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .hero-grid {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
}

[data-theme="light"] .hero-badge {
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.2);
    color: var(--accent-cyan);
}

[data-theme="light"] .badge-dot {
    background: var(--accent-cyan);
}

[data-theme="light"] .logo-icon {
    color: var(--text-primary);
}

[data-theme="light"] .logo-text {
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}

[data-theme="light"] .about-card-glass {
    background: rgba(226, 232, 240, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="light"] .about-card-header {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .about-code {
    color: var(--text-secondary);
}

[data-theme="light"] .feature-icon {
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.15);
}

[data-theme="light"] .service-icon {
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.15);
}

[data-theme="light"] .service-tags li {
    background: rgba(8, 145, 178, 0.06);
    border-color: rgba(8, 145, 178, 0.12);
    color: var(--accent-cyan);
}

[data-theme="light"] .case-tag {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.15);
    color: var(--accent-purple);
}

[data-theme="light"] .cta-bg {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%);
}

[data-theme="light"] .cta-bg::before {
    background: radial-gradient(circle, rgba(8, 145, 178, 0.08) 0%, transparent 50%);
}

[data-theme="light"] .contact-icon {
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.15);
}

[data-theme="light"] .contact-form-wrap {
    background: rgba(226, 232, 240, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(148, 163, 184, 0.25);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.08);
}

[data-theme="light"] .process-number::before {
    background: var(--gradient-primary);
}

[data-theme="light"] .section-tag {
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.2);
    color: var(--accent-cyan);
}

[data-theme="light"] .card-line {
    background: var(--gradient-primary);
}

[data-theme="light"] .card-dot.red { background: #ff5f57; }
[data-theme="light"] .card-dot.yellow { background: #febc2e; }
[data-theme="light"] .card-dot.green { background: #28c840; }

[data-theme="light"] ::selection {
    background: rgba(8, 145, 178, 0.2);
    color: #1e293b;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.back-to-top:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.35);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* 移动端收缩 Hero 标题字号，保证最长词组单行显示不溢出 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 21px;
    }
}

[data-theme="light"] .nav-menu {
    background: rgba(248, 250, 252, 0.98);
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

[data-theme="light"] .nav-toggle span {
    background: var(--text-primary);
}

/* ===== Theme Transition ===== */
body,
.navbar,
.nav-menu,
.hero-glow,
.service-card,
.case-card,
.team-card,
.solution-item,
.about-card-glass,
.contact-form-wrap,
.cta-box,
.footer,
.section-tag,
.feature-icon,
.service-icon,
.contact-icon,
.stat-number,
.form-group input,
.form-group textarea {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== Section Base ===== */
.section {
    padding: var(--section-padding);
    position: relative;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 17px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(10, 14, 26, 0.3);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: color 0.3s ease;
}

.logo-icon svg {
    height: 42px;
    width: auto;
    display: block;
}

.logo-color {
    display: block;
}

.nav-logo:hover .logo-icon {
    color: var(--accent-cyan);
}

.logo-text {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: none;
    font-family: "阿里妈妈方圆体 VF Regular";
    font-variation-settings: "BEVL" 1, "wght" 339.57;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Theme Toggle ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.theme-icon-sun {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-icon-moon {
    position: absolute;
    opacity: 1;
    transform: rotate(0deg) scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="light"] .theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="light"] .theme-toggle {
    background: rgba(30, 41, 59, 0.05);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(30, 41, 59, 0.08);
    border-color: var(--accent-cyan);
}

/* ===== Hero Section ===== */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 140px 0 70px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(99, 119, 200, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 119, 200, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 70%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-cyan);
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    bottom: -50px;
    right: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--accent-cyan);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(30px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* 固定打字机文字高度，避免词组长短变化导致 banner 跳动 */
#typingText {
    display: inline-block;
    white-space: nowrap;
    min-height: 1.2em;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero-scroll span {
    width: 4px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 2px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ===== Stats Section ===== */
.stats {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: var(--border-color);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 15px;
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--accent-cyan);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ===== About Section ===== */
.about {
    background: var(--bg-primary);
}

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

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.9;
}

.about-text strong {
    color: var(--text-primary);
}

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

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-feature h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* About Code Card */
.about-visual {
    display: flex;
    justify-content: center;
}

.about-card-glass {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.card-line {
    height: 3px;
    background: var(--gradient-primary);
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.card-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

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

.card-title {
    margin-left: 12px;
    color: var(--text-muted);
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

.about-code {
    padding: 24px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 2;
}

.code-line { color: var(--text-secondary); }
.code-line.indent { padding-left: 24px; }
.code-line.indent2 { padding-left: 48px; }

.code-keyword { color: #c678dd; }
.code-var { color: #e06c75; }
.code-string { color: #98c379; }
.code-number { color: #d19a66; }
.code-bool { color: #56b6c2; }

/* ===== Services Section ===== */
.services {
    background: var(--bg-secondary);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px 32px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

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

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

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

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

.service-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.service-tags li {
    padding: 4px 14px;
    border-radius: 50px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.12);
    color: var(--accent-cyan);
    font-size: 12px;
    font-weight: 500;
}

/* ===== Solutions Section ===== */
.solutions {
    background: var(--bg-primary);
}

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

.solution-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 36px 32px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.solution-item:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.solution-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.solution-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.solution-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== Process Section ===== */
.process {
    background: var(--bg-secondary);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.process-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.process-number::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.process-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.process-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== Cases Section ===== */
.cases {
    background: var(--bg-primary);
}

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

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.case-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md);
}

.case-header {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.case-tag {
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
    font-size: 12px;
    font-weight: 500;
}

.case-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.case-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== Clients Section ===== */
.clients {
    background: var(--bg-secondary);
}

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

.client-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.client-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.10);
}

.client-card:hover::after {
    opacity: 1;
}

.client-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    color: var(--accent-cyan);
    transition: var(--transition);
}

.client-card:hover .client-icon {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent-cyan);
}

.client-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.client-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.client-industry {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Light theme overrides for clients */
[data-theme="light"] .client-icon {
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.15);
    color: var(--accent-cyan);
}

[data-theme="light"] .client-card:hover .client-icon {
    background: rgba(8, 145, 178, 0.15);
    border-color: var(--accent-cyan);
}

[data-theme="light"] .client-card:hover {
    box-shadow: 0 8px 30px rgba(8, 145, 178, 0.08);
}

[data-theme="light"] .client-industry {
    background: rgba(8, 145, 178, 0.06);
    border-color: rgba(8, 145, 178, 0.12);
    color: var(--accent-cyan);
}

/* ===== Team Section ===== */
.team {
    background: var(--bg-secondary);
}

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

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.team-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.team-role {
    color: var(--accent-cyan);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.team-exp {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.team-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.cta-box {
    position: relative;
    border-radius: var(--border-radius-lg);
    padding: 64px 48px;
    text-align: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.cta-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--bg-secondary);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Contact Form */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    backdrop-filter: blur(20px);
}

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

.form-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 28px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(10, 14, 26, 0.8);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-primary);
    padding: 80px 0 32px;
    border-top: 1px solid var(--border-color);
}

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

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: "阿里妈妈方圆体 VF Regular";
    font-variation-settings: "BEVL" 1, "wght" 339.57;
    letter-spacing: 1px;
}

.footer-logo svg {
    height: 42px;
    width: auto;
    display: block;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-seo {
    color: var(--text-muted) !important;
    font-size: 12px !important;
}

.footer-icp a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-icp a:hover {
    color: var(--accent-cyan);
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid,
    .solutions-grid,
    .cases-grid,
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

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

    .services-grid,
    .solutions-grid,
    .cases-grid,
    .clients-grid,
    .process-timeline,
    .team-grid {
        grid-template-columns: 1fr;
    }

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

    .cta-box {
        padding: 48px 24px;
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }
}

/* ===== Selection ===== */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: #fff;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.back-to-top:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.35);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* 移动端收缩 Hero 标题字号，保证最长词组单行显示不溢出 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 21px;
    }
}
