:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --accent: #06b6d4;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { width: min(1200px, 92%); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-icon {
  height: 38px; width: auto; display: block;
}
.logo-icon img { height: 100%; width: auto; display: block; }
.logo-text { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.main-nav a:hover { color: var(--primary); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  position: relative; min-height: 560px; overflow: hidden;
  display: flex; align-items: center;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.45) 60%, rgba(15,23,42,0.2) 100%);
}
.hero-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 2;
}
.hero-dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.45); cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hero-dots .dot.active { background: #fff; transform: scale(1.35); }
.hero-content {
  position: relative; z-index: 1;
  color: #fff; max-width: 640px; padding: 80px 0;
}
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; margin-bottom: 12px; }
.hero-subtitle { font-size: 1.5rem; color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.75); margin-bottom: 24px; max-width: 520px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.badge {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; backdrop-filter: blur(4px);
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 8px; font-weight: 600; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s; border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: var(--shadow-lg); }
.btn-secondary { background: #fff; color: var(--primary-dark); border: 1px solid var(--border); }

/* Stats */
.stats { background: var(--surface); border-bottom: 1px solid var(--border); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item strong { display: block; font-size: 2rem; color: var(--primary); }
.stat-item span { color: var(--text-muted); font-size: 0.9rem; }

/* Sections */
section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Series */
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.series-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 16px 20px; box-shadow: var(--shadow); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.series-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.series-thumbs {
  display: flex; gap: 10px; height: 120px; margin-bottom: 16px;
  align-items: center; justify-content: flex-start; overflow: hidden;
}
.series-thumbs img {
  height: 100%; width: auto; max-width: 34%;
  object-fit: contain; border-radius: 10px;
  background: #f1f5f9; padding: 8px; border: 1px solid var(--border);
}
.series-body { padding: 0 8px; }
.series-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.series-card .icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #e0f2fe, #cffafe);
  color: var(--primary-dark); display: grid; place-items: center; font-size: 1rem;
}
.series-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0; line-height: 1.3; }
.series-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.series-card .count {
  display: inline-block; margin-top: 14px; font-size: 0.8rem; color: var(--primary-dark);
  background: #e0f2fe; padding: 4px 10px; border-radius: 999px;
}

/* Products */
.products-section { background: var(--bg); }
.toolbar {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px;
}
.search-box { display: flex; gap: 0; }
.search-box input {
  width: 320px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px 0 0 8px;
  font-size: 0.95rem; outline: none; border-right: none;
}
.search-box input:focus { border-color: var(--primary); }
.search-box button {
  padding: 10px 18px; background: var(--primary); color: #fff; border: none;
  border-radius: 0 8px 8px 0; cursor: pointer; font-weight: 500;
}
#seriesFilter {
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; font-size: 0.95rem; min-width: 200px;
}
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.product-card {
  background: var(--surface); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .img-wrap {
  height: 240px; background: #fff; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.product-card img { max-height: 90%; max-width: 90%; object-fit: contain; transition: transform 0.3s; }
.product-card:hover img { transform: scale(1.05); }
.product-card .info { padding: 16px; }
.product-card .series { font-size: 0.75rem; color: var(--primary-dark); font-weight: 600; margin-bottom: 6px; }
.product-card h4 { font-size: 0.95rem; font-weight: 600; line-height: 1.35; margin-bottom: 10px; }
.product-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product-card .tag {
  font-size: 0.72rem; color: var(--text-muted); background: var(--bg);
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border);
}
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.price { font-weight: 700; color: var(--primary-dark); font-size: 1.05rem; }
.price-note { font-size: 0.7rem; color: var(--text-muted); }

/* YUMITEE 官方热销 */
.yumitee-section { background: linear-gradient(180deg, #f0f9ff, #ecfeff); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.yumitee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.yumitee-card {
  background: var(--surface); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.yumitee-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.yumitee-card a { text-decoration: none; color: inherit; display: block; }
.yumitee-card .img-wrap {
  height: 240px; background: #fff; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.yumitee-card img { max-height: 90%; max-width: 90%; object-fit: contain; transition: transform 0.3s; }
.yumitee-card:hover img { transform: scale(1.05); }
.yumitee-card .info { padding: 16px; }
.yumitee-card .series { font-size: 0.75rem; color: var(--primary-dark); font-weight: 600; margin-bottom: 6px; }
.yumitee-card h4 { font-size: 0.95rem; font-weight: 600; line-height: 1.35; margin-bottom: 10px; }

.modal-price { color: var(--primary-dark); font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pagination button {
  min-width: 36px; height: 36px; border: 1px solid var(--border); background: #fff;
  border-radius: 8px; cursor: pointer; color: var(--text);
}
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Contact */
.contact-section { background: linear-gradient(135deg, #e0f2fe, #ecfeff); }
.contact-card {
  max-width: 780px; margin: 0 auto; background: var(--surface); padding: 48px;
  border-radius: 20px; box-shadow: var(--shadow-lg); text-align: center;
}
.contact-card h2 { font-size: 1.75rem; margin-bottom: 14px; }
.contact-card p { color: var(--text-muted); margin-bottom: 10px; }
.contact-card .contact-note { font-size: 0.9rem; color: var(--text-muted); font-style: italic; margin-bottom: 24px; }
.contact-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.contact-links .btn { white-space: nowrap; }

/* Inquiry form */
.inquiry-form { margin-top: 24px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; color: var(--text);
  font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.form-group textarea { resize: vertical; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.form-status { min-height: 1.2em; font-size: 0.9rem; margin-bottom: 8px; }
.form-status.error { color: #dc2626; }
.form-status.success { color: #059669; }
.form-tip { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* Footer */
.site-footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 28px 0; text-align: center; font-size: 0.9rem; }

/* Modal */
.modal { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.65); }
.modal-content {
  position: relative; background: #fff; border-radius: 20px; max-width: 720px; width: 100%;
  max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0,0,0,0.06); font-size: 1.4rem; cursor: pointer; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px; }
.modal-body img { width: 100%; height: auto; border-radius: 12px; background: #f8fafc; }
.modal-info { display: flex; flex-direction: column; justify-content: center; }
.modal-series { color: var(--primary-dark); font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; }
.modal-info h3 { font-size: 1.5rem; margin-bottom: 16px; line-height: 1.3; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.modal-tags .tag { background: var(--bg); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; color: var(--text-muted); }
.modal-contact { color: var(--text-muted); font-size: 0.95rem; }

/* Floating quick contact sidebar */
.quick-contact {
  position: fixed; left: 16px; top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex; flex-direction: column; gap: 14px;
}
.qc-btn {
  position: relative; z-index: 1;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}
.qc-btn svg { width: 26px; height: 26px; fill: currentColor; }
.qc-btn:hover { transform: scale(1.1); box-shadow: 0 8px 22px rgba(0,0,0,0.25); }
.qc-whatsapp { background: #25D366; }
.qc-email { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.qc-btn::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; z-index: -1;
  animation: qcPulse 2.4s ease-out infinite;
}
.qc-email::after { animation-delay: 1.2s; }
@keyframes qcPulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}
.qc-label {
  position: absolute; left: calc(100% + 12px); top: 50%;
  transform: translateY(-50%);
  background: var(--text); color: #fff;
  padding: 7px 12px; border-radius: 8px;
  font-size: 0.8rem; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.qc-btn:hover .qc-label { opacity: 1; }
@media (max-width: 640px) {
  .quick-contact { left: 10px; gap: 10px; }
  .qc-btn { width: 44px; height: 44px; }
  .qc-btn svg { width: 22px; height: 22px; }
  .qc-label { display: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .hero { min-height: 460px; }
  .hero h1 { font-size: 1.9rem; }
  .search-box input { width: 180px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .contact-card { padding: 28px; }
}

/* Mobile nav expanded menu */
@media (max-width: 640px) {
  .main-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px; gap: 14px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open a { font-size: 1rem; }
}

/* Nav active state */
.main-nav a.active { color: var(--primary); font-weight: 700; }

/* ===== News page ===== */
.news-hero {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff; padding: 72px 0 56px; text-align: center;
}
.news-hero h1 { font-size: 2.25rem; margin-bottom: 10px; }
.news-hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }

.news-section { padding: 56px 0 72px; }
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.news-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-cat {
  align-self: flex-start; font-size: 0.75rem; font-weight: 600;
  color: var(--primary-dark); background: rgba(20,184,166,0.12);
  padding: 3px 10px; border-radius: 999px;
}
.news-title { font-size: 1.05rem; line-height: 1.4; margin: 12px 0 8px; }
.news-title a { color: var(--text); text-decoration: none; }
.news-title a:hover { color: var(--primary); }
.news-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.news-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.news-date { font-size: 0.8rem; color: var(--text-muted); }
.news-more { font-size: 0.85rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.news-more:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .news-hero { padding: 48px 0 36px; }
  .news-hero h1 { font-size: 1.7rem; }
  .news-section { padding: 40px 0 56px; }
  .news-grid { grid-template-columns: 1fr; }
}

/* ===== Article page ===== */
.article-page { padding: 48px 0 72px; }
.article-container { max-width: 800px; }
.article-header { margin-bottom: 32px; }
.article-back { display: inline-block; margin-bottom: 16px; color: var(--primary); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.article-back:hover { text-decoration: underline; }
.article-header h1 { font-size: 2rem; line-height: 1.3; margin: 14px 0 12px; }
.article-meta { display: flex; gap: 10px; align-items: center; color: var(--text-muted); font-size: 0.88rem; }
.article-content { font-size: 1rem; line-height: 1.85; color: var(--text); }
.article-lead { font-size: 1.1rem; color: var(--text); font-weight: 500; }
.article-content h2 { font-size: 1.45rem; margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.article-content h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.article-content p { margin-bottom: 16px; }
.article-content ul { margin: 0 0 16px 20px; }
.article-content li { margin-bottom: 6px; }
.article-figure { margin: 24px 0; }
.article-figure img { width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.article-figure figcaption { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; }
.article-cta {
  margin-top: 40px; padding: 28px; border-radius: 16px; text-align: center;
  background: linear-gradient(135deg, rgba(20,184,166,0.1), rgba(20,184,166,0.04));
  border: 1px solid rgba(20,184,166,0.3);
}
.article-cta p { margin-bottom: 18px; }
.related-products { margin-top: 56px; }
.related-products h2 { font-size: 1.4rem; margin-bottom: 20px; }
.related-products .news-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

@media (max-width: 640px) {
  .article-page { padding: 32px 0 48px; }
  .article-header h1 { font-size: 1.55rem; }
}
