/* ============================================
   玖盛软件 jssoft — 官网样式
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-accent: #06b6d4;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #0f172a;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-success: #10b981;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 48px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.05);

    --max-width: 1200px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 16px;
}

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

/* ---------- Button ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

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

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.header.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    font-size: 20px;
    color: var(--color-text);
    line-height: 1.2;
}

.logo-text small {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Nav */
.nav { display: flex; gap: 4px; }

.nav-link {
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.06);
}

/* Menu toggle (mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--color-text);
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(37, 99, 235, 0.06), transparent),
        radial-gradient(ellipse 60% 70% at 80% 30%, rgba(6, 182, 212, 0.06), transparent),
        radial-gradient(ellipse 40% 50% at 50% 80%, rgba(16, 185, 129, 0.04), transparent);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-greeting {
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 24px;
}

.highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--color-text-muted);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-size: 36px;
    font-weight: 800;
    color: var(--color-primary);
    flex-direction: row;
    flex-wrap: wrap;
}

.stat-item > span:nth-child(2) {
    font-size: 24px;
}

.stat-label {
    display: block;
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* Hero visual (code card) */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-bg-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

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

.hero-card-header {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: #1e293b;
}

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

.card-dot:nth-child(1) { background: #ef4444; }
.card-dot:nth-child(2) { background: #f59e0b; }
.card-dot:nth-child(3) { background: #10b981; }

.hero-card-body {
    padding: 24px 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 2;
    color: #e2e8f0;
    position: relative;
}

.code-line { white-space: pre; }
.code-line.indent { padding-left: 20px; }
.code-line.indent-2 { padding-left: 40px; }

.code-keyword { color: #c084fc; }
.code-class { color: #facc15; }
.code-prop { color: #67e8f9; }
.code-string { color: #86efac; }
.code-func { color: #fda4af; }

.code-cursor {
    display: inline-block;
    color: #fff;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    background: var(--color-bg-alt);
}

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

.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

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

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

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

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

.service-tags li {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.07);
    padding: 4px 12px;
    border-radius: 100px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

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

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

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

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-success);
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-feature strong {
    display: block;
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 2px;
}

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

/* About cards */
.about-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.about-card:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

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

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

.about-card--mission { border-left: 4px solid var(--color-primary); }
.about-card--vision { border-left: 4px solid var(--color-accent); }
.about-card--tech { border-left: 4px solid var(--color-success); }

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tech-tags span {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    background: var(--color-bg-alt);
    border-radius: 100px;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

/* ============================================
   PROCESS
   ============================================ */
.process {
    background: var(--color-bg-dark);
    color: #fff;
}

.process .section-title { color: #fff; }
.process .section-desc { color: #94a3b8; }

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

.process-step {
    background: #1e293b;
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.3s ease;
    border: 1px solid #334155;
    position: relative;
    overflow: hidden;
}

.process-step::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.process-step:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.process-step:hover::after {
    transform: scaleX(1);
}

.step-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f1f5f9;
}

.step-content p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
}

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

.case-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

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

.case-cover {
    height: 180px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    position: relative;
}

.case-cover--1 {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}
.case-cover--2 {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}
.case-cover--3 {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.case-industry {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

.case-info {
    padding: 24px;
}

.case-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
}

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

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--color-bg-alt);
}

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

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

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

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

.contact-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.contact-item strong {
    display: block;
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 2px;
}

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

/* Form */
.contact-form {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.contact-form h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text);
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    outline: none;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg-dark);
    color: #94a3b8;
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid #1e293b;
}

.footer-brand p {
    font-size: 15px;
    margin-top: 16px;
    line-height: 1.7;
}

.footer-slogan {
    color: #64748b;
    font-size: 14px !important;
}

.footer-logo .logo-text { color: #fff; }
.footer-logo .logo-text small { color: #94a3b8; }

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

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #fff;
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.footer-icp {
    margin-top: 8px;
}

.footer-icp a {
    font-size: 13px;
    color: #64748b;
    transition: color 0.2s ease;
}

.footer-icp a:hover {
    color: #94a3b8;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

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

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

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

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

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

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

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

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

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

@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

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

    .section-desc {
        font-size: 16px;
    }

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

    .hero-desc {
        font-size: 16px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-item {
        font-size: 28px;
    }

    /* Mobile nav */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: #fff;
        padding: 100px 32px 32px;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        gap: 8px;
    }

    .nav.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

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

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

    .process-steps {
        grid-template-columns: 1fr;
    }

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

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

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

    .footer-inner {
        gap: 40px;
    }
}

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

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }
}
