/* ============================================================
   腔调设计 QIANGDIAO DESIGN - 主样式表
   www.qdsj2019.com
   ============================================================ */

/* --- CSS 变量 --- */
:root {
    --primary: #fc6832;
    --primary-dark: #e05520;
    --primary-light: #ff8a5c;
    --bg-dark: #0d0d0d;
    --bg-card: #161616;
    --bg-surface: #1e1e1e;
    --text: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;
    --border: #2a2a2a;
    --white: #ffffff;
    --font-cn: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    --font-en: "SF Pro Display", "Inter", "Helvetica Neue", sans-serif;
    --font-number: "SF Mono", "JetBrains Mono", "Consolas", monospace;
    --max-width: 1280px;
    --header-height: 80px;
    --radius: 12px;
    --radius-sm: 6px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-cn);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Utility --- */
.section { padding: 100px 0; }
.section-label {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 16px;
    color: var(--white);
}
.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 48px;
}
.text-center { text-align: center; }
.text-center .section-desc { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-cn);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(252, 104, 50, 0.3);
    color: var(--white);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}
.btn-sm { padding: 10px 24px; font-size: 0.85rem; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    transition: background var(--transition), backdrop-filter var(--transition);
}
.header.scrolled {
    background: rgba(13,13,13,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
}
.logo img { height: clamp(28px, 4.5vw, 40px); width: auto; display: block; }
.logo:hover { color: var(--white); }
.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
}
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    padding: 4px 0;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width var(--transition);
}
.nav a:hover, .nav a.active { color: var(--white); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}
.menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.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;
    background: var(--bg-dark);
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(252,104,50,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-bg-text {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-en);
    font-size: clamp(6rem, 14vw, 16rem);
    font-weight: 900;
    color: rgba(255,255,255,0.015);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-content .hero-tag {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 24px;
}
.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white);
}
.hero-content h1 .highlight { color: var(--primary); }
.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat h3 {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}
.hero-stat p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* --- Scroll indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}
.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}
@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   PORTFOLIO GRID
   ============================================================ */
.portfolio-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 8px 24px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-cn);
    font-size: 0.9rem;
    transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.portfolio-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1/1;
    background: var(--bg-card);
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-item:hover {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    z-index: 2;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay .cat {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 2px;
}
.portfolio-overlay h3 { color: var(--white); font-size: 0.95rem; margin-bottom: 2px; }
.portfolio-overlay p { color: rgba(255,255,255,0.6); font-size: 0.75rem; }

/* --- Featured project removed - all items uniform --- */

/* ============================================================
   SERVICES CARDS
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(252,104,50,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}
.service-card h3 { margin-bottom: 10px; color: var(--white); }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    padding-top: var(--header-height);
}
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-content--reverse > div:first-child { order: 2; }
.about-content--reverse > div:last-child { order: 1; }
.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--bg-card);
    position: relative;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    transform: translate(16px, 16px);
    z-index: -1;
    opacity: 0.3;
}
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    padding-bottom: 32px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 6px;
    width: 9px;
    height: 9px;
    background: var(--primary);
    border-radius: 50%;
}
.timeline-item .year {
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 4px;
}
.timeline-item h4 { color: var(--white); font-size: 1.05rem; }
.timeline-item p { color: var(--text-secondary); font-size: 0.9rem; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 48px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-number {
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }

/* ============================================================
   CLIENTS LOGO WALL
   ============================================================ */
.clients-row {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    opacity: 0.4;
}
.client-logo {
    height: 32px;
    filter: invert(1) brightness(0.7);
    transition: opacity var(--transition);
}
.client-logo:hover { opacity: 0.7; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-info h2 { margin-bottom: 20px; }
.contact-info .info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.info-item .icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(252,104,50,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
}
.info-item h4 { color: var(--white); margin-bottom: 2px; font-size: 0.95rem; }
.info-item p { color: var(--text-secondary); font-size: 0.9rem; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-cn);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
}
.form-group input.input-error,
.form-group textarea.input-error,
.form-group select.input-error {
    border-color: #fc6832;
    box-shadow: 0 0 0 2px rgba(252,104,50,0.15);
}
.field-error {
    color: #fc6832;
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   CASE DETAIL PAGE
   ============================================================ */
.case-hero {
    min-height: 60vh;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}
.case-hero img { width: 100%; max-height: 60vh; object-fit: cover; border-radius: var(--radius); }
.case-info-bar {
    display: flex;
    gap: 48px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.case-info-bar .info-item small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.case-info-bar .info-item span { color: var(--white); font-weight: 500; }
.case-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}
.case-content img { border-radius: var(--radius); }
.case-content .full-width { grid-column: 1 / -1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand h3 {
    font-family: var(--font-en);
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 12px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
    padding: 140px 0 80px;
    text-align: center;
    background: var(--bg-dark);
}
.page-header h1 { margin-bottom: 12px; }
.page-header .breadcrumb { color: var(--text-muted); font-size: 0.9rem; }
.page-header .breadcrumb a { color: var(--text-secondary); }
.page-header .breadcrumb span { color: var(--primary); }

/* ============================================================
   PROCESS / WORKFLOW
   ============================================================ */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    counter-reset: step;
}
.process-step {
    text-align: center;
    position: relative;
    padding: 32px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.process-step::before {
    counter-increment: step;
    content: '0' counter(step);
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(252,104,50,0.15);
    display: block;
    margin-bottom: 16px;
}
.process-step h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; color: var(--text-secondary); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .about-content--reverse > div:first-child,
    .about-content--reverse > div:last-child { order: 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .case-content { grid-template-columns: 1fr; }
}

/* Tighter grid for tablets */
@media (max-width: 840px) {
    .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
}

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

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        transition: right var(--transition);
        border-left: 1px solid var(--border);
    }
    .nav.open { right: 0; }
    .nav a { font-size: 1.1rem; }
    .menu-btn { display: flex; }

    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero-stat h3 { font-size: 1.5rem; }

    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .portfolio-item { aspect-ratio: 1/1; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-bg-text { font-size: 6rem; opacity: 0.03; }
    .case-info-bar { gap: 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    transform: scaleY(1);
    transform-origin: top;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}
.page-transition.hide { transform: scaleY(0); }

/* ============================================================
   OVERLAY / MOBILE NAV BG
   ============================================================ */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* ============================================================
   LAZY LOAD PLACEHOLDER
   ============================================================ */
.img-placeholder {
    background: linear-gradient(135deg, var(--bg-card) 0%, #1a1a1a 50%, var(--bg-card) 100%);
    background-size: 200% 200%;
    animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   VISUAL ENHANCEMENTS — v2
   ============================================================ */

/* --- Subtle Grain via body background --- */
body {
    background-color: var(--bg-dark);
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.008) 2px,
        rgba(255,255,255,0.008) 4px
    ),
    repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.008) 2px,
        rgba(255,255,255,0.008) 4px
    );
}

/* --- Gradient Orbs --- */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}
.gradient-orb.orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(252,104,50,0.18) 0%, transparent 70%);
    top: -25%;
    right: -15%;
}
.gradient-orb.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(252,104,50,0.12) 0%, transparent 70%);
    bottom: -20%;
    left: -10%;
}

/* --- Mouse Spotlight (global) --- */
.spotlight {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(252,104,50,0.07) 0%, rgba(252,104,50,0.03) 30%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: left, top;
}
.spotlight.active { opacity: 1; }

/* --- Hero Text Split Animation --- */
.hero-content h1 .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hero-content h1 .char.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero Decorative Line --- */
.hero-decor-line {
    position: absolute;
    left: 0;
    bottom: 30%;
    width: 180px;
    height: 1px;
    background: linear-gradient(to right, var(--primary), transparent);
    z-index: 1;
    opacity: 0.5;
}

/* --- Animated Glowing Borders (Cards) --- */
.service-card { z-index: 1; }
.service-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius);
    background: linear-gradient(45deg, var(--primary), #ff9a56, var(--primary), #ff6b3d);
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.service-card:hover::after {
    opacity: 1;
    animation: borderShine 3s ease infinite;
}
@keyframes borderShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Contact Form Glowing Border --- */
.contact-form {
    position: relative;
    z-index: 1;
}
.contact-form::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius);
    background: linear-gradient(45deg, rgba(252,104,50,0.5), rgba(255,154,86,0.3), rgba(252,104,50,0.5), rgba(255,107,61,0.3));
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.contact-form.form-glow::after {
    opacity: 1;
    animation: borderShine 3s ease infinite;
}

/* --- Portfolio Reveal Animation --- */
.portfolio-item {
    transition: clip-path 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-item.reveal-hidden {
    clip-path: inset(0 100% 0 0);
}
.portfolio-item.reveal-hidden:nth-child(even) {
    clip-path: inset(0 0 0 100%);
}

/* --- Stats Bar Animated Shimmer --- */
.stats-bar {
    position: relative;
    overflow: hidden;
}
.stats-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(252,104,50,0.03) 25%,
        rgba(252,104,50,0.07) 50%,
        rgba(252,104,50,0.03) 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: statsShimmer 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes statsShimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* --- Button Ripple Effect --- */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

/* --- Process Step Enhanced Hover --- */
.process-step {
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}
.process-step:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(252, 104, 50, 0.12);
}
.process-step:hover::before {
    color: rgba(252, 104, 50, 0.35);
    transition: color 0.4s;
}

/* --- Page Header Background Glow --- */
.page-header {
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(252, 104, 50, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* --- Portfolio Overlay Enhancement --- */
.portfolio-overlay {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* --- Enhanced Stat Numbers --- */
.stat-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Timeline Dot Pulse --- */
.timeline-item::after {
    content: '';
    position: absolute;
    left: -36px;
    top: 2px;
    width: 17px;
    height: 17px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: dotPulse 2s ease-out infinite;
}
.timeline-item:hover::after {
    animation: dotPulse 2s ease-out infinite;
}
@keyframes dotPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* --- Responsive: Disable heavy effects on mobile --- */
@media (max-width: 768px) {
    .gradient-orb { display: none; }
    .spotlight { display: none; }
    .hero-decor-line { display: none; }
    .portfolio-item.reveal-hidden { clip-path: none; }
    .portfolio-item.reveal-hidden:nth-child(even) { clip-path: none; }
}

/* --- Pagination --- */
.page-btn {
    width: 38px; height: 38px; border-radius: 50%;
    background: transparent; border: 1px solid var(--border);
    color: var(--text-secondary); cursor: pointer;
    font-size: 1rem; transition: all 0.25s;
    display: flex; align-items: center; justify-content: center;
}
.page-btn:hover:not(:disabled) {
    border-color: var(--primary); color: var(--primary);
    box-shadow: 0 0 12px rgba(252,104,50,0.25);
}
.page-btn:disabled { opacity: 0.3; cursor: default; }
.page-btn.page-num { width: 38px; height: 38px; border-radius: 50%; font-size: 0.85rem; }
.page-btn.page-num.active {
    background: var(--primary); color: var(--white); border-color: var(--primary);
    box-shadow: 0 0 16px rgba(252,104,50,0.35);
}
.page-info {
    color: var(--text-muted); font-size: 0.8rem; margin: 0 8px;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-close {
    position: absolute; top: 20px; right: 24px; z-index: 10;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    color: var(--white); font-size: 1.3rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s;
}
.lightbox-close:hover { background: rgba(252,104,50,0.3); border-color: var(--primary); }
.lightbox-main {
    flex: 1; width: 100%; display: flex; align-items: center; justify-content: center;
    padding: 70px 60px 110px; position: relative;
}
.lightbox-img {
    max-width: 92vw; max-height: 78vh; width: auto; height: auto;
    object-fit: contain; border-radius: 4px; transition: opacity 0.3s;
    box-shadow: 0 8px 60px rgba(0,0,0,0.6);
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 80px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: var(--white); font-size: 1.6rem; cursor: pointer;
    border-radius: 8px; transition: all 0.25s; z-index: 5;
}
.lightbox-nav:hover { background: rgba(252,104,50,0.25); border-color: var(--primary); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px 24px 28px; text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 5;
}
.lightbox-dims { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 4px; }
.lightbox-cat { color: var(--primary); font-size: 0.85rem; font-weight: 500; }
.lightbox-count { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }
.lightbox-counter { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: var(--text-muted); font-size: 0.85rem; z-index: 10; }

@media (max-width: 768px) {
    .lightbox-main { padding: 60px 44px 100px; }
    .lightbox-img { max-width: 94vw; max-height: 72vh; }
    .lightbox-nav { width: 36px; height: 56px; font-size: 1.2rem; }
    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }
    .lightbox-dims { font-size: 0.75rem; }
}

/* ============================================================
   合作品牌滚动展示
   ============================================================ */

.brands-section {
    background: var(--bg-card);
    overflow: hidden;
    padding-top: 50px;
}

.brands-frame {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 0;
    margin-top: 20px;
}

.brands-scroll {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* 两侧渐变遮罩 */
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 6%,
        black 94%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 6%,
        black 94%,
        transparent 100%
    );
}

.brands-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: brandScroll 80s linear infinite;
}

.brands-track:hover {
    animation-play-state: paused;
}

.brand-logo {
    height: 52px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    opacity: 0.75;
    transition: opacity 0.35s ease;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
}

.brand-logo:hover {
    opacity: 1;
}

@keyframes brandScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 使用 -50% 移动自身宽度的一半，配合 HTML 中两份完全相同的品牌列表实现无缝循环。
           不再使用硬编码像素偏移，避免了因 gap 变化、图片宽度差异或服务器环境不同
           导致的偏移失效问题。80 秒的动画时长下，微小的像素差异肉眼完全不可见。 */
        transform: translateX(-50%);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .brands-section {
        padding-top: 30px;
    }
    .brands-frame {
        padding: 20px 0;
    }
    .brands-track {
        gap: 32px;
    }
    .brand-logo {
        height: 36px;
        max-width: 120px;
    }
}
