﻿/* assets/css/style.css */

/* =========================
   Reset & Base
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #1F2937;
  background-color: #D3F8ED;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   Container
========================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   Typography
========================= */
h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

p {
  margin-bottom: 12px;
  color: #6B7280;
}

/* =========================
   Buttons（回归干净风格）
========================= */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  transition: 0.2s ease;
  font-size: 14px;
}

.btn-primary {
  background-color: #A0FB9D;
  color: #1F2937;
}

.btn-primary:hover {
  background-color: #8EEB8A;
}

.btn-outline {
  border: 1px solid #A0FB9D;
  color: #1F2937;
}

.btn-outline:hover {
  background-color: #A0FB9D;
}

/* =========================
   Header / Nav（简洁版）
========================= */
header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  font-weight: bold;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-size: 14px;
  color: #1F2937;
}

.nav-links a.active {
  color: #A0FB9D;
  font-weight: 600;
}

/* =========================
   Mobile Menu
========================= */
.menu-toggle {
  display: none;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.mobile-menu a {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.mobile-menu.active {
  display: flex;
}

/* =========================
   Sections（回归轻风格）
========================= */
.section {
  padding: 70px 0;
}

.section-light {
  background-color: #ffffff;
}

.section-soft {
  background-color: rgba(157, 251, 201, 0.15);
}

/* =========================
   Grid
========================= */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* =========================
   Cards（更轻、更干净）
========================= */
.card {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #eef2f7;
  transition: 0.2s ease;
}

.card:hover {
  border-color: #9DFBC9;
}

/* =========================
   Table
========================= */
table {
  width: 100%;
  border-collapse: collapse;
}

table th, table td {
  padding: 12px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

/* =========================
   Footer（简洁轻暗）
========================= */
footer {
  background: #70BDA9;
  color: #d1d5db;
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

footer h3 {
  color: #ffffff;
}

footer a {
  color: #9DFBF8;
  font-size: 14px;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 12px;
  text-align: center;
  border-top: 1px solid #374151;
  padding-top: 10px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   Form Styling（新增）
========================= */

form {
  margin-top: 20px;
}

form label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #374151;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: #ffffff;
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

form .grid {
  margin-bottom: 15px;
}

form button {
  margin-top: 10px;
}
/* =========================
   Hero Section（背景图版）
========================= */

.hero-section {
  background: url("../img/hero-watch-strap.jpg") no-repeat center center;
  background-size: cover;
  padding: 140px 0;
  position: relative;
}

/* 加一层浅色遮罩（关键高级感） */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.85); /* 白色半透明 */
}

/* 内容层 */
.hero-content {
  position: relative;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
}

.hero-content p {
  margin-top: 20px;
  font-size: 1.1rem;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 12px;
}