/* ===== Yongshuo Clone - Complete CSS ===== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333; background: #fff; line-height: 1.6; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* --- Variables --- */
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --accent: #ff6d00;
  --dark-bg: #1a1a2e;
  --dark-bg2: #16213e;
  --text: #333;
  --text-light: #666;
  --text-white: #fff;
  --border: #e0e0e0;
  --light-bg: #f5f7fa;
  --nav-height: 80px;
  --container: 1200px;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* --- Announcement Bar --- */
.announcement-bar {
  background: var(--primary); color: var(--text-white);
  text-align: center; padding: 10px 20px; font-size: 14px;
  position: relative; z-index: 1001;
}
.announcement-bar a { color: var(--text-white); font-weight: 600; text-decoration: underline; margin-left: 8px; }
.announcement-bar a:hover { opacity: 0.8; }

/* --- Navigation --- */
.navbar {
  background: #fff; height: var(--nav-height);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  display: flex; align-items: center;
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 40px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  padding: 28px 18px; font-size: 15px; font-weight: 500;
  color: var(--text); display: flex; align-items: center; gap: 4px;
  transition: color 0.2s;
}
.nav-menu > li > a:hover { color: var(--primary); }
.nav-menu > li > a::after {
  content: ''; width: 0; height: 2px; background: var(--primary);
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  transition: width 0.3s;
}
.nav-menu > li:hover > a::after { width: 60%; }

/* Mega Menu */
.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-hover); padding: 30px 40px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  min-width: 700px; z-index: 999;
}
.nav-menu > li:hover .mega-menu { opacity: 1; visibility: visible; }
.mega-menu h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.mega-menu ul li a { font-size: 14px; color: var(--text); padding: 6px 0; display: block; transition: color 0.2s; }
.mega-menu ul li a:hover { color: var(--primary); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mega-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.mega-grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; }
.mega-col { }
.mega-col ul { margin-bottom: 20px; }
.mega-cta { margin-top: 20px; display: flex; gap: 15px; }
.mega-cta a { padding: 8px 20px; border-radius: 4px; font-size: 13px; font-weight: 600; }
.mega-cta .cta-primary { background: var(--primary); color: #fff; }
.mega-cta .cta-outline { border: 1px solid var(--primary); color: var(--primary); }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 20px; }
.btn-quote {
  background: var(--primary); color: #fff; padding: 10px 24px;
  border-radius: 4px; font-weight: 600; font-size: 14px;
  transition: background 0.2s; border: none; cursor: pointer;
}
.btn-quote:hover { background: var(--primary-dark); }
.nav-login { font-size: 14px; color: var(--text-light); }
.nav-login:hover { color: var(--primary); }

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #0d1b3e 0%, #1a3a6e 40%, #1a73e8 100%);
  padding: 80px 0 60px; color: #fff; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,115,232,0.3), transparent);
  pointer-events: none;
}
.hero .container { display: flex; align-items: flex-start; gap: 60px; position: relative; z-index: 1; }
.hero-content { flex: 1; padding-top: 20px; }
.hero-content .label { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; opacity: 0.8; margin-bottom: 16px; }
.hero-content h1 { font-size: 52px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero-content p { font-size: 18px; opacity: 0.85; line-height: 1.6; margin-bottom: 30px; max-width: 520px; }
.btn-hero {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 14px 32px; border-radius: 6px; font-weight: 600;
  font-size: 16px; transition: var(--transition); border: none; cursor: pointer;
}
.btn-hero:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Hero Form */
.hero-form {
  flex: 0 0 420px; background: #fff; border-radius: var(--radius);
  padding: 30px; color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.hero-form .form-group { margin-bottom: 16px; }
.hero-form label { font-size: 13px; font-weight: 500; display: block; margin-bottom: 4px; color: #555; }
.hero-form input, .hero-form select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 14px; transition: border-color 0.2s;
  background: #fff; color: var(--text);
}
.hero-form input:focus, .hero-form select:focus { outline: none; border-color: var(--primary); }
.hero-form select { cursor: pointer; }

/* File Upload */
.file-upload {
  border: 2px dashed var(--border); border-radius: 6px;
  padding: 24px; text-align: center; margin-bottom: 16px;
  cursor: pointer; transition: border-color 0.2s;
}
.file-upload:hover { border-color: var(--primary); }
.file-upload .upload-icon { font-size: 32px; color: var(--primary); margin-bottom: 8px; }
.file-upload p { font-size: 14px; color: var(--text-light); }
.file-upload .formats { font-size: 11px; color: #999; margin-top: 6px; }

.btn-submit {
  width: 100%; padding: 14px; background: var(--primary); color: #fff;
  border: none; border-radius: 6px; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.btn-submit:hover { background: var(--primary-dark); }

/* Hero CTAs */
.hero-ctas {
  display: flex; gap: 20px; margin-top: 20px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15); flex: 1;
}
.hero-ctas a {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 15px; font-weight: 500;
  padding: 12px 20px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3); transition: var(--transition);
}
.hero-ctas a:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.hero-ctas .btn-accent {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.hero-ctas .btn-accent:hover { background: #e56200; }

/* --- Stats Bar --- */
.stats-bar {
  background: #fff; padding: 40px 0; border-bottom: 1px solid var(--border);
}
.stats-bar .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.stat-item { text-align: center; flex: 1; min-width: 150px; }
.stat-item .stat-number { font-size: 42px; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-item .stat-label { font-size: 14px; color: var(--text-light); margin-top: 8px; }
.stat-item .stat-suffix { font-size: 24px; font-weight: 700; }

/* --- Services Section --- */
.services-section { padding: 80px 0; background: var(--light-bg); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 36px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.section-header p { font-size: 16px; color: var(--text-light); max-width: 800px; margin: 0 auto; line-height: 1.7; }

.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); cursor: pointer;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.service-card .card-img { height: 200px; overflow: hidden; }
.service-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.service-card:hover .card-img img { transform: scale(1.05); }
.service-card .card-body { padding: 20px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.service-card h3 a { color: var(--text); transition: color 0.2s; }
.service-card h3 a:hover { color: var(--primary); }
.service-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* --- Smart Tools Section --- */
.tools-section { padding: 80px 0; }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.tool-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
}
.tool-card:hover { box-shadow: var(--shadow-hover); border-color: var(--primary); }
.tool-card .tool-img { height: 280px; overflow: hidden; }
.tool-card .tool-img img { width: 100%; height: 100%; object-fit: cover; }
.tool-card .tool-body { padding: 30px; }
.tool-card .tool-label { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.tool-card h3 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.tool-card p { font-size: 15px; color: var(--text-light); line-height: 1.6; margin-bottom: 20px; }
.tool-card .btn-tool { display: inline-block; padding: 10px 24px; background: var(--primary); color: #fff; border-radius: 4px; font-weight: 600; font-size: 14px; transition: background 0.2s; }
.tool-card .btn-tool:hover { background: var(--primary-dark); }

/* --- Testimonials --- */
.testimonials-section { padding: 60px 0; background: var(--light-bg); text-align: center; }
.testimonials-section h2 { font-size: 32px; font-weight: 700; margin-bottom: 20px; }
.trustpilot-badge { display: inline-block; }

/* --- Partner Section --- */
.partner-section { padding: 80px 0; }
.partner-section .container { }
.partner-header { text-align: center; margin-bottom: 40px; }
.partner-header h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.partner-header p { font-size: 16px; color: var(--text-light); max-width: 800px; margin: 0 auto; line-height: 1.7; }

.partner-stats {
  display: flex; justify-content: center; gap: 60px; margin-bottom: 50px; flex-wrap: wrap;
}
.partner-stat { text-align: center; }
.partner-stat .num { font-size: 40px; font-weight: 800; color: var(--primary); }
.partner-stat .label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

.factory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.factory-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
}
.factory-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.factory-card .factory-img { height: 180px; overflow: hidden; }
.factory-card .factory-img img { width: 100%; height: 100%; object-fit: cover; }
.factory-card .factory-body { padding: 20px; }
.factory-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.factory-card .factory-detail { display: flex; gap: 16px; font-size: 13px; color: var(--text-light); }
.factory-card .factory-detail span { display: flex; align-items: center; gap: 4px; }

/* --- Digital Platform Section --- */
.platform-section { padding: 80px 0; background: var(--dark-bg); color: #fff; }
.platform-section .section-header h2 { color: #fff; }
.platform-section .section-header p { color: rgba(255,255,255,0.7); }

.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.platform-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 30px; transition: var(--transition);
}
.platform-card:hover { background: rgba(255,255,255,0.1); border-color: var(--primary); transform: translateY(-4px); }
.platform-card .platform-icon { font-size: 36px; color: var(--primary); margin-bottom: 16px; }
.platform-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.platform-card p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 16px; }
.platform-card ul { font-size: 13px; color: rgba(255,255,255,0.6); }
.platform-card ul li { padding: 4px 0; padding-left: 16px; position: relative; }
.platform-card ul li::before { content: '•'; position: absolute; left: 0; color: var(--primary); }

/* --- Workflow Section --- */
.workflow-section { padding: 80px 0; }
.workflow-section .section-header { margin-bottom: 60px; }
.workflow-steps { display: flex; justify-content: center; gap: 40px; position: relative; }
.workflow-step { text-align: center; flex: 1; max-width: 300px; position: relative; }
.workflow-step .step-icon {
  width: 80px; height: 80px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 20px; position: relative; z-index: 1;
}
.workflow-step .step-num {
  position: absolute; top: -8px; right: -8px; width: 28px; height: 28px;
  background: var(--accent); color: #fff; border-radius: 50%;
  font-size: 14px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; z-index: 2;
}
.workflow-step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.workflow-step p { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.workflow-connector {
  position: absolute; top: 40px; left: 0; right: 0; height: 2px;
  background: var(--border); z-index: 0;
}
.workflow-cta { text-align: center; margin-top: 40px; }

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg2) 100%);
  padding: 80px 0; text-align: center; color: #fff;
}
.cta-section h2 { font-size: 40px; font-weight: 700; margin-bottom: 20px; }
.cta-section p { font-size: 18px; opacity: 0.8; margin-bottom: 30px; }
.btn-cta {
  display: inline-block; padding: 16px 40px; background: var(--primary);
  color: #fff; border-radius: 6px; font-size: 18px; font-weight: 600;
  transition: var(--transition); border: none; cursor: pointer;
}
.btn-cta:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* --- Footer --- */
.footer { background: #0d0d1a; color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.footer-col p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.6); padding: 4px 0; display: block; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-col .footer-logo { height: 36px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 14px; transition: background 0.2s;
}
.footer-social a:hover { background: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 13px; }
.footer-bottom .footer-links { display: flex; gap: 20px; }
.footer-bottom .footer-links a { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom .footer-links a:hover { color: #fff; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container { flex-direction: column; }
  .hero-form { flex: none; width: 100%; max-width: 420px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 40px; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero-ctas { flex-direction: column; }
  .services-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .factory-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .partner-stats { gap: 30px; }
  .workflow-steps { flex-direction: column; align-items: center; }
  .hero-content h1 { font-size: 32px; }
  .stats-bar .container { flex-direction: column; align-items: center; }
  .mega-menu { display: none; }
}

/* --- Count Animation --- */
.count-up { display: inline-block; }

/* --- Mobile Menu Toggle --- */
.mobile-toggle {
  display: none; background: none; border: none; font-size: 24px;
  color: var(--text); cursor: pointer; padding: 8px;
}
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }

/* ============ Yongshuo brand ============ */
.nav-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #0f172a;
  text-decoration: none;
}
.nav-logo img { height: 40px; width: auto; }
.logo-mark { display: inline-flex; color: var(--primary); }
.logo-mark svg { display: block; }
.logo-text {
  font-size: 23px; font-weight: 800; letter-spacing: -.6px;
  line-height: 1; color: #0f172a;
}
.logo-text em { font-style: normal; color: #C9A227; }
.caret { font-size: 9px; opacity: .5; margin-left: 2px; vertical-align: middle; }

/* 页脚品牌 */
.footer-brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; margin-bottom: 14px;
}
.footer-brand .logo-mark { color: #fff; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text em { color: #C9A227; }
.footer-contact { line-height: 1.9; }
.footer-contact a { color: inherit; }

/* 小图标 */
.i {
  width: 14px; height: 14px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 3px;
  opacity: .75;
  flex: none;
}

/* === slick carousel 1.8.1 本地化(修复制造服务滑块/厂房图撑爆) === */
/* Slider */
.slick-slider
{
    position: relative;

    display: block;
    box-sizing: border-box;

    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;

    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
        touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.slick-list
{
    position: relative;

    display: block;
    overflow: hidden;

    margin: 0;
    padding: 0;
}
.slick-list:focus
{
    outline: none;
}
.slick-list.dragging
{
    cursor: pointer;
    cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list
{
    -webkit-transform: translate3d(0, 0, 0);
       -moz-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
         -o-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
}

.slick-track
{
    position: relative;
    top: 0;
    left: 0;

    display: block;
    margin-left: auto;
    margin-right: auto;
}
.slick-track:before,
.slick-track:after
{
    display: table;

    content: '';
}
.slick-track:after
{
    clear: both;
}
.slick-loading .slick-track
{
    visibility: hidden;
}

.slick-slide
{
    display: none;
    float: left;

    height: 100%;
    min-height: 1px;
}
[dir='rtl'] .slick-slide
{
    float: right;
}
.slick-slide img
{
    display: block;
}
.slick-slide.slick-loading img
{
    display: none;
}
.slick-slide.dragging img
{
    pointer-events: none;
}
.slick-initialized .slick-slide
{
    display: block;
}
.slick-loading .slick-slide
{
    visibility: hidden;
}
.slick-vertical .slick-slide
{
    display: block;

    height: auto;

    border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
    display: none;
}

/* 兜底网格: 若 slick 未初始化(JS失败)，厂房图排成多列，绝不撑爆浏览器 */
.p01-s01-slicker .manufacturing-content-slicker:not(.slick-initialized){
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  gap:20px !important;
  max-width:1200px; margin:0 auto;
}
.p01-s01-slicker .manufacturing-content-slicker:not(.slick-initialized) .gallery-item{
  width:auto !important; float:none !important; display:block !important;
}
@media (max-width:900px){
  .p01-s01-slicker .manufacturing-content-slicker:not(.slick-initialized){
    grid-template-columns:repeat(2,1fr) !important;
  }
}
@media (max-width:560px){
  .p01-s01-slicker .manufacturing-content-slicker:not(.slick-initialized){
    grid-template-columns:1fr !important;
  }
}
