/* ===== 美学大师 MXDS 官网样式 ===== */
:root {
  --primary: #B22222;
  --primary-dark: #8B1A1A;
  --primary-light: #D4453A;
  --gold: #C9A961;
  --text-dark: #222;
  --text-gray: #666;
  --text-light: #999;
  --bg-white: #fff;
  --bg-light: #F7F5F2;
  --bg-gray: #F0EDE8;
  --border: #E5E0D8;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: var(--primary); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 顶部公告栏 ===== */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar span { display: inline-flex; align-items: center; gap: 6px; }

/* ===== 导航栏 ===== */
.navbar {
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img { height: 50px; width: auto; }
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo-text .brand-cn {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}
.nav-logo-text .brand-en {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}
.nav-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 4px;
  transition: all 0.3s;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: rgba(178,34,34,0.06);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
}

/* ===== Hero 首页大图 ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #3a1515 50%, #1a1a1a 100%);
  color: #fff;
  padding: 100px 0;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.hero-content { flex: 1; }
.hero-tag {
  display: inline-block;
  background: rgba(178,34,34,0.2);
  border: 1px solid rgba(201,169,97,0.4);
  color: var(--gold);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 4px;
}
.hero h1 .highlight { color: var(--primary-light); }
.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  letter-spacing: 1px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(178,34,34,0.4);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.hero-logo {
  flex: 0 0 340px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo img {
  width: 100%;
  max-width: 340px;
  filter: drop-shadow(0 10px 40px rgba(178,34,34,0.4));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== 通用 Section ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.section-divider {
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto 20px;
}
.section-desc {
  font-size: 15px;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== 品牌简介 ===== */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-preview-text h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-dark);
}
.about-preview-text p {
  color: var(--text-gray);
  margin-bottom: 16px;
  font-size: 15px;
}
.about-preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.stat-item {
  text-align: center;
  padding: 20px 10px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}
.about-preview-image {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}
.about-preview-image::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  opacity: 0.1;
}
.about-preview-image img {
  max-width: 280px;
  margin-bottom: 20px;
}
.about-preview-image .brand-quote {
  text-align: center;
  color: var(--text-gray);
  font-style: italic;
  font-size: 14px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  width: 100%;
}

/* ===== 产品卡片网格 ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.product-card-image {
  height: 200px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card-image .product-icon {
  font-size: 64px;
  opacity: 0.3;
}
.product-card-image .product-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 1px;
}
.product-card-body { padding: 24px; }
.product-card-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.product-card-body p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}
.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

/* ===== 品牌优势 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-item {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.feature-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(178,34,34,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.feature-item h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.feature-item p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ===== 页面横幅（内页） ===== */
.page-banner {
  background: linear-gradient(135deg, #1a1a1a 0%, #3a1515 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-banner .container { position: relative; }
.page-banner h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 12px;
}
.page-banner p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  letter-spacing: 1px;
}
.breadcrumb {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--gold); }

/* ===== 产品详情页布局 ===== */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.product-gallery {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}
.product-gallery img { max-width: 300px; }
.product-info h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
.product-info .product-cat {
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.product-info .product-desc {
  color: var(--text-gray);
  margin-bottom: 24px;
  font-size: 15px;
}
.product-specs {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.product-specs h4 {
  font-size: 16px;
  margin-bottom: 16px;
}
.spec-list { list-style: none; }
.spec-list li {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.spec-list .spec-label {
  width: 100px;
  color: var(--text-light);
  flex-shrink: 0;
}
.spec-list .spec-value { color: var(--text-dark); }

/* ===== 关于我们页面 ===== */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}
.about-hero-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--text-dark);
}
.about-hero-text p {
  color: var(--text-gray);
  margin-bottom: 16px;
  font-size: 15px;
}
.about-hero-image {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}
.about-hero-image img { max-width: 260px; }

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-year {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.timeline-content {
  background: var(--bg-white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.timeline-content h4 { margin-bottom: 8px; }
.timeline-content p { color: var(--text-gray); font-size: 14px; }

/* ===== 联系我们页面 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info-card {
  background: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius);
}
.contact-info-card h3 {
  font-size: 22px;
  margin-bottom: 24px;
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-item-text h4 {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.contact-item-text p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}
.contact-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form h3 {
  font-size: 22px;
  margin-bottom: 24px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s;
  background: var(--bg-white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.map-placeholder {
  margin-top: 50px;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  border: 2px dashed var(--border);
}
.map-placeholder h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-dark);
}
.map-placeholder p {
  color: var(--text-gray);
  font-size: 14px;
}

/* ===== 底部 ===== */
.footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.6);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand img {
  height: 50px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* ===== 回到顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(178,34,34,0.4);
  z-index: 999;
  border: none;
  font-size: 20px;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .hero .container { flex-direction: column-reverse; text-align: center; }
  .hero-logo { flex: none; margin-bottom: 30px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero h1 { font-size: 36px; }
  .about-preview,
  .about-hero,
  .product-detail-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .top-bar .container { flex-direction: column; gap: 4px; text-align: center; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 28px; letter-spacing: 2px; }
  .section { padding: 50px 0; }
  .section-title { font-size: 24px; }
  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .about-preview-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 26px; }
}
