/*
Theme Name: OUU Manufacturing
Theme URI: https://ouu.hk
Author: OUU
Description: 深圳市欧优优科技有限公司制造型官方网站主题。
Version: 1.0.4
Text Domain: ouu
*/

:root {
    --ink: #111827;
    --muted: #667085;
    --line: #e6e9ee;
    --soft: #f5f7fa;
    --blue: #246bfd;
    --blue-dark: #174dbd;
    --white: #fff;
    --max: 1240px;
    --radius: 22px;
    --shadow: 0 18px 50px rgba(17, 24, 39, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 13px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.section { padding: 104px 0; }
.section-soft { background: var(--soft); }
.section-dark { color: #fff; background: #0b1220; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 42px; }
.section-head h2, .page-intro h1 { margin: 0; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.12; letter-spacing: -.035em; }
.section-head p { max-width: 580px; margin: 0; color: var(--muted); }
.section-dark .section-head p { color: #aab4c5; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; transition: .2s ease; }
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { color: #fff; border-color: rgba(255,255,255,.5); background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-light { color: var(--ink); background: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 700; }
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(230,233,238,.85); background: rgba(255,255,255,.92); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand img { width: 88px; max-height: 34px; object-fit: contain; object-position: left center; }
.main-nav ul { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.main-nav a { position: relative; display: block; padding: 25px 0; font-size: 14px; font-weight: 650; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 17px; height: 2px; background: var(--blue); transition: .2s ease; }
.main-nav a:hover::after, .main-nav .current-menu-item a::after, .main-nav .current_page_item a::after { right: 0; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--soft); cursor: pointer; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--ink); }

.hero { position: relative; min-height: 760px; display: flex; align-items: end; color: #fff; overflow: hidden; background: #111827; }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { background: linear-gradient(90deg, rgba(5,10,20,.86) 0%, rgba(5,10,20,.60) 47%, rgba(5,10,20,.18) 100%), linear-gradient(0deg, rgba(5,10,20,.46), transparent 55%); }
.hero-content { position: relative; z-index: 2; padding: 140px 0 108px; }
.hero h1 { max-width: 820px; margin: 0 0 24px; font-size: clamp(48px, 7vw, 88px); line-height: 1.02; letter-spacing: -.055em; }
.hero .lead { max-width: 690px; margin: 0 0 36px; color: #d9e0eb; font-size: clamp(17px, 2vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.stats { margin-top: -34px; position: relative; z-index: 4; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.stat { padding: 28px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(26px, 3vw, 38px); line-height: 1.05; letter-spacing: -.03em; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-image { aspect-ratio: 4 / 3; overflow: hidden; background: #f2f3f5; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-copy { padding: 25px 25px 28px; }
.product-copy small { color: var(--blue); font-weight: 700; }
.product-copy h3 { margin: 8px 0 8px; font-size: 23px; line-height: 1.25; }
.product-copy p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

.split { display: grid; grid-template-columns: 1.06fr .94fr; gap: 68px; align-items: center; }
.split-media { overflow: hidden; border-radius: var(--radius); background: #e8ebef; }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-copy h2 { margin: 0 0 22px; font-size: clamp(34px, 4.3vw, 58px); line-height: 1.08; letter-spacing: -.04em; }
.split-copy > p { margin: 0 0 28px; color: var(--muted); }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0 34px; padding: 0; list-style: none; }
.check-list li { padding: 14px 16px; border-radius: 12px; background: var(--soft); font-weight: 650; }
.check-list li::before { content: "✓"; margin-right: 10px; color: var(--blue); }

.photo-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; grid-template-rows: 280px 280px; gap: 18px; }
.photo-grid figure { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: #dfe3e8; }
.photo-grid figure:first-child { grid-row: 1 / 3; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid figcaption { position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; color: #fff; background: rgba(8,14,24,.72); font-size: 12px; backdrop-filter: blur(8px); }

.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: process; }
.process-step { min-height: 220px; padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.06); }
.process-step::before { counter-increment: process; content: "0" counter(process); display: block; margin-bottom: 42px; color: #6f9aff; font-size: 14px; font-weight: 750; }
.process-step h3 { margin: 0 0 9px; font-size: 19px; }
.process-step p { margin: 0; color: #aab4c5; font-size: 13px; }

.page-intro { padding: 112px 0 74px; background: var(--soft); }
.page-intro p { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.about-lead { font-size: clamp(25px, 3vw, 42px); line-height: 1.35; letter-spacing: -.025em; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { padding: 30px; border: 1px solid var(--line); border-radius: 18px; }
.value-card b { display: block; margin-bottom: 12px; font-size: 20px; }
.value-card p { margin: 0; color: var(--muted); }

.product-hero { padding: 90px 0 70px; background: var(--soft); }
.product-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.product-hero-copy h1 { margin: 12px 0 18px; font-size: clamp(40px, 5.7vw, 72px); line-height: 1.02; letter-spacing: -.05em; }
.product-hero-copy .product-en { margin: 0 0 22px; color: var(--muted); font-size: 17px; }
.product-hero-copy .product-description { color: var(--muted); font-size: 17px; }
.product-hero-media { overflow: hidden; border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.product-hero-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-item { padding: 27px; border: 1px solid var(--line); border-radius: 16px; font-weight: 750; }
.feature-item span { display: block; margin-bottom: 26px; color: var(--blue); font-size: 13px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: 18px; background: var(--soft); }
.gallery-grid figure:first-child:nth-last-child(3) { grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }

.cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 48px; border-radius: 26px; color: #fff; background: linear-gradient(125deg, #174dbd, #246bfd); }
.cta h2 { max-width: 720px; margin: 0 0 10px; font-size: clamp(28px, 4vw, 48px); line-height: 1.15; }
.cta p { margin: 0; color: #dbe7ff; }

.contact-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; padding: 48px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.contact-panel h2 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 50px); line-height: 1.12; letter-spacing: -.035em; }
.contact-panel > div > p:last-child { margin: 0; color: var(--muted); }
.contact-details { display: grid; gap: 20px; }
.contact-details p { margin: 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.contact-details p:last-child { padding-bottom: 0; border-bottom: 0; }
.contact-details span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.contact-details strong, .contact-details a { display: block; color: var(--ink); font-style: normal; font-weight: 700; }
.contact-details a { color: var(--blue); }

.site-footer { padding: 64px 0 30px; color: #d4dae5; background: #090f1a; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .72fr .92fr 1.25fr; gap: 42px; padding-bottom: 46px; }
.footer-brand img { width: 92px; filter: invert(1); }
.footer-brand p { max-width: 420px; margin: 20px 0 0; color: #8f9bad; }
.footer-col h3 { margin: 0 0 17px; color: #fff; font-size: 14px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin: 9px 0; color: #9aa5b7; }
.footer-contact p { margin: 0 0 10px; color: #9aa5b7; font-size: 13px; line-height: 1.75; }
.footer-contact a { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.10); color: #707d91; font-size: 12px; }

@media (max-width: 980px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .stat:nth-child(3) { border-right: 0; }
    .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .split, .product-hero-grid, .contact-panel { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 360px 250px; }
    .photo-grid figure:first-child { grid-column: 1 / 3; grid-row: auto; }
    .photo-grid figure:last-child { display: none; }
    .process-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .container { width: min(calc(100% - 28px), var(--max)); }
    .section { padding: 72px 0; }
    .section-head { display: block; }
    .section-head p { margin-top: 16px; }
    .hero { min-height: 690px; }
    .hero-overlay { background: linear-gradient(0deg, rgba(5,10,20,.86), rgba(5,10,20,.34)); }
    .hero-content { padding-bottom: 84px; }
    .main-nav { position: fixed; top: 74px; left: 0; right: 0; display: none; padding: 18px 24px 28px; border-bottom: 1px solid var(--line); background: #fff; }
    .main-nav.is-open { display: block; }
    .main-nav ul { display: block; }
    .main-nav a { padding: 13px 0; font-size: 16px; }
    .main-nav a::after { display: none; }
    .nav-toggle { display: block; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat, .stat:nth-child(3) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .stat:nth-child(even) { border-right: 0; }
    .stat:last-child { grid-column: 1 / 3; border: 0; }
    .product-grid, .value-grid, .gallery-grid { grid-template-columns: 1fr; }
    .photo-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(3, 260px); }
    .photo-grid figure:first-child { grid-column: auto; }
    .process-grid { display: grid; grid-template-columns: 1fr; }
    .process-step { min-height: 170px; }
    .process-step::before { margin-bottom: 24px; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .cta { display: block; padding: 34px 28px; }
    .cta .btn { margin-top: 26px; }
    .contact-panel { gap: 34px; padding: 34px 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-bottom { display: block; }
    .footer-bottom span { display: block; margin: 6px 0; }
}

@media (max-width: 440px) {
    .hero h1 { font-size: 46px; }
    .product-grid { gap: 16px; }
    .feature-grid { grid-template-columns: 1fr; }
}
