/* ============================================================
   Rongshu Department Store - Official Website
   Author: Built for 兰博 / 2026-06-10
   Palette: Blue (#0B5FAE / #1E88E5) + White (#FFFFFF) + Soft Gray
   ============================================================ */

/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2c3e50;
  background: #ffffff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: #0B5FAE; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:root {
  --primary: #0B5FAE;
  --primary-light: #1E88E5;
  --primary-dark: #08457A;
  --accent: #E8F1FB;
  --text: #2c3e50;
  --text-light: #6b7c93;
  --border: #e3eaf2;
  --bg-soft: #f6f9fd;
  --white: #ffffff;
  --max-w: 1200px;
  --radius: 8px;
  --shadow-sm: 0 2px 8px rgba(11, 95, 174, .06);
  --shadow-md: 0 6px 24px rgba(11, 95, 174, .1);
  --transition: .3s ease;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 600; color: var(--text); line-height: 1.3; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
}
.section-title p {
  margin-top: 14px;
  color: var(--text-light);
  font-size: .95rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---------- Header / Nav ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.nav-menu {
  display: flex;
  gap: 8px;
}
.nav-menu a {
  display: block;
  padding: 10px 18px;
  font-size: .95rem;
  font-weight: 500;
  border-radius: 6px;
  position: relative;
  transition: all var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
  background: var(--accent);
}
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  margin-top: 72px;
  background:
    linear-gradient(135deg, rgba(11, 95, 174, .92), rgba(30, 136, 229, .88)),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.18) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.12) 0, transparent 40%);
  color: var(--white);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 1px, transparent 1px 24px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 36px;
  opacity: .95;
}
.hero .btn-primary {
  background: var(--white);
  color: var(--primary);
}
.hero .btn-primary:hover {
  background: var(--accent);
  color: var(--primary-dark);
}
.hero .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,.15);
  color: var(--white);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.feature-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
}
.feature-card h3 { margin-bottom: 8px; color: var(--text); }
.feature-card p { color: var(--text-light); font-size: .92rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--primary), var(--primary-light));
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-visual::before {
  content: "RS";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255,255,255,.25);
  letter-spacing: 8px;
}
.about-visual::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 6px;
}
.about-text h2 { margin-bottom: 18px; }
.about-text p { margin-bottom: 14px; color: var(--text-light); }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.stat-label {
  font-size: .85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--accent), #fff);
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: var(--primary);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.product-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  padding: 4px 10px;
  border-radius: 4px;
}
.product-body { padding: 22px; }
.product-body h3 { margin-bottom: 8px; }
.product-body p { font-size: .9rem; color: var(--text-light); margin-bottom: 12px; }
.product-link {
  font-size: .9rem;
  color: var(--primary);
  font-weight: 500;
}

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.news-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}
.news-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-meta {
  display: flex;
  gap: 14px;
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.news-body h3 { margin-bottom: 10px; font-size: 1.1rem; }
.news-body p { color: var(--text-light); font-size: .9rem; flex: 1; }
.news-link {
  margin-top: 14px;
  color: var(--primary);
  font-size: .9rem;
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.contact-item h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-item p { color: var(--text-light); font-size: .92rem; }

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: .9rem;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: .95rem;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11,95,174,.1);
}
textarea.form-control { min-height: 120px; resize: vertical; }

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(180deg, #08457A 0%, #062E54 100%);
  color: rgba(255,255,255,.85);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer h4 {
  color: #fff;
  margin-bottom: 18px;
  font-size: 1.05rem;
}
.footer-about { font-size: .9rem; line-height: 1.8; }
.footer-about .logo { color: #fff; margin-bottom: 14px; }
.footer ul li { margin-bottom: 10px; font-size: .9rem; }
.footer ul li a:hover { color: #fff; }
.footer-contact-item {
  font-size: .9rem;
  margin-bottom: 12px;
  opacity: .9;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  text-align: center;
  font-size: .85rem;
  opacity: .75;
}

/* ---------- Page Banner (sub-pages) ---------- */
.page-banner {
  margin-top: 72px;
  padding: 70px 0 60px;
  background:
    linear-gradient(135deg, rgba(11, 95, 174, .95), rgba(30, 136, 229, .92));
  color: #fff;
  text-align: center;
}
.page-banner h1 { color: #fff; margin-bottom: 10px; }
.page-banner p { opacity: .92; }
.breadcrumb {
  margin-top: 14px;
  font-size: .9rem;
  opacity: .85;
}
.breadcrumb a { color: #fff; }
.breadcrumb span { margin: 0 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 14px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    border-top: 1px solid var(--border);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-menu a:last-child { border-bottom: none; }

  .hero { min-height: 80vh; padding: 40px 0; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 1rem; }

  .section { padding: 60px 0; }
  .section-title { margin-bottom: 36px; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-num { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}