/* 厦门泰呈丰金属科技有限公司 企业官网样式 */
:root {
  --ink: #0f172a;
  --slate: #334155;
  --muted: #64748b;
  --cloud: #f8fafc;
  --line: #e2e8f0;
  --snow: #ffffff;
  --gold: #c9a45b;
  --gold-dark: #a38236;
  --steel: #475569;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 6px;
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--slate);
  line-height: 1.7;
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-cloud {
  background: var(--cloud);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-title .subtitle {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title .accent-line {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--steel) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.logo-text small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
}

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

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate);
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--gold-dark);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--snow);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--snow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--snow);
}

.btn-dark {
  background: var(--ink);
  color: var(--snow);
}

.btn-dark:hover {
  background: var(--steel);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--snow);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.55) 60%, rgba(15, 23, 42, 0.35) 100%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1s ease forwards;
}

.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid rgba(201, 164, 91, 0.5);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  border-radius: 999px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  font-weight: 300;
}

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

.hero-mini {
  min-height: 420px;
}

.hero-mini .hero-content {
  animation-delay: 0.1s;
}

.hero-mini h1 {
  font-size: 2.6rem;
}

.hero-mini p {
  font-size: 1.05rem;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Highlights / Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

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

.card {
  background: var(--snow);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid var(--gold);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--cloud);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--gold);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Stats */
.stats {
  background: var(--ink);
  color: var(--snow);
  padding: 80px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
}

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

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--slate);
}

.about-text .lead {
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 500;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

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

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--snow);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-year {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--slate);
  font-size: 0.95rem;
}

/* Services / Products */
.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--snow);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.service-card:last-child {
  margin-bottom: 0;
}

.service-card.reverse {
  direction: rtl;
}

.service-card.reverse > * {
  direction: ltr;
}

.service-img {
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.service-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-body h3 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 16px;
}

.service-body p {
  color: var(--slate);
  margin-bottom: 20px;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--steel);
}

.service-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Capability table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--snow);
  font-size: 0.92rem;
}

table th,
table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

table th {
  background: var(--ink);
  color: var(--snow);
  font-weight: 600;
  letter-spacing: 0.04em;
}

table tbody tr:last-child td {
  border-bottom: none;
}

table tbody tr:hover {
  background: var(--cloud);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 20px;
}

.info-card {
  background: var(--snow);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--cloud);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.info-icon svg {
  width: 22px;
  height: 22px;
}

.info-card h4 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.info-card p {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.6;
}

.contact-form {
  background: var(--snow);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--slate);
  background: var(--cloud);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 91, 0.12);
  background: var(--snow);
}

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

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 32px;
}

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

.footer-brand .logo-text {
  color: var(--snow);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer h4 {
  color: var(--snow);
  font-size: 1rem;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 10px;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Mobile */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-wrap {
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - var(--header-height));
    background: var(--snow);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
  }

  .nav.open {
    right: 0;
  }

  .nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a::after {
    display: none;
  }

  .nav .btn {
    margin-top: 16px;
    width: 100%;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-mini {
    min-height: 320px;
  }

  .hero-mini h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 64px 0;
  }

  .grid-3,
  .grid-2,
  .about-wrap,
  .service-card,
  .service-card.reverse,
  .contact-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card.reverse {
    direction: ltr;
  }

  .service-card.reverse > * {
    direction: ltr;
  }

  .service-img {
    min-height: 220px;
  }

  .service-body {
    padding: 32px 24px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }
}
