/* ===== Yantai Ston Metal · 全局样式（移动优先响应式） ===== */
:root {
  --c-primary: #0d2b4e;
  --c-accent: #1a6fb0;
  --c-accent-light: #3b8fd5;
  --c-dark: #1a1a1a;
  --c-muted: #6c757d;
  --c-light: #f8f9fa;
  --c-border: #e0e4e8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --radius: 10px;
  --container: 1200px;
  --nav-h: 64px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font-sans);
  color: var(--c-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-light); }

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

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.navbar .brand { display: flex; align-items: center; flex: 0 0 auto; }
.navbar .brand img { height: 40px; width: auto; flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 12px;
  font-size: 14px; color: var(--c-dark);
  border-radius: 6px; transition: all .15s;
}
.nav-links a:hover { background: var(--c-light); color: var(--c-accent); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--c-accent);
  border-radius: 999px;
  font-size: 13px; color: var(--c-accent);
  transition: all .15s;
}
.lang-switch:hover { background: var(--c-accent); color: #fff; }

.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  background:
    linear-gradient(rgba(13,43,78,.72), rgba(13,43,78,.78)),
    url('/img/bg.png') center/cover no-repeat;
  padding: 60px 20px;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300; opacity: .92; margin-bottom: 40px;
}
.hero .hero-divider {
  width: 60%; max-width: 360px; height: 2px;
  background: rgba(255,255,255,.6); margin: 0 auto 40px;
}
.hero .hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn {
  display: inline-block; padding: 14px 36px;
  font-size: 16px; font-weight: 500;
  border: 2px solid #fff; color: #fff;
  border-radius: 999px; transition: all .2s;
  background: transparent;
  cursor: pointer;
}
.hero .btn:hover { background: #fff; color: var(--c-primary); }
.hero .btn-primary { background: var(--c-accent); border-color: var(--c-accent); }
.hero .btn-primary:hover { background: var(--c-accent-light); border-color: var(--c-accent-light); color: #fff; }

/* ===== Section ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--c-light); }
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.section-header .icon { width: 6px; height: 32px; background: var(--c-accent); border-radius: 3px; }
.section-header h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; color: var(--c-primary); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.about-text p { margin-bottom: 20px; font-size: 17px; color: #2d3748; }

/* Values */
.values-intro { font-size: 17px; color: #2d3748; margin-bottom: 32px; max-width: 800px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.value-card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: all .2s; box-shadow: var(--shadow-sm);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-accent-light); }
.value-card h3 { color: var(--c-accent); font-size: 18px; margin-bottom: 10px; }
.value-card p { color: var(--c-muted); font-size: 15px; }

/* Team */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.team-grid img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.team-intro { font-size: 17px; color: #2d3748; margin-bottom: 28px; }
.team-category { margin-bottom: 20px; }
.team-category .label { font-weight: 700; color: var(--c-primary); font-size: 16px; margin-bottom: 6px; }
.team-category .members { color: var(--c-muted); font-size: 15px; }

/* History timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--c-border); }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
  content: ''; position: absolute; left: -28px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--c-accent);
}
.timeline-item .year { color: var(--c-accent); font-weight: 700; font-size: 18px; }
.timeline-item .title { font-weight: 600; font-size: 17px; color: var(--c-primary); margin: 4px 0; }
.timeline-item .desc { color: var(--c-muted); font-size: 15px; }

/* Marketing */
.marketing-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.marketing-grid img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.marketing-intro { font-size: 17px; color: #2d3748; margin-bottom: 28px; }
.events-list { list-style: none; }
.events-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--c-border);
  font-size: 16px;
}
.events-list li:last-child { border-bottom: none; }
.events-list .name { font-weight: 600; color: var(--c-primary); }
.events-list .year { color: var(--c-muted); font-size: 14px; }

/* Products */
.products-intro { font-size: 17px; color: #2d3748; margin-bottom: 32px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .2s; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .img-wrap { aspect-ratio: 4/3; overflow: hidden; background: var(--c-light); }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .img-wrap img { transform: scale(1.05); }
.product-card .body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 17px; color: var(--c-primary); margin-bottom: 8px; }
.product-card p { font-size: 14px; color: var(--c-muted); flex: 1; }

/* Records table */
.records-intro { font-size: 17px; color: #2d3748; margin-bottom: 32px; }
.records-table-wrap { overflow-x: auto; margin-bottom: 48px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.records-table { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; }
.records-table th, .records-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--c-border); font-size: 14px; }
.records-table th { background: var(--c-primary); color: #fff; font-weight: 600; white-space: nowrap; }
.records-table tr:hover { background: var(--c-light); }
.records-table .qty { white-space: nowrap; font-weight: 600; color: var(--c-accent); }

.records-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .caption { padding: 12px 16px; font-size: 14px; color: var(--c-dark); }

/* QC */
.qc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 40px; }
.qc-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px; }
.qc-card h3 { color: var(--c-accent); font-size: 16px; margin-bottom: 8px; }
.qc-card p { color: var(--c-muted); font-size: 14px; }
.qc-certs-title { font-size: 18px; font-weight: 700; color: var(--c-primary); margin-bottom: 20px; }
.qc-certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 24px; }
.qc-cert-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all .2s;
}
.qc-cert-card:hover { box-shadow: var(--shadow-md); }
.qc-cert-zoom { display: block; cursor: zoom-in; }
.qc-cert-card img {
  width: 100%; aspect-ratio: 1 / 1.414; object-fit: contain;
  background: #fff; border-bottom: 1px solid var(--c-border);
}
.qc-cert-body { padding: 16px 18px; }
.qc-cert-code {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--c-light); color: var(--c-accent);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.qc-cert-card h4 { font-size: 15px; color: var(--c-primary); margin: 10px 0 12px; }
.qc-cert-card ul { list-style: none; }
.qc-cert-card li { font-size: 13px; color: var(--c-muted); line-height: 1.7; }
.qc-certs-note { font-size: 13px; color: var(--c-muted); line-height: 1.8; margin-bottom: 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin-bottom: 32px; }
.contact-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--c-border); }
.contact-list .label { flex: 0 0 auto; min-width: 140px; font-weight: 700; color: var(--c-primary); }
.contact-list .value { flex: 1 1 auto; min-width: 0; color: var(--c-dark); word-break: break-word; }
.contact-grid img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }

/* Message form */
.message-wrap { max-width: 640px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: var(--c-primary); margin-bottom: 8px; font-size: 15px; }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--c-border); border-radius: 8px;
  font-size: 16px; font-family: inherit;
  transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: var(--c-accent); }
textarea.form-control { min-height: 120px; resize: vertical; }
.btn-submit {
  padding: 14px 40px; background: var(--c-accent); color: #fff;
  border: none; border-radius: 999px; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.btn-submit:hover { background: var(--c-accent-light); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.honeypot { position: absolute; left: -9999px; }
.form-thankyou {
  display: none; padding: 24px; background: #e8f5e9;
  border: 1px solid #a5d6a7; border-radius: var(--radius);
  color: #2e7d32; margin-top: 20px;
}

/* Footer */
.footer { background: var(--c-primary); color: rgba(255,255,255,.85); padding: 40px 0 24px; text-align: center; }
.footer .copyright { font-size: 14px; margin-bottom: 8px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid, .team-grid, .marketing-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 56px 0; }
}

/* 宽 logo 与完整桌面导航在 1030px 以下放不下，故导航提前切换为汉堡菜单 */
@media (max-width: 1030px) {
  .navbar .brand img { height: 36px; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--c-dark); transition: all .2s; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 80vh; overflow-y: auto; }
  .nav-links a:not(.lang-switch) { padding: 14px 20px; border-bottom: 1px solid var(--c-border); }
  .nav-links .lang-switch { margin: 12px 20px; justify-content: center; }
}

@media (max-width: 720px) {
  .hero { min-height: 70vh; }
  .records-table { min-width: 600px; }
  .products-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .hero .btn { padding: 12px 28px; font-size: 15px; }
  .products-grid { grid-template-columns: 1fr; }
  .contact-list .label { display: block; margin-bottom: 4px; }
}
