/* assets/css/style.css */

/* =========================
   Reset & Base
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   Container
========================= */
.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

/* =========================
   Typography
========================= */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: 0.3px;
}

h1 {
  font-size: 40px;
  margin-bottom: 20px;
}

h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

p {
  color: #666;
  margin-bottom: 12px;
}

/* =========================
   Buttons（黑白极简）
========================= */
.btn {
  padding: 10px 22px;
  background: #000;
  color: #fff;
  font-size: 14px;
  border-radius: 2px;
  transition: 0.3s;
}

.btn:hover {
  background: #333;
}

.btn-secondary {
  border: 1px solid #000;
  color: #000;
  background: transparent;
}

.btn-secondary:hover {
  background: #000;
  color: #fff;
}

/* =========================
   Header（极简工业风）
========================= */
header {
  border-bottom: 1px solid #eee;
  background: #fff;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-size: 13px;
  text-transform: uppercase;
  color: #444;
  position: relative;
}

.nav-links a.active {
  color: #000;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #000;
}

/* Mobile */
.menu-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid #ddd;
}

.mobile-menu a {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

/* =========================
   Hero（极简留白）
========================= */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto 20px;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 20px;
}

/* =========================
   Sections
========================= */
.section {
  padding: 70px 0;
}

.section-light {
  background: #fafafa;
}

/* =========================
   Cards（工业卡片）
========================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  border: 1px solid #eee;
  padding: 24px;
  background: #fff;
  transition: 0.25s;
}

.card:hover {
  border-color: #000;
}

/* =========================
   Table
========================= */
table {
  width: 100%;
  border-collapse: collapse;
}

table th, table td {
  padding: 12px;
  border: 1px solid #eee;
}

/* =========================
   Footer（反差极简）
========================= */
footer {
  background: #000;
  color: #ccc;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

footer h3 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 15px;
}

footer a {
  color: #aaa;
  font-size: 13px;
}

footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid #222;
  padding-top: 10px;
  text-align: center;
  font-size: 12px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu.active {
    display: flex;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}