﻿/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1B2A4A;
  --primary-light: #2C3E6B;
  --gold: #C9A84C;
  --gold-light: #E8D5A3;
  --bg: #F8F9FA;
  --bg-white: #FFFFFF;
  --text: #333333;
  --text-light: #666666;
  --border: #E5E5E5;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-w: 1200px;
  --nav-h: 72px;
}
html { scroll-behavior: smooth; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: var(--bg-white); box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  z-index: 1000; display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 40px; }
.nav-logo span { font-size: 20px; font-weight: 700; color: var(--primary); }
.nav-menu { display: flex; list-style: none; gap: 4px; }
.nav-menu a {
  display: block; padding: 8px 18px; text-decoration: none; color: var(--text);
  font-size: 15px; border-radius: 6px; transition: all 0.2s;
}
.nav-menu a:hover,
.nav-menu a.active { background: var(--primary); color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); transition: 0.3s; }

/* ===== Main Content ===== */
.main { margin-top: var(--nav-h); min-height: 60vh; }

/* ===== Hero Banner ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; padding: 100px 20px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; background: rgba(201,168,76,0.08); border-radius: 50%;
}
.hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 16px; position: relative; }
.hero p { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto 30px; position: relative; }
.hero .btn {
  display: inline-block; padding: 14px 36px; background: var(--gold); color: var(--primary);
  text-decoration: none; border-radius: 50px; font-size: 16px; font-weight: 600;
  transition: all 0.3s; position: relative;
}
.hero .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,168,76,0.4); }
.hero-wave { position: absolute; bottom: 0; left: 0; width: 100%; height: 60px; }

/* ===== Section ===== */
.section { padding: 80px 20px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; color: var(--primary); margin-bottom: 10px; }
.section-title p { color: var(--text-light); font-size: 16px; }
.section.white { background: var(--bg-white); }

/* ===== Advantages ===== */
.advantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.adv-card {
  background: var(--bg-white); padding: 40px 30px; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow); transition: 0.3s; border: 1px solid var(--border);
}
.adv-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.adv-icon { width: 64px; height: 64px; margin: 0 auto 20px; background: var(--gold-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.adv-card h3 { font-size: 20px; margin-bottom: 10px; color: var(--primary); }
.adv-card p { color: var(--text-light); font-size: 14px; line-height: 1.7; }

/* ===== Product Grid ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.product-card {
  background: var(--bg-white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: 0.3s; border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.product-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.product-body { padding: 20px; }
.product-body .tag {
  display: inline-block; padding: 3px 12px; background: var(--gold-light);
  color: var(--primary); border-radius: 20px; font-size: 12px; margin-bottom: 8px;
}
.product-body h3 { font-size: 18px; margin-bottom: 8px; color: var(--primary); }
.product-body p { color: var(--text-light); font-size: 14px; line-height: 1.6; }
.product-body .price { font-size: 18px; font-weight: 700; color: var(--gold); margin-top: 10px; }

/* ===== Category Tabs ===== */
.cate-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 35px; flex-wrap: wrap; }
.cate-tab {
  padding: 8px 22px; border: 1px solid var(--border); border-radius: 25px;
  cursor: pointer; font-size: 14px; transition: 0.2s; background: var(--bg-white);
}
.cate-tab:hover { border-color: var(--gold); color: var(--gold); }
.cate-tab.active { background: var(--gold); color: var(--primary); border-color: var(--gold); font-weight: 600; }

/* ===== News ===== */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.news-card {
  background: var(--bg-white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: 0.3s; cursor: pointer;
}
.news-card:hover { transform: translateY(-3px); }
.news-img { width: 100%; height: 200px; object-fit: cover; }
.news-body { padding: 20px; }
.news-date { font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.news-body h3 { font-size: 16px; margin-bottom: 8px; color: var(--primary); line-height: 1.4; }
.news-body p { color: var(--text-light); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Jobs ===== */
.jobs-list { max-width: 800px; margin: 0 auto; }
.job-item {
  background: var(--bg-white); border-radius: var(--radius); padding: 25px 30px;
  margin-bottom: 15px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.job-item h3 { font-size: 18px; color: var(--primary); margin-bottom: 6px; }
.job-meta { font-size: 14px; color: var(--text-light); margin-bottom: 10px; display: flex; gap: 20px; flex-wrap: wrap; }
.job-desc { color: var(--text-light); font-size: 14px; line-height: 1.7; }
.job-desc ul { padding-left: 20px; margin-top: 8px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h3 { font-size: 18px; color: var(--primary); margin-bottom: 15px; }
.contact-info p { margin-bottom: 10px; color: var(--text-light); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 15px; margin-bottom: 15px; transition: 0.2s; font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form .btn-submit {
  padding: 12px 32px; background: var(--primary); color: #fff; border: none;
  border-radius: 6px; font-size: 16px; cursor: pointer; transition: 0.2s;
}
.contact-form .btn-submit:hover { background: var(--primary-light); }

/* ===== Friends ===== */
.friends-list { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; }
.friends-list a {
  padding: 10px 24px; background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 6px; text-decoration: none; color: var(--text-light); font-size: 14px;
  transition: 0.2s;
}
.friends-list a:hover { border-color: var(--gold); color: var(--gold); }

/* ===== Footer ===== */
.footer {
  background: var(--primary); color: rgba(255,255,255,0.8); padding: 50px 20px 30px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 30px; }
.footer h4 { color: #fff; margin-bottom: 15px; font-size: 16px; }
.footer p, .footer a { font-size: 14px; line-height: 2; color: rgba(255,255,255,0.7); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; }
.footer-bottom a { color: var(--gold-light); }

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; padding: 50px 20px; text-align: center;
}
.breadcrumb h1 { font-size: 32px; margin-bottom: 6px; }
.breadcrumb p { opacity: 0.8; font-size: 15px; }

/* ===== Page Content ===== */
.page-content { max-width: 800px; margin: 0 auto; line-height: 1.8; font-size: 15px; color: var(--text-light); }
.page-content p { margin-bottom: 15px; }

/* ===== Detail Page ===== */
.detail-header { padding: 60px 20px 30px; max-width: 800px; margin: 0 auto; }
.detail-header h1 { font-size: 26px; color: var(--primary); margin-bottom: 10px; }
.detail-meta { color: var(--text-light); font-size: 14px; }
.detail-body { max-width: 800px; margin: 0 auto; padding: 0 20px 60px; line-height: 1.8; font-size: 15px; color: var(--text-light); }
.detail-body img { max-width: 100%; border-radius: var(--radius); margin: 20px 0; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--primary); text-decoration: none; }
.back-link:hover { color: var(--gold); }

/* ===== Toast ===== */
.toast {
  position: fixed; top: 90px; right: 20px; padding: 14px 24px; border-radius: 6px;
  color: #fff; font-size: 14px; z-index: 9999; opacity: 0; transform: translateX(30px);
  transition: 0.3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast.success { background: #22c55e; }
.toast.error { background: #ef4444; }

/* ===== Loading ===== */
.loading { text-align: center; padding: 60px; color: var(--text-light); }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg-white);
    flex-direction: column; padding: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .advantages, .product-grid, .news-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .section { padding: 50px 20px; }
  .section-title h2 { font-size: 26px; }
}
