/* Apple-inspired theme overrides for 众辰科技 */

:root {
    --primary-color: #0071e3;
    --primary-gradient: linear-gradient(180deg, #0071e3 0%, #0077ed 100%);
    --primary-gradient-alt: linear-gradient(180deg, #0071e3 0%, #0077ed 100%);
    --primary-gradient-strong: linear-gradient(180deg, #1d1d1f 0%, #424245 100%);
    --accent-color: #0071e3;
    --accent-gradient: linear-gradient(180deg, #0071e3 0%, #40a9ff 100%);
    --accent-glow: rgba(0, 113, 227, 0.25);
    --secondary-color: #1d1d1f;
    --tertiary-color: #424245;
    --text-dark: #1d1d1f;
    --text-medium: #6e6e73;
    --text-light: #86868b;
    --text-lighter: #a1a1a6;
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --bg-gradient: #ffffff;
    --bg-glass: rgba(251, 251, 253, 0.72);
    --border-color: #d2d2d7;
    --border-light: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 32px 80px rgba(0, 0, 0, 0.14);
    --shadow-glow: none;
    --shadow-colored: 0 8px 24px rgba(0, 113, 227, 0.12);
    --shadow-glow-strong: none;
    --transition-fast: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-base: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 18px;
    --radius-xl: 20px;
    --nav-height: 52px;
}

body {
    background: var(--bg-white);
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

body::before,
body::after {
    display: none;
}

.container {
    max-width: 980px;
    padding: 0 22px;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

/* ── Navigation ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0;
    background: rgba(251, 251, 253, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(251, 251, 253, 0.92);
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

.navbar:hover {
    box-shadow: none;
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

.navbar .container {
    height: var(--nav-height);
    gap: 0;
    max-width: 1200px;
}

.navbar .logo {
    flex-shrink: 0;
    min-width: 80px;
}

.nav-menu {
    gap: 0;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: 0;
}

.nav-menu a {
    font-size: 0.6875rem;
    font-weight: 400;
    padding: 0 8px;
    color: var(--text-dark);
    opacity: 0.88;
    border-radius: 0;
    white-space: nowrap;
}

.nav-menu a::before {
    display: none;
}

.nav-menu a:hover {
    background: none;
    transform: none;
    opacity: 1;
    color: var(--primary-color);
}

.nav-menu a.active {
    background: none;
    box-shadow: none;
    opacity: 1;
    font-weight: 500;
}

.logo h1 {
    font-size: 1.125rem;
    font-weight: 600;
    background: none;
    -webkit-text-fill-color: var(--text-dark);
    color: var(--text-dark);
    margin-bottom: 0;
    letter-spacing: -0.02em;
    filter: none;
}

.logo:hover h1 {
    transform: none;
    filter: none;
}

.tagline {
    display: none;
}

.language-switcher {
    background: rgba(0, 0, 0, 0.04);
    padding: 2px;
    border-radius: 980px;
    margin-left: 0;
    padding-left: 2px;
}

.lang-btn {
    font-size: 0.6875rem;
    padding: 4px 10px;
    border-radius: 980px;
}

.lang-btn.active {
    background: var(--bg-white);
    color: var(--text-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    padding: calc(var(--nav-height) + 80px) 0 100px;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before,
.hero::after {
    display: none;
}

.hero-visual {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

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

.hero-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.35) 0%, transparent 70%);
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.hero-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(88, 86, 214, 0.25) 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
    animation-delay: -4s;
}

.hero-orb--3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(48, 209, 88, 0.15) 0%, transparent 70%);
    bottom: 20%;
    left: 5%;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 113, 227, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 113, 227, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-chip {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.12;
    animation: chipPulse 4s ease-in-out infinite;
}

.hero-chip--1 { top: 25%; left: 15%; animation-delay: 0s; }
.hero-chip--2 { top: 35%; right: 12%; animation-delay: 1.3s; width: 80px; height: 80px; }
.hero-chip--3 { bottom: 30%; left: 20%; animation-delay: 2.6s; width: 60px; height: 60px; }

@keyframes chipPulse {
    0%, 100% { opacity: 0.08; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.18; transform: scale(1.1) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    background: none;
    -webkit-text-fill-color: var(--text-dark);
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.hero-title .subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    color: var(--text-medium);
    margin-top: 1rem;
    letter-spacing: -0.015em;
}

.hero-description {
    font-size: clamp(1.0625rem, 2vw, 1.3125rem);
    line-height: 1.5;
    color: var(--text-medium);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

.hero-cta {
    gap: 1rem;
}

.btn {
    padding: 12px 22px;
    font-size: 1.0625rem;
    font-weight: 400;
    border-radius: 980px;
    letter-spacing: -0.01em;
}

.btn::before {
    display: none;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    box-shadow: none;
}

.btn-primary:hover {
    background: #0077ed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: none;
    backdrop-filter: none;
}

.btn-secondary:hover {
    background: transparent;
    text-decoration: underline;
    transform: none;
    box-shadow: none;
}

/* ── Showcase bands (Apple product-page style) ── */
.showcase-band {
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.showcase-band--dark {
    background: #000;
    color: #f5f5f7;
}

.showcase-band--gray {
    background: var(--bg-light);
}

.showcase-band--white {
    background: var(--bg-white);
}

.showcase-band__eyebrow {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.showcase-band--dark .showcase-band__eyebrow {
    color: #2997ff;
}

.showcase-band__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.showcase-band__subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.4;
}

.showcase-band--dark .showcase-band__subtitle {
    color: #a1a1a6;
}

.showcase-band__link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.0625rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap var(--transition-fast);
}

.showcase-band__link:hover {
    text-decoration: underline;
    gap: 0.5rem;
}

.showcase-visual {
    margin: 3rem auto 0;
    max-width: 900px;
    position: relative;
}

.showcase-visual__inner {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d30 50%, #1d1d1f 100%);
}

.showcase-band--gray .showcase-visual__inner,
.showcase-band--white .showcase-visual__inner {
    background: linear-gradient(135deg, #e8e8ed 0%, #f5f5f7 50%, #d2d2d7 100%);
}

.showcase-circuit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-circuit svg {
    width: 70%;
    height: auto;
    opacity: 0.9;
}

.circuit-line {
    stroke: rgba(0, 113, 227, 0.6);
    stroke-width: 1.5;
    fill: none;
    stroke-dasharray: 8 4;
    animation: circuitFlow 3s linear infinite;
}

.showcase-band--dark .circuit-line {
    stroke: rgba(41, 151, 255, 0.7);
}

@keyframes circuitFlow {
    to { stroke-dashoffset: -24; }
}

.circuit-node {
    fill: var(--primary-color);
    animation: nodePulse 2s ease-in-out infinite;
}

.showcase-band--dark .circuit-node {
    fill: #2997ff;
}

/* ── Product photos ── */
.showcase-visual__inner--photo {
    background: #1d1d1f;
}

.showcase-band--gray .showcase-visual__inner--photo,
.showcase-band--white .showcase-visual__inner--photo {
    background: #e8e8ed;
}

.product-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.showcase-visual:hover .product-photo {
    transform: scale(1.03);
}

.service-item__photo {
    margin: -2rem -2rem 1.5rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-light);
}

.service-item__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.service-item:hover .service-item__photo img {
    transform: scale(1.04);
}

.product-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 4rem;
}

.product-gallery__item {
    margin: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
}

.product-gallery__item--wide {
    grid-column: 1 / -1;
    aspect-ratio: 21 / 9;
}

.product-gallery__item:not(.product-gallery__item--wide) {
    aspect-ratio: 4 / 3;
}

.product-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.product-gallery__item:hover img {
    transform: scale(1.03);
}

.product-gallery__item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    color: #f5f5f7;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .product-gallery {
        grid-template-columns: 1fr;
    }

    .product-gallery__item--wide {
        aspect-ratio: 16 / 10;
    }

    .service-item__photo {
        margin: -2rem -2rem 1.25rem;
    }
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.6; r: 4; }
    50% { opacity: 1; r: 6; }
}

/* ── Section titles ── */
.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 4rem;
    text-shadow: none;
}

.section-title::after {
    display: none;
}

/* ── Value cards ── */
.value-proposition {
    padding: 100px 0;
    background: var(--bg-light);
}

.value-cards {
    gap: 1.25rem;
}

.value-card,
.tech-card,
.team-role,
.solution-case,
.case-card {
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: none;
    background: var(--bg-white);
}

.value-card::before,
.tech-card::before,
.team-role::before,
.solution-case::before,
.case-card::before {
    display: none;
}

.value-card:hover,
.tech-card:hover,
.team-role:hover,
.solution-case:hover,
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.card-icon {
    font-size: 0;
    margin-bottom: 1.5rem;
    filter: none;
}

.card-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
}

.value-card:hover .card-icon {
    transform: none;
    filter: none;
}

.value-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    background: none;
    -webkit-text-fill-color: var(--text-dark);
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.card-description {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.card-poetry {
    color: var(--text-light);
    border-left: 2px solid var(--border-color);
    border-image: none;
    font-style: normal;
    font-weight: 400;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* ── Stats ── */
.stats {
    padding: 80px 0;
    background: #000;
    color: #f5f5f7;
}

.stats::before,
.stats::after {
    display: none;
}

.stat-item {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 2rem 1rem;
}

.stat-item:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

.stat-number {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    background: none;
    -webkit-text-fill-color: #f5f5f7;
    color: #f5f5f7;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 1.0625rem;
    color: #a1a1a6;
    font-weight: 400;
}

.stat-poetry {
    color: #6e6e73;
    font-style: normal;
}

/* ── Services ── */
.services-preview {
    padding: 100px 0;
    background: var(--bg-white);
}

.services-grid {
    gap: 1rem;
}

.service-item {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    border: none;
    overflow: hidden;
}

.service-item::before {
    display: none;
}

.service-item:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.service-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    background: none;
    -webkit-text-fill-color: var(--text-dark);
    color: var(--text-dark);
}

.service-item p {
    font-size: 0.9375rem;
    color: var(--text-medium);
}

.link-arrow {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 400;
}

.link-arrow::after {
    content: ' ›';
    font-size: 1.25rem;
    line-height: 1;
}

/* ── Page headers (inner pages) ── */
.page-header {
    padding: calc(var(--nav-height) + 60px) 0 60px;
    min-height: auto;
    background: var(--bg-light);
}

.page-header::before,
.page-header::after {
    display: none;
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-dark);
}

.page-header p {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text-medium);
}

/* ── Footer ── */
.footer {
    background: var(--bg-light);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer::before {
    display: none;
}

.footer-section h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-medium);
}

.footer-section p,
.footer-section a {
    font-size: 0.875rem;
    color: var(--text-medium);
}

.footer-section a::before {
    display: none;
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-left: 0;
    transform: none;
}

.footer-bottom {
    font-size: 0.75rem;
    color: var(--text-light);
    border-top-color: var(--border-color);
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Forms (contact page) ── */
.contact-form input,
.contact-form select,
.contact-form textarea {
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
    outline: none;
}

/* ── Category / product cards ── */
.category-card,
.process-step {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: none;
    background: var(--bg-white);
}

.category-card:hover,
.process-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ── Body offset for fixed nav ── */
body {
    padding-top: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 22px;
        gap: 0.75rem;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }

    .nav-menu a {
        font-size: 0.6875rem;
        padding: 6px 8px;
    }

    .language-switcher {
        margin-left: auto;
    }

    .hero {
        padding: calc(var(--nav-height) + 40px) 0 60px;
        min-height: auto;
    }

    .showcase-band {
        padding: 60px 0;
    }

    .value-proposition,
    .services-preview {
        padding: 60px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-orb,
    .hero-chip,
    .circuit-line,
    .circuit-node {
        animation: none;
    }
}


/* ── 修正：style.css 的移动端规则会把导航挤成竖列，
      使贴在顶部的 .navbar 高达 300px 以上并遮住 hero 主标题。
      此处让页头在窄屏下回到文档流，并复位为两行式移动端布局。 ── */
@media (max-width: 768px) {
    .navbar {
        position: relative;
    }

    .navbar .container {
        flex-direction: row;
    }

    .nav-menu {
        flex-direction: row;
    }

    .nav-menu a {
        width: auto;
    }
}