/* ============================================
   双赢地毯 · 重庆毯绅新材料科技有限公司
   全站样式表 v1.0
   VI色彩：主红#B4141E · 品牌金#A88246 · 暖白#F8F4EE
   ============================================ */

:root {
  --red:       #B4141E;
  --red-dark:  #8A0F17;
  --red-light: #d9303c;
  --gold:      #A88246;
  --gold-light:#C9A052;
  --warm-white:#F8F4EE;
  --bg-light:  #FAFAF8;
  --text-dark: #1a1a1a;
  --text-mid:  #444444;
  --text-light:#888888;
  --border:    #e0dbd3;
  --shadow:    0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --radius:    6px;
  --transition:0.3s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
       color: var(--text-dark); background: #fff; line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   NAV / HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 2px solid var(--red);
  box-shadow: 0 2px 12px rgba(180,20,30,0.10);
  transition: var(--transition);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 40px;
}
.logo-wrap { display: flex; align-items: center; gap: 14px; }
.logo-wrap img { height: 48px; width: auto; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .cn { font-size: 18px; font-weight: 700; color: var(--red); letter-spacing: 1px; }
.logo-text .en { font-size: 11px; color: var(--text-light); letter-spacing: 0.5px; }

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 16px; font-size: 14px; font-weight: 500;
  color: var(--text-dark); border-radius: var(--radius);
  transition: var(--transition); white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--red); background: rgba(180,20,30,0.06);
}
.main-nav a .nav-en { display: block; font-size: 10px; color: var(--text-light); }

/* Language Switch */
.lang-switch {
  display: flex; align-items: center; gap: 2px;
  background: var(--warm-white); border-radius: 20px;
  padding: 4px 6px; margin-left: 16px;
}
.lang-switch button {
  border: none; background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 600; padding: 4px 10px;
  border-radius: 16px; transition: var(--transition); color: var(--text-mid);
}
.lang-switch button.active {
  background: var(--red); color: #fff;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border: none; background: none;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--red); border-radius: 2px; transition: var(--transition);
}
.mobile-nav {
  display: none; flex-direction: column;
  background: #fff; padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
}
.mobile-nav a {
  padding: 12px 0; font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--border); color: var(--text-dark);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--red); }

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .main-nav { display: none; }
  .mobile-nav.open { display: flex; }
  .header-inner { padding: 0 20px; }
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-top: 72px;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1s ease;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(140,10,20,0.72) 0%, rgba(0,0,0,0.40) 60%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: #fff;
  max-width: 800px; padding: 0 24px;
}
.hero-badge {
  display: inline-block; padding: 6px 20px;
  border: 1px solid rgba(168,130,70,0.8); border-radius: 20px;
  font-size: 12px; color: var(--gold-light); letter-spacing: 2px;
  margin-bottom: 20px; text-transform: uppercase;
}
.hero-content h1 {
  font-size: clamp(32px, 6vw, 64px); font-weight: 800;
  line-height: 1.2; margin-bottom: 8px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.hero-content h2 {
  font-size: clamp(14px, 2.5vw, 20px); font-weight: 400;
  opacity: 0.9; margin-bottom: 28px; letter-spacing: 1px;
}
.hero-content p {
  font-size: clamp(14px, 2vw, 17px); opacity: 0.85;
  margin-bottom: 36px; line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 36px; background: var(--red); color: #fff;
  border-radius: var(--radius); font-size: 15px; font-weight: 600;
  transition: var(--transition); border: 2px solid var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }
.btn-outline {
  padding: 14px 36px; background: transparent; color: #fff;
  border-radius: var(--radius); font-size: 15px; font-weight: 600;
  border: 2px solid rgba(255,255,255,0.7); transition: var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* Slide Dots */
.slide-dots {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.slide-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition);
  border: none;
}
.slide-dot.active { background: var(--gold-light); width: 24px; border-radius: 4px; }

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { padding: 80px 0; }
.section-alt { background: var(--warm-white); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; color: var(--gold);
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(24px, 4vw, 38px); font-weight: 800;
  color: var(--text-dark); margin-bottom: 8px; line-height: 1.2;
}
.section-header h2 span { color: var(--red); }
.section-header .en-title {
  font-size: 13px; color: var(--text-light); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-divider {
  width: 60px; height: 3px; margin: 0 auto;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 2px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, #c0282f 100%);
  padding: 40px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; text-align: center;
}
.stat-item { padding: 20px; border-right: 1px solid rgba(255,255,255,0.15); }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800; color: #fff;
  line-height: 1; margin-bottom: 6px;
}
.stat-num span { font-size: 0.5em; color: var(--gold-light); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.75); letter-spacing: 1px; }

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card-img {
  height: 220px; overflow: hidden; position: relative;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: #fff;
  font-size: 11px; padding: 3px 10px; border-radius: 3px;
}
.product-card-body { padding: 18px 20px; }
.product-card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text-dark); }
.product-card-body p { font-size: 13px; color: var(--text-mid); line-height: 1.6; }
.product-card-footer {
  padding: 12px 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.product-card-footer .more-link {
  font-size: 13px; color: var(--red); font-weight: 600;
  transition: var(--transition);
}
.product-card-footer .more-link:hover { color: var(--red-dark); }

/* Filter Tabs */
.filter-tabs {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 36px;
}
.filter-tab {
  padding: 8px 22px; border-radius: 24px; font-size: 13px; font-weight: 600;
  border: 2px solid var(--border); background: #fff; color: var(--text-mid);
  cursor: pointer; transition: var(--transition);
}
.filter-tab.active, .filter-tab:hover {
  background: var(--red); border-color: var(--red); color: #fff;
}

/* ============================================================
   PROJECTS / CASES
   ============================================================ */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.project-card {
  position: relative; border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
  height: 280px;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.project-card:hover img { transform: scale(1.05); }
.project-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(140,10,20,0.85) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
}
.project-card-overlay h3 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.project-card-overlay p { color: rgba(255,255,255,0.8); font-size: 13px; }
.project-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--gold); color: #fff;
  font-size: 11px; padding: 4px 12px; border-radius: 3px; font-weight: 600;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: 10px; width: 100%; object-fit: cover; box-shadow: var(--shadow-lg); }
.about-img-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--red); color: #fff; padding: 20px 28px;
  border-radius: 10px; text-align: center; box-shadow: var(--shadow);
}
.about-img-badge .num { font-size: 36px; font-weight: 800; line-height: 1; }
.about-img-badge .lbl { font-size: 12px; opacity: 0.9; margin-top: 4px; }
.about-text h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; color: var(--text-dark); }
.about-text h2 span { color: var(--red); }
.about-text p { font-size: 15px; color: var(--text-mid); line-height: 1.9; margin-bottom: 16px; }
.about-list { margin: 20px 0; }
.about-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.about-list li:last-child { border-bottom: none; }
.about-list .icon { color: var(--red); font-size: 18px; flex-shrink: 0; margin-top: 2px; }

/* Certificate Cards */
.cert-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px; margin-top: 48px;
}
.cert-card {
  background: #fff; border-radius: 10px; padding: 28px 20px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition);
}
.cert-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.cert-icon { font-size: 40px; margin-bottom: 12px; }
.cert-card h4 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.cert-card p { font-size: 12px; color: var(--text-light); }

@media (max-width: 768px) { .about-layout { grid-template-columns: 1fr; } .about-img-badge { right: 0; bottom: 0; } }

/* ============================================================
   NEWS / ARTICLES
   ============================================================ */
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.news-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid var(--border); display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-meta {
  padding: 20px 24px 0;
  display: flex; align-items: center; gap: 10px;
}
.news-tag {
  background: var(--red); color: #fff;
  font-size: 11px; padding: 3px 10px; border-radius: 3px; font-weight: 600;
}
.news-date { font-size: 12px; color: var(--text-light); }
.news-card-body { padding: 14px 24px 20px; flex: 1; }
.news-card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.news-card-body p { font-size: 13px; color: var(--text-mid); line-height: 1.7; }
.news-card-footer {
  padding: 14px 24px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.news-card-footer .read-more {
  font-size: 13px; color: var(--red); font-weight: 600; transition: var(--transition);
}
.news-card-footer .read-more:hover { color: var(--red-dark); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; color: var(--text-dark); }
.info-item {
  display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start;
}
.info-icon {
  width: 44px; height: 44px; background: var(--warm-white);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; border: 1px solid var(--border);
}
.info-text h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.info-text p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* Message Form */
.contact-form-wrap {
  background: #fff; border-radius: 12px; padding: 40px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.contact-form-wrap h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.contact-form-wrap .subtitle { font-size: 13px; color: var(--text-light); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 7px; color: var(--text-mid);
}
.form-group label span { color: var(--red); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; color: var(--text-dark);
  background: var(--bg-light); transition: var(--transition);
  font-family: inherit; outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--red); background: #fff;
  box-shadow: 0 0 0 3px rgba(180,20,30,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; border: none; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: var(--transition); letter-spacing: 1px;
}
.btn-submit:hover { opacity: 0.92; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(180,20,30,0.3); }
.form-success {
  display: none; background: #f0fdf4; border: 1px solid #86efac;
  border-radius: var(--radius); padding: 16px 20px;
  color: #15803d; font-size: 14px; margin-top: 16px; text-align: center;
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(135deg, #1a0406 0%, #2d0a0e 100%);
  color: rgba(255,255,255,0.75); padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-text .cn { color: #fff; font-size: 20px; }
.footer-brand .logo-text .en { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 13px; line-height: 1.8; margin-top: 16px; color: rgba(255,255,255,0.55); }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-col .contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 13px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; font-size: 12px; color: rgba(255,255,255,0.4);
  flex-wrap: wrap; gap: 8px;
}
.footer-gold-line {
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE HERO (内页顶部)
   ============================================================ */
.page-hero {
  margin-top: 72px;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 60%, #c92b32 100%);
  padding: 64px 0 56px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 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-hero h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 800; margin-bottom: 8px; position: relative; }
.page-hero p { font-size: 15px; opacity: 0.8; position: relative; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  margin-top: 16px; font-size: 13px; opacity: 0.7; position: relative;
}
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { opacity: 0.5; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
.fw-700 { font-weight: 700; }
.hidden-cn, .hidden-en { display: none; }
body.lang-en .hidden-en { display: block; }
body.lang-en .hidden-cn { display: none; }
body.lang-cn .hidden-cn { display: block; }
body.lang-cn .hidden-en { display: none; }
body.lang-en .cn-text { display: none; }
body.lang-en .en-text { display: inline; }
.cn-text { display: inline; }
.en-text { display: none; }

/* Scroll to top */
.scroll-top {
  position: fixed; bottom: 36px; right: 36px; z-index: 999;
  width: 44px; height: 44px; background: var(--red); color: #fff;
  border-radius: 50%; border: none; cursor: pointer; font-size: 20px;
  box-shadow: 0 4px 16px rgba(180,20,30,0.35); transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--red-dark); transform: translateY(-3px); }

/* Loading anim */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease both; }
.fade-in-2 { animation: fadeInUp 0.6s 0.15s ease both; }
.fade-in-3 { animation: fadeInUp 0.6s 0.3s ease both; }
