/* ========================================
   云硕科技 - 全局样式
   ======================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #0ea5e9;
    --accent-light: #38bdf8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-blue: #eff6ff;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
    --shadow-lg: 0 12px 48px rgba(37, 99, 235, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --header-h: 72px;
    --transition: 0.25s ease;
    --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-light), var(--primary));
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover {
    background: var(--bg-blue);
    color: var(--primary-dark);
}

.btn-white {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow);
}
.btn-white:hover { color: var(--primary-dark); transform: translateY(-2px); }

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}
.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-h);
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--text);
}
.logo:hover { color: var(--text); }
.logo img { width: 44px; height: 44px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.3; }
.logo-text strong { font-size: 18px; font-weight: 700; color: var(--text); }
.logo-text small { font-size: 11px; color: var(--text-muted); font-weight: 400; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 8px; }
.main-nav a {
    display: block;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 6px;
    transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: var(--bg-blue);
}

.header-cta { flex-shrink: 0; padding: 10px 22px; font-size: 14px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
    padding: calc(var(--header-h) + 60px) 0 80px;
    background: linear-gradient(180deg, var(--bg-blue) 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/images/pattern-dots.svg') repeat;
    opacity: 0.6;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 100px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 20px;
}
.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    color: var(--text);
}
.hero h1 span {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual img { width: 100%; border-radius: var(--radius-lg); }

/* ---- Section common ---- */
section { padding: 80px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}
.section-desc { font-size: 16px; color: var(--text-muted); }

/* ---- Services grid ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}
.services-grid--home {
    grid-template-columns: repeat(4, 1fr);
}

.section-more {
    text-align: center;
    margin-top: 32px;
}
.section-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    transition: gap var(--transition), color var(--transition);
}
.section-more-link:hover {
    color: var(--primary-dark);
    gap: 10px;
}
.section-more-link .icon {
    width: 16px;
    height: 16px;
}
.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-light), var(--primary));
    transform: scaleX(0);
    transition: transform var(--transition);
}
.service-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 52px; height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-blue);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--primary);
}
.service-icon .icon { width: 26px; height: 26px; }
.service-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ---- Solutions ---- */
.section-alt { background: var(--bg-alt); }
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.solutions-grid--home {
    grid-template-columns: repeat(3, 1fr);
}
.solution-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.solution-card:hover { box-shadow: var(--shadow); border-color: rgba(37, 99, 235, 0.15); transform: translateY(-4px); }
.solution-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-blue);
    border-radius: 12px;
    margin-bottom: 18px;
    color: var(--primary);
    flex-shrink: 0;
}
.solution-icon .icon { width: 24px; height: 24px; }
.solution-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.solution-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag {
    padding: 4px 12px;
    background: var(--bg-blue);
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    border-radius: 100px;
}

/* ---- Advantages ---- */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.advantage-item { text-align: center; padding: 24px 16px; }
.advantage-num {
    width: 56px; height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-light), var(--primary));
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    border-radius: 14px;
}
.advantage-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.advantage-item p { font-size: 14px; color: var(--text-muted); }

/* ---- Process ---- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}
.process-steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-light), var(--primary));
    opacity: 0.2;
}
.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}
.step-num {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
}
.process-step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--text-muted); }

/* ---- AI highlight ---- */
.ai-banner {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #0ea5e9 100%);
    border-radius: var(--radius-lg);
    padding: 56px;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.ai-banner::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}
.ai-banner h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.ai-banner p { font-size: 16px; opacity: 0.9; max-width: 560px; }
.ai-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}
.ai-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.95;
}
.ai-feature .icon { width: 18px; height: 18px; color: #93c5fd; }

/* ---- CTA ---- */
.cta-section {
    background: var(--bg-blue);
    text-align: center;
    padding: 80px 0;
}
.cta-section h2 { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.cta-section p { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; }
.cta-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    padding: 16px 32px;
    background: var(--bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.cta-email:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--primary-dark); }
.cta-email svg { width: 24px; height: 24px; }

/* ---- Page header ---- */
.page-header {
    padding: calc(var(--header-h) + 48px) 0 48px;
    background: linear-gradient(180deg, var(--bg-blue), var(--bg));
    text-align: center;
}
.page-header h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.page-header p { font-size: 16px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { color: var(--text-light); }

/* ---- About ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-content h2 { font-size: 28px; font-weight: 700; margin-bottom: 20px; }
.about-content p { color: var(--text-muted); margin-bottom: 16px; font-size: 15px; }
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.stat-item { text-align: center; padding: 24px; background: var(--bg-blue); border-radius: var(--radius); }
.stat-num { font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.about-visual {
    background: var(--bg-blue);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-visual img { max-width: 280px; }

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.contact-info h2 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 32px; font-size: 15px; }
.contact-card {
    background: var(--bg-blue);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}
.contact-card h3 { font-size: 14px; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }
.contact-card a {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    word-break: break-all;
}
.contact-card a:hover { color: var(--primary-dark); }
.contact-note {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-muted);
    border-left: 3px solid var(--primary);
}
.contact-visual {
    background: linear-gradient(135deg, var(--bg-blue), #dbeafe);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.contact-company img {
    margin: 0 auto 16px;
}
.contact-company h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.contact-company-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}
.contact-divider {
    width: 48px;
    height: 2px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 1px;
    margin: 24px 0;
}
.contact-wechat { width: 100%; }
.contact-visual-desc { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

/* ---- WeChat QR Code ---- */
.wechat-qrcode { text-align: center; }
.wechat-qrcode img {
    display: inline-block;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.wechat-qrcode p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
}
.wechat-qrcode--footer img {
    padding: 4px;
    box-shadow: none;
}
.wechat-qrcode--footer p {
    color: #64748b;
    font-size: 11px;
    margin-top: 6px;
}
.wechat-qrcode--contact p {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* ---- Footer ---- */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .logo-text strong { color: #f1f5f9; }
.footer-brand .logo-text small { color: #64748b; }
.footer-desc { margin-top: 16px; font-size: 14px; line-height: 1.8; }
.footer-links h4,
.footer-contact h4 {
    color: #f1f5f9;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-contact-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.footer-contact-info {
    flex: 1;
    min-width: 0;
}
.footer-contact-info p { font-size: 14px; margin-bottom: 12px; line-height: 1.7; }
.footer-contact-qrcode { flex-shrink: 0; }
.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-light) !important;
    font-size: 15px;
    font-weight: 500;
}
.footer-email svg { width: 20px; height: 20px; flex-shrink: 0; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 13px;
    gap: 16px;
}
.footer-bottom-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
}
.footer-icp,
.footer-domain {
    color: #64748b;
    font-size: 13px;
}
.footer-icp:hover,
.footer-domain:hover { color: #94a3b8; }

/* ---- 404 ---- */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-h) + 40px) 24px 80px;
}
.error-page h1 { font-size: 120px; font-weight: 700; color: var(--bg-blue); line-height: 1; }
.error-page h2 { font-size: 24px; margin: 16px 0; }
.error-page p { color: var(--text-muted); margin-bottom: 32px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .services-grid--home { grid-template-columns: repeat(2, 1fr); }
    .solutions-grid--home { grid-template-columns: repeat(2, 1fr); }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { max-width: 500px; margin: 0 auto; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-steps::before { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-banner { grid-template-columns: 1fr; text-align: center; }
    .ai-features { justify-content: center; }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        box-shadow: var(--shadow);
    }
    .main-nav.open { transform: translateY(0); opacity: 1; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav a { padding: 12px 16px; }
    .nav-toggle { display: flex; }
    .header-cta { display: none; }
    .services-grid--home { grid-template-columns: 1fr; }
    .solutions-grid--home { grid-template-columns: 1fr; }
    .solutions-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-contact-row { flex-direction: column; align-items: center; text-align: center; }
    .footer-contact-qrcode { margin-top: 8px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .footer-bottom-left { justify-content: center; }
    .ai-banner { padding: 36px 24px; }
}
