/* 地板老哥 dibanlaoge.com — SPC锁扣地板企业站 */
:root {
  --ink: #23201b;
  --muted: #6f6a60;
  --wood: #b98a5a;
  --wood-dark: #8f6237;
  --green: #2f5d4a;
  --green-dark: #234738;
  --paper: #f7f4ee;
  --line: #e7e0d4;
  --white: #fff;
  --shadow: 0 12px 40px rgba(35, 32, 27, .10);
  --radius: 14px;
}

* { 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(--ink);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul { list-style: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(35, 32, 27, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; letter-spacing: 1px; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo small { display: block; font-size: 10px; font-weight: 500; letter-spacing: 3px; color: var(--muted); }
.main-nav > ul { display: flex; align-items: center; gap: 6px; }
.main-nav a { display: block; padding: 10px 16px; font-size: 15.5px; font-weight: 600; position: relative; }
.main-nav > ul > li > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--wood); transform: scaleX(0); transition: transform .25s; border-radius: 2px;
}
.main-nav > ul > li:hover > a::after, .main-nav > ul > li.active > a::after { transform: scaleX(1); }
.main-nav a:hover { color: var(--wood-dark); }
.nav-cta {
  background: var(--green); color: #fff !important; border-radius: 999px;
  padding: 10px 22px !important; margin-left: 8px;
}
.nav-cta:hover { background: var(--green-dark); color: #fff !important; }
.nav-cta::after { display: none !important; }
.has-sub { position: relative; }
.sub-nav {
  position: absolute; top: 100%; left: 8px; min-width: 180px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s;
}
.has-sub:hover .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-nav a { padding: 9px 18px; font-weight: 500; font-size: 14.5px; }
.sub-nav a:hover { background: var(--paper); color: var(--wood-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center;
  background: url("/d/file/img/hero.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(24, 22, 17, .78) 0%, rgba(24, 22, 17, .45) 55%, rgba(24, 22, 17, .12) 100%);
}
.hero-inner { position: relative; z-index: 2; color: #fff; padding: 110px 0; max-width: 640px; }
.hero-tag {
  display: inline-block; border: 1px solid rgba(255, 255, 255, .45);
  padding: 6px 16px; border-radius: 999px; font-size: 13.5px; letter-spacing: 2px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.22; font-weight: 800; letter-spacing: 1px; }
.hero h1 .hl { color: #e5b57e; }
.hero .lead { margin: 22px 0 30px; font-size: 17px; color: rgba(255, 255, 255, .88); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px; font-weight: 700; font-size: 15.5px;
  transition: all .25s; border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #3c7a61; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(47, 93, 74, .35); }
.btn-wood { background: var(--wood); color: #fff; }
.btn-wood:hover { background: var(--wood-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-line { border-color: var(--wood); color: var(--wood-dark); }
.btn-line:hover { background: var(--wood); color: #fff; }

.hero-stats {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(6px);
  margin-top: 54px;
}
.hero-stats li { background: rgba(24, 22, 17, .35); padding: 18px 10px; text-align: center; color: #fff; }
.hero-stats b { display: block; font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; color: #e5b57e; }
.hero-stats span { font-size: 13px; color: rgba(255, 255, 255, .75); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--paper); }
.sec-head { max-width: 680px; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--wood-dark); font-weight: 700; letter-spacing: 4px; font-size: 13px; margin-bottom: 12px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--wood); }
.sec-head.center .kicker::after { content: ""; width: 28px; height: 2px; background: var(--wood); }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.3; }
.sec-head p { color: var(--muted); margin-top: 12px; font-size: 16.5px; }

/* ---------- series cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .thumb img { transform: scale(1.06); }
.card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.more { margin-top: 16px; color: var(--wood-dark); font-weight: 700; font-size: 14px; }
.card:hover .more { letter-spacing: 1px; }

.series-card { position: relative; }
.series-card .tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(24, 22, 17, .72); color: #fff; font-size: 12.5px;
  padding: 5px 14px; border-radius: 999px; letter-spacing: 1px;
}

/* ---------- features ---------- */
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feat-item { text-align: center; padding: 34px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: all .3s; }
.feat-item:hover { border-color: var(--wood); transform: translateY(-4px); box-shadow: var(--shadow); }
.feat-item .ico {
  width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(145deg, #f3e7d3, #e9d5b8);
  display: flex; align-items: center; justify-content: center;
}
.feat-item .ico svg { width: 34px; height: 34px; }
.feat-item h3 { font-size: 18px; margin-bottom: 6px; }
.feat-item p { color: var(--muted); font-size: 14px; }

/* ---------- craft banner ---------- */
.craft {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  color: #fff; border-radius: 22px; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
}
.craft-text { padding: 56px 52px; }
.craft-text .kicker { color: #d8c294; }
.craft-text .kicker::before { background: #d8c294; }
.craft-text h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 14px; }
.craft-text p { color: rgba(255, 255, 255, .82); margin-bottom: 22px; }
.craft-list { display: grid; gap: 12px; }
.craft-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: rgba(255, 255, 255, .9); }
.craft-list svg { flex: none; margin-top: 4px; }
.craft-img { height: 100%; min-height: 320px; }
.craft-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- case cards ---------- */
.case-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; display: block; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.case-card:hover img { transform: scale(1.05); }
.case-card .mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(24, 22, 17, .82) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff;
}
.case-card .mask em { font-style: normal; font-size: 12.5px; letter-spacing: 2px; color: #e5b57e; margin-bottom: 6px; }
.case-card .mask h3 { font-size: 20px; }

/* ---------- news cards ---------- */
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .3s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .thumb img { transform: scale(1.06); }
.news-card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.news-card time { color: var(--wood-dark); font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.news-card h3 { font-size: 17.5px; margin: 8px 0; line-height: 1.5; }
.news-card p { color: var(--muted); font-size: 14px; flex: 1; }

/* ---------- cta ---------- */
.cta-band {
  background:
    linear-gradient(rgba(24, 22, 17, .55), rgba(24, 22, 17, .55)),
    url("/d/file/img/news_click.jpg") center / cover no-repeat fixed;
  color: #fff; text-align: center; padding: 96px 0;
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-bottom: 30px; font-size: 17px; }
.cta-phone { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: #e5b57e; letter-spacing: 2px; display: block; margin-bottom: 26px; }

/* ---------- sub banner ---------- */
.sub-banner {
  background:
    linear-gradient(100deg, rgba(24, 22, 17, .72), rgba(24, 22, 17, .35)),
    url("/d/file/img/news_showroom.jpg") center / cover no-repeat;
  color: #fff; padding: 74px 0;
}
.sub-banner h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.sub-banner .crumb { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.sub-banner .crumb a { color: rgba(255, 255, 255, .9); }
.sub-banner .crumb a:hover { color: #e5b57e; }

/* ---------- list ---------- */
.list-main { padding: 70px 0 90px; }
.pager { margin-top: 46px; text-align: center; }
.pager a, .pager span {
  display: inline-block; min-width: 40px; padding: 8px 14px; margin: 0 4px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 14.5px; font-weight: 600;
}
.pager span { background: var(--green); color: #fff; border-color: var(--green); }
.pager a:hover { border-color: var(--wood); color: var(--wood-dark); }

/* ---------- detail ---------- */
.detail { padding: 64px 0 90px; }
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.detail-hero { aspect-ratio: 16 / 9; background: var(--paper); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-body { padding: 44px clamp(24px, 5vw, 64px) 54px; }
.detail-body h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 10px; }
.detail-meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; display: flex; gap: 18px; flex-wrap: wrap; }
.detail-content { font-size: 16px; color: #3a372f; }
.detail-content h2 { font-size: 21px; margin: 34px 0 14px; padding-left: 12px; border-left: 4px solid var(--wood); }
.detail-content p { margin-bottom: 14px; }
.detail-content ul { margin: 0 0 16px 2px; }
.detail-content li { padding-left: 20px; position: relative; margin-bottom: 8px; }
.detail-content li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 8px; border-radius: 2px; background: var(--wood); }
.detail-content table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; }
.detail-content th, .detail-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.detail-content th { background: var(--paper); font-weight: 700; width: 30%; }
.detail-content img { border-radius: 10px; margin: 12px 0; }
.detail-back { margin-top: 40px; }

/* ---------- about page ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; margin-bottom: 60px; }
.about-grid h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 16px; }
.about-grid p { color: #4a463d; margin-bottom: 12px; }
.about-img { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 46px 0 60px; }
.about-stats div { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 12px; }
.about-stats b { display: block; font-size: clamp(22px, 3vw, 32px); color: var(--green); font-weight: 800; }
.about-stats span { font-size: 13.5px; color: var(--muted); }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 50px; }
.contact-info { background: linear-gradient(150deg, var(--green-dark), var(--green)); color: #fff; border-radius: 20px; padding: 44px 42px; }
.contact-info h2 { font-size: 26px; margin-bottom: 8px; }
.contact-info > p { color: rgba(255, 255, 255, .8); margin-bottom: 26px; }
.contact-info ul li { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-info .ci { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; }
.contact-info .ci svg { width: 20px; height: 20px; }
.contact-info b { display: block; font-size: 16.5px; }
.contact-info span { color: rgba(255, 255, 255, .78); font-size: 14.5px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 44px 42px; }
.contact-form h2 { font-size: 24px; margin-bottom: 24px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font: inherit; font-size: 15px; background: var(--paper); transition: border .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--wood); background: #fff; }
.contact-form .btn { margin-top: 22px; width: 100%; justify-content: center; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- footer ---------- */
.site-footer { background: #1c1913; color: #b9b1a4; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 46px; }
.footer-brand .logo { color: #f2ede4; margin-bottom: 14px; }
.footer-brand .logo small { color: #8a8175; }
.footer-brand p { font-size: 14px; line-height: 1.9; }
.site-footer h4 { color: #f2ede4; font-size: 16px; margin-bottom: 16px; letter-spacing: 1px; }
.site-footer li { margin-bottom: 10px; font-size: 14px; }
.site-footer li a:hover { color: #e5b57e; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #8a8175; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4, .feat, .about-stats { grid-template-columns: repeat(2, 1fr); }
  .craft, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; background: #fff;
    transform: translateY(-130%); transition: transform .35s;
    box-shadow: 0 20px 40px rgba(35, 32, 27, .15); z-index: 99;
  }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 12px 5% 22px; gap: 0; }
  .main-nav a { padding: 13px 4px; border-bottom: 1px solid var(--paper); }
  .sub-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; display: none; }
  .has-sub:hover .sub-nav { display: block; }
  .nav-cta { display: inline-block; margin: 12px 0 0; text-align: center; }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .grid-3, .grid-4, .feat, .grid-2, .about-stats, .contact-form .row { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .hero-inner { padding: 80px 0; }
  .craft-text { padding: 38px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .detail-body { padding: 30px 22px 40px; }
}
