/* FUYUAN AXLE — BPW-inspired industrial B2B */

:root {
  --c-primary: #003a70;        /* deep industrial blue */
  --c-primary-dark: #002347;
  --c-accent: #e87722;         /* BPW-like orange accent */
  --c-accent-dark: #c45f15;
  --c-text: #1a1a1a;
  --c-text-light: #555;
  --c-text-muted: #888;
  --c-bg: #ffffff;
  --c-bg-alt: #f5f7fa;
  --c-bg-dark: #0e1a2b;
  --c-border: #e3e7ec;
  --c-success: #2da563;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
  --radius: 4px;
  --radius-lg: 8px;
  --maxw: 1200px;
  --transition: 200ms cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent); }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ========== Header ========== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 20px; color: var(--c-primary);
  letter-spacing: 0.5px;
}
.brand-logo {
  width: 40px; height: 40px;
  background: var(--c-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  border-radius: var(--radius);
  letter-spacing: 1px;
}
.brand-logo::before {
  content: 'T';
  color: var(--c-accent);
  font-size: 24px;
}
.brand-name { line-height: 1; }
.brand-name small { display: block; font-size: 11px; font-weight: 500; color: var(--c-text-muted); margin-top: 4px; letter-spacing: 0; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 15px; font-weight: 500; color: var(--c-text);
  position: relative; padding: 8px 0;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--c-accent);
  transform: scaleX(0); transition: transform var(--transition);
}
.main-nav a:hover::after { transform: scaleX(1); }

.lang-switch { display: flex; gap: 4px; border-left: 1px solid var(--c-border); padding-left: 24px; margin-left: 8px; }
.lang-switch a {
  font-size: 13px; padding: 4px 8px; border-radius: var(--radius);
  color: var(--c-text-muted);
}
.lang-switch a.active { color: var(--c-primary); font-weight: 600; background: var(--c-bg-alt); }

.menu-toggle { display: none; }

/* ========== Hero ========== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0a2540 0%, #003a70 50%, #002347 100%);
  color: #fff;
  padding: 100px 0 120px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h80v80H0z' fill='none'/%3E%3Cpath d='M40 0v80M0 40h80' stroke='%23ffffff' stroke-width='.5' stroke-opacity='.05'/%3E%3C/svg%3E");
  opacity: .6; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; right: -200px; top: 50%; transform: translateY(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,119,34,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; max-width: 900px; }
.hero-eyebrow {
  display: inline-block; margin-bottom: 20px;
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--c-accent);
  padding: 6px 14px; border: 1px solid rgba(232,119,34,.4); border-radius: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px); line-height: 1.1; font-weight: 800;
  margin-bottom: 24px; letter-spacing: -.5px;
}
.hero h1 span { color: var(--c-accent); }
.hero-subtitle {
  font-size: 18px; line-height: 1.6; max-width: 700px;
  color: rgba(255,255,255,.85); margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-size: 15px; font-weight: 600;
  border-radius: var(--radius); transition: all var(--transition);
  border: 2px solid transparent; letter-spacing: .3px;
  cursor: pointer; text-decoration: none;
}
.btn-primary {
  background: var(--c-accent); color: #fff;
}
.btn-primary:hover { background: var(--c-accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.btn-outline {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.4);
}
.btn-outline:hover { background: #fff; color: var(--c-primary); border-color: #fff; }
.btn-dark {
  background: var(--c-primary); color: #fff;
}
.btn-dark:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-2px); }
.btn-whatsapp {
  background: #25d366; color: #fff;
}
.btn-whatsapp:hover { background: #1ea854; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ========== Stats Bar ========== */
.stats {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  margin-top: -40px; position: relative; z-index: 2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 1100px; margin-left: auto; margin-right: auto;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 32px 20px; text-align: center;
  border-right: 1px solid var(--c-border);
}
.stat:last-child { border-right: none; }
.stat-number {
  display: block; font-size: 36px; font-weight: 800;
  color: var(--c-primary); line-height: 1;
}
.stat-label {
  display: block; margin-top: 8px;
  font-size: 13px; color: var(--c-text-muted);
  letter-spacing: .5px;
}

/* ========== Sections ========== */
section { padding: 100px 0; }
.section-bg-alt { background: var(--c-bg-alt); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.section-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--c-accent); margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 800;
  color: var(--c-primary); line-height: 1.2; letter-spacing: -.3px;
}
.section-head p {
  margin-top: 16px; font-size: 17px; color: var(--c-text-light);
}

/* ========== Product Grid ========== */
.product-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.product-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--c-primary);
}
.product-icon {
  height: 200px;
  background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-icon img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms cubic-bezier(.4,0,.2,1);
}
.product-card:hover .product-icon img { transform: scale(1.05); }
.product-icon::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,35,71,.4) 100%);
  pointer-events: none;
}
.product-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-title { font-size: 18px; font-weight: 700; color: var(--c-primary); margin-bottom: 8px; }
.product-desc { font-size: 14px; color: var(--c-text-light); flex: 1; margin-bottom: 16px; }
.product-link {
  font-size: 14px; font-weight: 600; color: var(--c-accent);
  display: inline-flex; align-items: center; gap: 4px;
}
.product-link:hover { gap: 8px; }

/* ========== Applications ========== */
.app-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.app-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.app-photo {
  height: 180px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
}
.app-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms cubic-bezier(.4,0,.2,1);
}
.app-card:hover .app-photo img { transform: scale(1.05); }
.app-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,35,71,.6) 100%);
  pointer-events: none;
}
.app-body { padding: 24px 28px; border-left: 4px solid var(--c-accent); flex: 1; }
.app-body h3 { font-size: 18px; color: var(--c-primary); margin-bottom: 8px; }
.app-body p { font-size: 14px; color: var(--c-text-light); }

/* ========== About ========== */
.about-flex { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-text p { color: var(--c-text-light); margin-bottom: 16px; line-height: 1.7; }
.about-points { list-style: none; margin-top: 24px; }
.about-points li {
  padding: 12px 0 12px 32px; position: relative;
  font-weight: 500; border-bottom: 1px dashed var(--c-border);
}
.about-points li:last-child { border-bottom: none; }
.about-points li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 18px; height: 18px;
  background: var(--c-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.about-image {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.about-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,58,112,.25) 0%, rgba(0,35,71,.35) 100%);
  pointer-events: none;
}
.about-image-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--c-accent); color: #fff;
  padding: 12px 20px; border-radius: var(--radius);
  font-weight: 700; font-size: 14px; letter-spacing: 1px;
  z-index: 2;
}

/* ========== Contact ========== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.contact-form {
  background: #fff; padding: 40px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); border: 1px solid var(--c-border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--c-text); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px; font: inherit;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  background: #fff; transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(0,58,112,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 8px; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: #fff; padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  display: flex; gap: 16px; align-items: flex-start;
}
.contact-card.whatsapp { border-color: #25d366; background: linear-gradient(135deg, #f0fff4 0%, #fff 100%); }
.contact-card-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-bg-alt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card.whatsapp .contact-card-icon { background: #25d366; }
.contact-card.whatsapp .contact-card-icon svg { color: #fff; }
.contact-card-icon svg { width: 24px; height: 24px; color: var(--c-primary); }
.contact-card h4 { font-size: 16px; color: var(--c-primary); margin-bottom: 4px; }
.contact-card .desc { font-size: 13px; color: var(--c-text-muted); }
.contact-card .value { display: block; margin-top: 4px; font-weight: 600; color: var(--c-text); font-size: 15px; }
.contact-card.whatsapp h4 { color: #1ea854; }
.contact-card.whatsapp .value { color: #1ea854; }

/* ========== Footer ========== */
.site-footer {
  background: var(--c-bg-dark); color: rgba(255,255,255,.7);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.6; }
.footer-col h5 {
  color: #fff; font-size: 14px; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 20px; font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--c-accent); }
.footer-bottom {
  padding-top: 24px; text-align: center;
  font-size: 13px; color: rgba(255,255,255,.5);
}

/* ========== Floating WhatsApp ========== */
.fab-whatsapp {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform var(--transition);
}
.fab-whatsapp:hover { transform: scale(1.1); color: #fff; }
.fab-whatsapp svg { width: 28px; height: 28px; }

/* ========== Responsive ========== */
@media (max-width: 968px) {
  .about-flex { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--c-border); }
  .stat:nth-child(2n) { border-right: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .menu-toggle {
    display: flex; flex-direction: column; gap: 4px;
    width: 32px; height: 32px; align-items: center; justify-content: center;
  }
  .menu-toggle span { width: 22px; height: 2px; background: var(--c-text); border-radius: 2px; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    padding: 16px 0; border-bottom: 1px solid var(--c-border);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: all var(--transition);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 24px; width: 100%; }
  .lang-switch { border-left: none; padding-left: 24px; padding-right: 24px; padding-top: 8px; border-top: 1px solid var(--c-border); margin: 0; }
  .hero { padding: 64px 0 80px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ========== Products page specific ========== */
.page-hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff; padding: 80px 0 60px; text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,.85); }

.specs-table {
  width: 100%; border-collapse: collapse; margin: 32px 0;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.specs-table th, .specs-table td {
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--c-border); font-size: 14px;
}
.specs-table th { background: var(--c-bg-alt); font-weight: 700; color: var(--c-primary); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tbody tr:hover { background: var(--c-bg-alt); }

.placeholder-note {
  display: inline-block; font-size: 11px; padding: 2px 8px;
  background: #fff3cd; color: #856404; border-radius: 3px; margin-left: 8px;
}
