/* ===== Fonts: Alibaba PuHuiTi (free for commercial use) ===== */
@font-face {
    font-family: "Alibaba PuHuiTi";
    src: url("../fonts/PuhuiTi-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Alibaba PuHuiTi";
    src: url("../fonts/PuhuiTi-Medium.woff2") format("woff2");
    font-weight: 500 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Alibaba PuHuiTi";
    src: url("../fonts/PuhuiTi-Bold.woff2") format("woff2");
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: "Alibaba PuHuiTi", "AlibabaPuHuiTi", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #2d2d2d; background: #fff; line-height: 1.6; overflow-x: hidden;
}
:root {
    --blue: #0060c0; --blue-dark: #0052a3; --blue-light: #e8f2fb; --blue-deep: #0d2b45;
    --accent: #0060c0; --accent-dark: #0052a3;
    --dark: #0d1b2a; --dark-2: #222; --gray: #555; --gray-light: #888;
    --border: #e8e8e8; --bg: #fafafa;
    --radius: 12px; --shadow: 0 2px 24px rgba(0,0,0,.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.1);
}

/* ===== Navigation ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 14px 0; background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: 1160px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
    width: 34px; height: 34px; background: var(--blue); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; border-radius: 8px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 16px; font-weight: 700; color: var(--dark); letter-spacing: .5px; }
.logo-sub { font-size: 10px; color: var(--gray-light); letter-spacing: 1px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--gray); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--dark); }
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-cta { background: var(--accent); color: #fff !important; padding: 9px 18px; border-radius: 6px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--accent-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--dark); border-radius: 1px; }

/* ===== Hero (shared) ===== */
.hero {
    position: relative; min-height: 78vh;
    display: flex; align-items: center;
    padding: 100px 0; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(8,22,38,.86) 0%, rgba(6,35,58,.62) 50%, rgba(10,30,48,.78) 100%);
}
.hero-container { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; background: rgba(255,255,255,.14);
    backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.9); margin-bottom: 24px;
}
.badge-dot { width: 6px; height: 6px; background: var(--blue); border-radius: 3px; }
.hero-title { font-size: clamp(32px, 5vw, 54px); font-weight: 800; line-height: 1.15; color: #fff; margin-bottom: 16px; max-width: 780px; }
.hero-title-highlight { color: #00c8ff; }
.hero-subtitle { font-size: clamp(15px, 2vw, 19px); color: rgba(255,255,255,.85); margin-bottom: 10px; }
.hero-desc { font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 36px; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Page hero (inner pages) ===== */
.page-hero {
    position: relative; padding: 150px 0 70px;
    background: linear-gradient(135deg, #0d2b45 0%, #0060c0 100%);
    overflow: hidden;
}
.page-hero-container { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.page-hero .section-tag { color: #00c8ff; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.65); max-width: 640px; font-size: 15px; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 13px 28px; border-radius: 8px; text-decoration: none; transition: .25s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--dark); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: #ccc; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
.hero .btn-primary { background: #fff; color: #0d2b45; border: 1.5px solid #fff; }
.hero .btn-primary:hover { background: #eaf3fb; border-color: #eaf3fb; transform: translateY(-1px); }
.btn-outline-light:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }

/* ===== Stats bar ===== */
.stats-bar { background: var(--dark); padding: 40px 0; }
.stats-container { max-width: 1160px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 34px; font-weight: 800; color: #fff; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.72); }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-gray { background: var(--bg); }
.section-dark { background: var(--dark); }
.section-container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }
.section-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin-bottom: 10px; display: block; }
.section-title { font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.section-title-light { color: #fff; }
.section-desc { font-size: 15px; color: var(--gray); max-width: 640px; }
.section-desc-light { color: rgba(255,255,255,.6); }

/* ===== Capability cards ===== */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 24px; transition: .25s ease;
}
.cap-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.cap-icon { font-size: 42px; line-height: 1; margin-bottom: 16px; }
.cap-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--dark); }
.cap-card p { font-size: 13px; color: var(--gray); line-height: 1.7; }

/* ===== Process flow ===== */
.process-flow { display: flex; align-items: flex-start; gap: 12px; }
.process-step {
    flex: 1; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 24px; text-align: center; transition: .25s ease;
}
.process-step:hover { border-color: var(--blue); }
.process-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: var(--blue); color: #fff;
    font-size: 16px; font-weight: 700; border-radius: 10px; margin-bottom: 14px;
}
.process-step h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--dark); }
.process-step p { font-size: 13px; color: var(--gray); line-height: 1.6; }
.process-arrow { font-size: 24px; color: var(--blue); padding-top: 40px; flex-shrink: 0; opacity: .4; }

/* ===== Why grid ===== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 24px; text-align: center; transition: .25s ease;
}
.why-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.why-icon { font-size: 36px; margin-bottom: 14px; }
.why-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--dark); }
.why-card p { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ===== Material strip ===== */
.material-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.material {
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
    padding: 12px 24px; font-size: 14px; font-weight: 500; color: var(--dark);
    transition: .2s ease;
}
.material:hover { border-color: var(--blue); color: var(--blue); }

/* ===== Service detail (services page) ===== */
.service-block { margin-bottom: 64px; }
.service-block:last-child { margin-bottom: 0; }
.service-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.service-head .cap-icon { font-size: 36px; line-height: 1; margin-bottom: 0; }
.service-head h2 { font-size: 24px; font-weight: 700; color: var(--dark); }
.service-desc { font-size: 15px; color: var(--gray); max-width: 760px; margin-bottom: 24px; }
.service-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.service-spec {
    background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px;
}
.service-spec h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-light); margin-bottom: 6px; }
.service-spec p { font-size: 14px; color: var(--dark); font-weight: 500; }

/* ===== Tables (capabilities page) ===== */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--dark); color: #fff; font-weight: 600; font-size: 13px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table td { color: var(--gray); }
.data-table td:first-child { font-weight: 600; color: var(--dark); }

/* ===== Project cards ===== */
.project-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: .3s ease; margin-bottom: 32px;
}
.project-card:hover { box-shadow: var(--shadow-lg); }
.project-card-inner { display: flex; gap: 0; }
.project-img { flex: 0 0 42%; min-height: 280px; background: #fff; position: relative; }
.project-img img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.project-img .img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56px; background: linear-gradient(135deg, #f5f5f5, #eee); }
.project-body { flex: 1; padding: 32px; }
.project-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.project-body .project-desc { font-size: 14px; color: var(--gray); margin-bottom: 16px; line-height: 1.7; }
.project-params { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.project-param {
    font-size: 11px; font-weight: 600; background: var(--blue-light); color: var(--blue);
    padding: 5px 12px; border-radius: 4px;
}
.project-solved { font-size: 13px; color: var(--dark); background: var(--bg); border-left: 3px solid var(--blue); padding: 12px 16px; border-radius: 0 8px 8px 0; }
.project-solved strong { color: var(--blue); }

/* ===== Contact / RFQ form ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.contact-info p { font-size: 14px; color: var(--gray); margin-bottom: 24px; }
.contact-method { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.contact-method .contact-icon {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    background: var(--blue-light); border-radius: 10px; flex-shrink: 0;
}
.contact-method svg { width: 20px; height: 20px; color: var(--blue); }
.contact-method h4 { font-size: 14px; font-weight: 600; color: var(--dark); }
.contact-method p { font-size: 13px; color: var(--gray); margin-bottom: 0; }

/* RFQ Form */
.rfq-form {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 36px; box-shadow: var(--shadow);
}
.rfq-form h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; color: var(--dark); }
.rfq-form .form-sub { font-size: 13px; color: var(--gray-light); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-group label .req { color: var(--blue); }
.form-group input, .form-group select, .form-group textarea {
    font-family: inherit; font-size: 14px; padding: 11px 14px;
    border: 1.5px solid var(--border); border-radius: 8px; color: var(--dark);
    transition: border-color .2s; background: #fff; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.file-upload {
    border: 2px dashed var(--border); border-radius: 8px; padding: 24px;
    text-align: center; cursor: pointer; transition: .2s ease; background: var(--bg);
}
.file-upload:hover { border-color: var(--blue); }
.file-upload input[type="file"] { display: none; }
.file-upload .file-icon { font-size: 28px; margin-bottom: 6px; }
.file-upload p { font-size: 13px; color: var(--gray); }
.file-upload .file-hint { font-size: 11px; color: var(--gray-light); }
.file-list { margin-top: 10px; font-size: 12px; color: var(--gray); }
.form-submit { margin-top: 24px; }
.form-submit .btn { width: 100%; justify-content: center; font-size: 15px; padding: 15px; }
.form-note { font-size: 11px; color: var(--gray-light); text-align: center; margin-top: 12px; }

/* ===== CTA banner ===== */
.cta-banner { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); padding: 64px 0; text-align: center; }
.cta-container { max-width: 700px; margin: 0 auto; padding: 0 20px; }
.cta-banner h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 28px; }
.cta-banner .btn-primary { background: #fff; color: var(--accent); }
.cta-banner .btn-primary:hover { background: #f5f5f5; }

/* ===== Contact (dark) ===== */
.contact { background: var(--dark); padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.contact-card {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: .25s ease;
}
.contact-card:hover { background: rgba(255,255,255,.08); }
.contact-card .contact-icon {
    width: 48px; height: 48px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,106,0,.15); border-radius: 12px;
}
.contact-card svg { width: 22px; height: 22px; color: var(--blue); }
.contact-card h3 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.contact-card p { font-size: 13px; color: rgba(255,255,255,.5); }

/* ===== Footer ===== */
.footer { background: #111; padding: 56px 0 28px; }
.footer-container { max-width: 1160px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.footer-brand { max-width: 380px; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 12px; }
.footer-logo .logo-mark { width: 30px; height: 30px; font-size: 15px; border-radius: 7px; }
.footer-logo strong { color: #fff; font-size: 15px; }
.footer-logo .logo-sub { color: rgba(255,255,255,.4); }
.footer-brand p { font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.7; }
.footer-links { display: flex; gap: 56px; }
.footer-col h4 { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.35); text-decoration: none; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); margin-top: 40px; padding-top: 20px; width: 100%; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,.25); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .cap-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .process-flow { flex-direction: column; }
    .process-arrow { transform: rotate(90deg); padding-top: 0; }
    .contact-layout { grid-template-columns: 1fr; }
    .project-card-inner { flex-direction: column; }
    .project-img { flex: none; height: 240px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: fixed; top: 62px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.1); gap: 12px; z-index: 999; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .hero { min-height: 70vh; padding: 120px 0 56px; }
    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .cap-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .rfq-form { padding: 24px; }
    .footer-container { flex-direction: column; }
    .footer-links { gap: 32px; }
}
@media (max-width: 480px) {
    .stats-container { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-num { font-size: 26px; }
    .hero-title { font-size: 30px; }
}


/* ===== Logo image ===== */
.nav-logo-img { height: 48px; width: auto; display: block; }
.footer-logo-img { height: 40px; width: auto; display: block; }

