/* ===== 重庆腾辉酒店用品有限公司（一站式采购） - 企业官网样式 ===== */
/* === Variables & Reset === */
:root {
  --primary: #1B4D7A;
  --primary-light: #2C6FBB;
  --primary-lighter: #4A8FD4;
  --light-bg: #E8F0FE;
  --accent: #C8A84E;
  --accent-hover: #B8952E;
  --white: #FFFFFF;
  --text: #2C3E50;
  --text-light: #7F8C8D;
  --bg-gray: #F5F7FA;
  --border: #E1E8ED;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  padding-top: var(--header-height);
}
a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--primary);
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* === Header === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary) !important;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: bold;
}
.logo-text { line-height: 1.2; }
.logo-text small { font-size: 0.65rem; font-weight: 400; color: var(--text-light); display: block; }

/* Nav */
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.nav a:hover::after,
.nav a.active::after { width: 100%; }
.nav a:hover { color: var(--primary); }
.nav a.active { color: var(--primary); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; background: none; border: none; color: var(--text); }

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0D3B66 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,168,78,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-content { flex: 1; }
.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.7;
}
.hero-image { flex: 1; text-align: center; }
.hero-image img { max-width: 100%; border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #1a1a1a !important;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* === Features / 优势 === */
.features {
  background: var(--bg-gray);
  padding: 60px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 60px; height: 60px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--primary); }
.feature-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* === Categories / 产品分类 === */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.category-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  color: var(--text) !important;
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.category-icon { font-size: 2.5rem; margin-bottom: 12px; }
.category-card h3 { font-size: 1rem; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.category-card p { font-size: 0.8rem; color: var(--text-light); }

/* === Products Grid === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-img-wrap {
  height: 200px;
  overflow: hidden;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-info { padding: 16px; }
.product-category {
  font-size: 0.75rem;
  color: var(--primary-light);
  background: var(--light-bg);
  padding: 2px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
}
.product-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-specs {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }

/* === Product Detail === */
.product-detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0;
}
.product-detail-images {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-gray);
}
.product-detail-images img { width: 100%; }
.product-detail-info h1 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.product-detail-category { margin-bottom: 16px; }
.detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}
.detail-specs {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.detail-specs h3 { font-size: 0.95rem; color: var(--primary); margin-bottom: 12px; }
.detail-specs table { width: 100%; border-collapse: collapse; }
.detail-specs td {
  padding: 8px 12px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.detail-specs td:first-child { font-weight: 600; color: var(--text-light); width: 100px; }
.detail-desc { line-height: 1.8; color: var(--text-light); font-size: 0.95rem; }

/* === About Page === */
.about-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0D3B66 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.about-hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
.about-hero p { opacity: 0.9; font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.about-content { padding: 60px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text h2 { font-size: 1.6rem; color: var(--primary); margin-bottom: 16px; }
.about-text p { margin-bottom: 16px; color: var(--text-light); line-height: 1.8; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.about-stat { text-align: center; }
.about-stat .num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.about-stat .label { font-size: 0.85rem; color: var(--text-light); }

/* === Contact === */
.contact-section { background: var(--bg-gray); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 20px; }
.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 0.9rem; margin-bottom: 2px; }
.contact-item p { font-size: 0.9rem; color: var(--text-light); }
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

/* === Footer === */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .logo { color: var(--white) !important; margin-bottom: 12px; }
.footer-brand .logo-icon { background: var(--accent); color: var(--primary); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; opacity: 0.8; }
.footer h4 { color: var(--accent); margin-bottom: 16px; font-size: 1rem; }
.footer a { color: rgba(255,255,255,0.75) !important; font-size: 0.88rem; display: block; margin-bottom: 10px; }
.footer a:hover { color: var(--accent) !important; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* === Breadcrumb === */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.88rem;
  color: var(--text-light);
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { color: var(--text); }

/* === Page Header === */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0D3B66 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p { opacity: 0.85; }

/* === Filter Bar === */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}
.filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--primary-light); color: var(--primary-light); }
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* === Loading & Empty === */
.loading {
  text-align: center;
  padding: 60px 0;
  color: var(--text-light);
  font-size: 1rem;
}
.loading::before {
  content: '';
  display: block;
  width: 40px; height: 40px;
  margin: 0 auto 16px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--text-light);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }

/* === Responsive === */
@media (max-width: 768px) {
  body { padding-top: 60px; }
  :root { --header-height: 60px; }
  .nav {
    position: fixed;
    top: var(--header-height); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .menu-toggle { display: block; }
  .hero .container { flex-direction: column; text-align: center; }
  .hero-content p { margin: 0 auto 24px; }
  .hero-btns { justify-content: center; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero { padding: 50px 0; }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-detail-wrap { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-img-wrap { height: 150px; }
  .product-info { padding: 10px; }
  .product-info h3 { font-size: 0.85rem; }
  .hero-content h1 { font-size: 1.4rem; }
}
