/* ============================================
   京杭醉官网 — 样式表
   主色 — 运河青 #1B3A4B
   辅色 — 琥珀金 #C8963E
   深色 — 墨染   #0F1F28
   浅色 — 宣纸白 #F5F0E8
   中性 — 石阶灰 #8C8279
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  width: 100%;
  min-height: 100vh;
  background: #F5F0E8;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 14px;
  color: #1B3A4B;
  line-height: 1.8;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Header --- */
.header {
  position: fixed; top: 0; left: 0; width: 100%; height: 90px;
  background: rgba(15, 31, 40, 0.95);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 19px 50px; z-index: 1000;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.header-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.logo { width: 198px; height: 61px; object-fit: contain; }

.nav { display: flex; cursor: pointer; }

.nav > li {
  font-size: 14px; font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  line-height: 22px; padding: 18px 20px;
  transition: all 0.3s ease;
}

.nav > li.active {
  background: #C8963E !important; color: #0F1F28 !important;
}

.nav > li:hover { color: #C8963E; }
.nav > li.active:hover { color: #0F1F28; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle span {
  display: block; width: 25px; height: 2px;
  background: #C8963E; transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
  position: relative; width: 100%; height: 100vh; min-height: 600px;
  background:
      linear-gradient(160deg, #0F1F28 0%, #1B3A4B 35%, #2a5060 70%, #0F1F28 100%),
      url(https://jinghangzui-1441755451.cos.ap-nanjing.myqcloud.com/img/hero-bg.png) center/cover no-repeat;
    background-blend-mode: overlay;
  display: flex; align-items: center; justify-content: center; text-align: center;
}

.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse at 30% 40%, rgba(200, 150, 62, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(200, 150, 62, 0.08) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content { position: relative; z-index: 1; color: #F5F0E8; }

.hero-title-img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto 24px;
}

.hero-title {
  font-family: "STSong", "SimSun", "Noto Serif SC", "SimHei", serif;
  font-size: 60px; font-weight: 700; margin-bottom: 16px;
  letter-spacing: 12px; color: #C8963E;
  text-shadow: 0 2px 20px rgba(200, 150, 62, 0.3);
}

.hero-subtitle {
  font-family: "STSong", "SimSun", "Noto Serif SC", serif;
  font-size: 24px; font-weight: 400; margin-bottom: 12px;
  letter-spacing: 10px; opacity: 0.9;
}

.hero-desc {
  font-size: 15px; letter-spacing: 6px; opacity: 0.6; margin-bottom: 60px;
}

.hero-btns { display: flex; justify-content: center; gap: 30px; }

.btn {
  display: inline-block; width: 153px; height: 48px; line-height: 48px;
  text-align: center; font-size: 15px; border: none; cursor: pointer;
  transition: all 0.3s ease; letter-spacing: 2px;
}

.btn-primary {
  background: #C8963E; color: #0F1F28;
}
.btn-primary:hover { background: #d4a85a; }

.btn-outline {
  background: transparent; color: #C8963E; border: 1px solid #C8963E;
}
.btn-outline:hover { background: rgba(200, 150, 62, 0.1); }

/* --- Sections --- */
.section { padding: 100px 0; }

.section-title {
  font-family: "STSong", "SimSun", "Noto Serif SC", serif;
  font-size: 36px; font-weight: 700; color: #1B3A4B;
  text-align: center; margin-bottom: 12px; letter-spacing: 4px;
}

.section-desc {
  text-align: center; color: #8C8279; font-size: 15px; margin-bottom: 60px;
  letter-spacing: 2px;
}

/* --- Products --- */
.products { background: #fff; }

.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}

.product-card {
  text-align: center; padding: 0 0 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e8e3d8;
  border-radius: 4px;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 31, 40, 0.12);
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-img img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}

.product-card h3 {
  font-size: 15px; color: #1B3A4B;
  margin: 10px 10px 2px; font-weight: 600;
}

.product-degree {
  font-family: Georgia, serif; font-size: 13px; color: #C8963E;
  margin: 0 10px 4px; letter-spacing: 1px;
}

.product-card p {
  font-size: 12px; color: #8C8279; line-height: 1.5;
  margin: 0 10px;
}

/* --- Brand Story --- */
.story { background: #F5F0E8; }

.story-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

.story-text p {
  font-size: 15px; color: #3a4a55; line-height: 2.1; margin-bottom: 20px;
  text-indent: 2em;
}

.story-image { display: flex; align-items: center; justify-content: center; }
.story-img { width: 100%; max-width: 600px; border-radius: 8px; }

/* --- Craft --- */
.craft { background: #fff; }

.craft-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}

.craft-item { text-align: center; padding: 30px 15px; transition: transform 0.3s ease; }
.craft-item:hover { transform: translateY(-5px); }

.craft-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 4px;
}

.craft-img img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}

.craft-item h3 {
  font-size: 18px; color: #1B3A4B; margin-bottom: 10px;
  letter-spacing: 2px;
}

.craft-item p { font-size: 13px; color: #8C8279; line-height: 1.8; }

/* --- Contact --- */
.contact { background: #F5F0E8; }

.contact-grid { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }

.contact-info { display: flex; flex-direction: row; justify-content: center; gap: 40px; flex-wrap: wrap; }

.contact-item { display: flex; align-items: center; gap: 15px; font-size: 15px; color: #1B3A4B; }

.contact-icon { width: 40px; text-align: center; flex-shrink: 0; }

.contact-form { display: flex; flex-direction: column; gap: 15px; }

.form-input, .form-textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #d0cbc0;
  font-size: 14px; font-family: inherit; transition: border-color 0.3s ease;
  outline: none; background: #fff;
}

.form-input:focus, .form-textarea:focus { border-color: #C8963E; }
.form-textarea { resize: vertical; }
.contact-form .btn { width: 100%; max-width: 320px; }

/* --- Footer --- */
.footer {
  background: #0F1F28; color: #F5F0E8; padding: 60px 0 30px;
}

.footer-content { display: flex; flex-direction: column; align-items: center; gap: 30px; }

.footer-logo-img {
  width: 150px; height: auto; opacity: 0.85;
}

.footer-links { display: flex; gap: 30px; }

.footer-links a { color: #8C8279; font-size: 13px; transition: color 0.3s ease; letter-spacing: 1px; }
.footer-links a:hover { color: #C8963E; }

.footer-copy {
  border-top: 1px solid rgba(140, 130, 121, 0.15);
  width: 100%; text-align: center; padding-top: 30px;
}

.footer-copy p { color: #5a6a75; font-size: 12px; letter-spacing: 1px; }

/* --- Header scroll --- */
.header.scrolled { background: rgba(15, 31, 40, 0.98); }

/* --- Responsive --- */
@media screen and (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
  .header { padding: 15px 20px; height: 70px; }
  .logo { width: 140px; height: 43px; }

  .nav {
    position: fixed; top: 70px; left: 0; width: 100%;
    background: #0F1F28; flex-direction: column;
    transform: translateY(-100%); opacity: 0;
    transition: all 0.3s ease; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: none;
  }

  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

  .nav > li { padding: 15px 20px; text-align: center; border-bottom: 1px solid rgba(200, 150, 62, 0.1); }

  .menu-toggle { display: flex; }

  .hero-title-img { max-width: 320px; }
  .hero-subtitle { font-size: 16px; letter-spacing: 4px; }
  .hero-desc { font-size: 13px; letter-spacing: 3px; margin-bottom: 40px; }
  .hero-btns { flex-direction: column; align-items: center; gap: 15px; }

  .story-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; }

  .story-text p { text-indent: 1.5em; font-size: 14px; }
}

@media screen and (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .craft-grid { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
}
