/* ============================================================
   佛山市粤新鼎迈金属制品有限公司 - 企业官网
   设计规范：稳重专业 · 商务蓝 · 磨砂亚麻风格
   ============================================================ */

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 颜色 */
  --canvas: #fcfcfc;
  --sky-wash: #f0f4fe;
  --midnight: #020520;
  --graphite: #14141e;
  --slate: #374151;
  --mist: #696a72;
  --deep-mist: #95959b;
  --steel: #6b7280;
  --signal-blue: #145aff;
  --action: #0f1f3d;
  --emerald: #16ca2e;
  --coral: #f26052;
  --sky-info: #0099ff;
  --amber: #ffa64d;

  /* 字体 */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* 字号 */
  --fs-caption: 10px;
  --fs-body: 14px;
  --fs-heading-sm: 18px;
  --fs-heading: 22px;
  --fs-heading-lg: 40px;
  --fs-display: 56px;

  /* 圆角 */
  --radius-pill: 100px;
  --radius-card: 8px;
  --radius-badge: 4px;
  --radius-image: 16px;
  --radius-input: 12px;
  --radius-modal: 32px;
  --radius-btn: 12px;
  --radius-lg-card: 40px;

  /* 间距 */
  --section-gap: 80px;
  --max-width: 1200px;
  --nav-height: 72px;

  /* 阴影 */
  --shadow-card: rgba(0, 0, 0, 0.1) 0px 0px 4px -2px;
  --shadow-card-hover: rgba(0, 0, 0, 0.18) 0px 0px 3px -1px,
                        rgba(20, 90, 255, 0.1) 0px 0px 50px -28px;
  --shadow-feature: rgba(0, 0, 0, 0.082) 0px 0.36px 1.81px -1.42px,
                    rgba(0, 0, 0, 0.07) 0px 1.37px 6.87px -2.83px,
                    rgba(0, 0, 0, 0.016) 0px 6px 30px -4.25px;
  --shadow-glow: rgba(20, 90, 255, 0.1) 0px 0px 100px -28px;

  /* 过渡 */
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: 0.06px;
  color: var(--graphite);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--midnight);
}

.display {
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -1.51px;
}

.heading-lg {
  font-size: var(--fs-heading-lg);
  line-height: 1.08;
  letter-spacing: -0.76px;
}

.heading {
  font-size: var(--fs-heading);
  line-height: 1.25;
  letter-spacing: -0.22px;
}

.heading-sm {
  font-size: var(--fs-heading-sm);
  line-height: 1.4;
  letter-spacing: -0.16px;
}

.caption {
  font-size: var(--fs-caption);
  line-height: 1.2;
  letter-spacing: 0.13px;
}

p {
  color: var(--slate);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: var(--action);
  transition: color var(--transition);
}

a:hover {
  color: var(--signal-blue);
}

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-gap) 0;
}

.section-alt {
  background-color: var(--sky-wash);
  padding: var(--section-gap) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .heading-lg {
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--mist);
  max-width: 600px;
  margin: 0 auto;
}

/* === Navigation === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(252, 252, 252, 0.92);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--midnight);
  letter-spacing: -0.16px;
}

.nav-logo .logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-card);
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--slate);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--sky-wash);
  color: var(--midnight);
}

.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 24px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-outline {
  background: rgba(255,255,255,0.8);
  color: var(--action);
  border: 1px solid var(--action);
  border-radius: var(--radius-btn);
  padding: 12px 24px;
  font-weight: 500;
  font-size: 14px;
}

.btn-outline:hover {
  background: var(--action);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, rgb(59,130,246) 0%, rgb(20,90,255) 100%);
  color: #ffffff;
  border-radius: var(--radius-btn);
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--canvas);
  color: var(--signal-blue);
  border: 1px solid rgba(20, 90, 255, 0.3);
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-weight: 500;
  font-size: 16px;
}

.btn-ghost:hover {
  border-color: var(--signal-blue);
  background: var(--sky-wash);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: radial-gradient(97.8% 181.6% at 53.7% 50%, rgb(182, 203, 253) 0%, rgba(240, 244, 254, 0.8) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 40%, rgba(20, 90, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 24px;
  background: rgba(252,252,252,0.5);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0,0,0,0.06);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
}

.hero-title {
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -1.51px;
  color: var(--midnight);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--slate);
  margin-bottom: 36px;
  line-height: 1.6;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === About Section === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  background: var(--sky-wash);
  border-radius: var(--radius-lg-card);
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mist);
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.about-image .placeholder {
  text-align: center;
  padding: 40px;
}

.about-image .placeholder .icon-lg {
  font-size: 64px;
  margin-bottom: 16px;
  display: block;
  color: var(--action);
}

.about-content .heading-lg {
  margin-bottom: 16px;
}

.about-content p {
  margin-bottom: 16px;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.value-card .icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
  color: var(--action);
}

.value-card h4 {
  margin-bottom: 8px;
  font-size: 16px;
}

.value-card p {
  font-size: 13px;
  color: var(--mist);
}

/* === Products Section === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.product-card-image {
  height: 200px;
  background: var(--sky-wash);
  overflow: hidden;
}

.product-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.product-card-body p {
  font-size: 13px;
  color: var(--mist);
  flex: 1;
  margin-bottom: 16px;
}

.product-card-body .btn-sm {
  align-self: flex-start;
}

/* === News Section === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.news-card .date {
  font-size: var(--fs-caption);
  color: var(--deep-mist);
  letter-spacing: 0.13px;
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card p {
  font-size: 13px;
  color: var(--mist);
  flex: 1;
  margin-bottom: 16px;
}

.news-card .read-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--action);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-card .read-more:hover {
  color: var(--signal-blue);
}

/* === Contact Section === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info .heading {
  margin-bottom: 16px;
}

.contact-info > p {
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-item .icon {
  font-size: 20px;
  color: var(--action);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item .info h4 {
  font-size: 14px;
  margin-bottom: 2px;
}

.contact-item .info span {
  font-size: 13px;
  color: var(--mist);
}

/* Form */
.contact-form {
  background: #ffffff;
  border-radius: var(--radius-lg-card);
  padding: 40px;
  box-shadow: var(--shadow-feature);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--graphite);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--graphite);
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-radius: var(--radius-input);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--sky-info);
  box-shadow: rgba(0, 153, 255, 1) 0px 0px 0px 3px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--deep-mist);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
}

/* === Footer === */
.footer {
  background: var(--graphite);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.7);
}

/* === Page Banner (inner pages) === */
.page-banner {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  background: var(--sky-wash);
  text-align: center;
}

.page-banner .heading-lg {
  margin-bottom: 8px;
}

.page-banner p {
  color: var(--mist);
  font-size: 16px;
}

/* === About Page === */
.about-detail {
  padding: var(--section-gap) 0;
}

.timeline {
  position: relative;
  padding-left: 32px;
  margin-top: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--sky-wash);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding-left: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--action);
  border: 2px solid var(--sky-wash);
  transform: translateX(-50%);
}

.timeline-item .year {
  font-size: 12px;
  color: var(--mist);
  font-weight: 500;
  margin-bottom: 4px;
}

.timeline-item h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.timeline-item p {
  font-size: 13px;
  color: var(--mist);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.team-card {
  text-align: center;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.team-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--sky-wash);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--action);
}

.team-card h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 12px;
  color: var(--mist);
}

/* === Products List Page === */
.products-list {
  padding: var(--section-gap) 0;
}

.products-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.products-filter .filter-btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  background: transparent;
  border: 1px solid #cfcfcf;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}

.products-filter .filter-btn:hover,
.products-filter .filter-btn.active {
  color: var(--action);
  border-color: var(--action);
  background: var(--sky-wash);
}

/* === Product Detail Page === */
.product-detail {
  padding: var(--section-gap) 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-detail-image {
  background: var(--sky-wash);
  border-radius: var(--radius-lg-card);
  height: 400px;
  overflow: hidden;
}

.product-detail-info h2 {
  margin-bottom: 12px;
}

.product-detail-info .tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--signal-blue);
  background: rgba(20, 90, 255, 0.08);
  border-radius: var(--radius-badge);
  margin-bottom: 16px;
}

.product-detail-info .specs {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.product-detail-info .specs h4 {
  margin-bottom: 12px;
  font-size: 15px;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 13px;
}

.spec-item .label {
  color: var(--mist);
}

.spec-item .value {
  font-weight: 500;
  color: var(--graphite);
}

/* === News Detail Page === */
.news-detail {
  padding: var(--section-gap) 0;
}

.news-detail-content {
  max-width: 760px;
  margin: 0 auto;
}

.news-detail-content .meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--deep-mist);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.news-detail-content .body {
  line-height: 1.8;
  color: var(--slate);
}

.news-detail-content .body p {
  margin-bottom: 16px;
}

.news-detail-content .body h3 {
  margin: 32px 0 12px;
  font-size: 18px;
}

/* === Breadcrumb === */
.breadcrumb {
  display: flex;
  list-style: none;
  gap: 8px;
  font-size: 13px;
  color: var(--mist);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--deep-mist);
}

.breadcrumb a {
  color: var(--mist);
}

.breadcrumb a:hover {
  color: var(--action);
}

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 40px;
}

.pagination .page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--slate);
  border: 1px solid #cfcfcf;
  border-radius: var(--radius-card);
  transition: all var(--transition);
}

.pagination .page-btn:hover,
.pagination .page-btn.active {
  color: var(--action);
  border-color: var(--action);
}

/* === Success Message === */
.success-message {
  display: none;
  background: rgba(22, 202, 46, 0.08);
  color: var(--emerald);
  padding: 16px 20px;
  border-radius: var(--radius-card);
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
  text-align: center;
}

.success-message.show {
  display: block;
}

/* === Responsive === */
@media (max-width: 1024px) {
  :root {
    --fs-display: 42px;
    --fs-heading-lg: 32px;
  }
  .about-grid,
  .contact-grid,
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .products-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-display: 32px;
    --fs-heading-lg: 26px;
    --section-gap: 48px;
  }
  .navbar .nav-links {
    display: none;
  }
  .nav-cta .btn-outline {
    display: none;
  }
  .products-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .products-filter {
    gap: 4px;
  }
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Scroll-reveal base */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Mobile menu toggle === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--slate);
}

@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: block;
  }
}
