/* ===== 河南辉腾化工产品销售有限公司 官网样式 · 红金中国红 ===== */
:root {
  --red: #b81c22;          /* 主色：中国红 */
  --red-dark: #8e1116;
  --red-deep: #5c0a0d;
  --gold: #c9a227;         /* 点缀：金 */
  --gold-light: #e6c766;
  --ink: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #fdf7f3;
  --border: #ecdfd8;
  --radius: 12px;
  --maxw: 1180px;
  --shadow: 0 10px 30px rgba(140, 20, 24, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 720px; }
.center { text-align: center; }
.lead { font-size: 17px; color: var(--muted); }
.lead.center { text-align: center; max-width: 780px; margin: 0 auto 28px; }

/* 按钮 */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: .18s;
  letter-spacing: .5px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(184,28,34,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(184,28,34,.36); text-decoration: none; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #4a3606;
}
.btn-gold:hover { transform: translateY(-2px); text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.14); text-decoration: none; }

/* 顶部导航 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 2px solid var(--gold);
  backdrop-filter: blur(6px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 21px; font-weight: 900; color: var(--red); letter-spacing: 1px;
}
.brand .logo-mark {
  width: 40px; height: 40px; border-radius: 9px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: var(--gold-light); display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 900; letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(184,28,34,.3);
}
.brand .brand-sub { font-size: 11px; font-weight: 600; color: var(--gold); letter-spacing: 2px; display: block; line-height: 1; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: var(--red); text-decoration: none; }
.nav-links a.active { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.nav-toggle { display: none; background: none; border: none; font-size: 27px; color: var(--red); cursor: pointer; }

/* 首屏 */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 15%, rgba(230,199,102,.20) 0%, transparent 45%),
    linear-gradient(135deg, var(--red-deep) 0%, var(--red-dark) 55%, var(--red) 100%);
  color: #fff;
  padding: 96px 0;
  text-align: center;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}
.hero-small { padding: 58px 0; }
.hero h1 { font-size: 40px; margin: 0 0 16px; line-height: 1.28; font-weight: 900; letter-spacing: 1px; }
.hero h1 .hl { color: var(--gold-light); }
.hero-sub { font-size: 18px; opacity: .94; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero-tags span {
  font-size: 13px; padding: 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(230,199,102,.5); color: var(--gold-light);
}

/* 区块 */
.section { padding: 68px 0; }
.section-tight { padding: 20px 0 46px; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 29px; text-align: center; margin: 0 0 34px; font-weight: 800; }
.section-title::after {
  content: ""; display: block; width: 54px; height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  margin: 12px auto 0; border-radius: 2px;
}

/* 网格 */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 卡片 */
.card, .product-card, .product-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: .2s; position: relative;
}
.card:hover, .product-card:hover, .product-item:hover {
  box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--gold);
}
.card-icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--gold-light); display: flex; align-items: center;
  justify-content: center; font-size: 22px; font-weight: 900; margin-bottom: 14px;
}
.card h3, .product-card h3, .product-item h3 { margin: 0 0 8px; font-size: 18px; color: var(--red-dark); }
.card p, .product-item p { margin: 0; color: var(--muted); font-size: 14px; }
.product-card { display: block; color: var(--ink); border-top: 3px solid var(--gold); }
.product-card:hover { text-decoration: none; }
.product-card .pc-en { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: 1px; display: block; margin-bottom: 4px; }

.link-ask {
  display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14px;
  color: var(--red);
}
.link-ask::after { content: " →"; }

/* 产品分类 */
.product-cat { margin-bottom: 46px; }
.product-cat > .section-title { font-size: 23px; margin-bottom: 24px; }
.product-item { border-left: 4px solid var(--gold); }

/* 数据 */
.stats { text-align: center; }
.stat-num { font-size: 40px; font-weight: 900; color: var(--red); line-height: 1.2; }
.stat-num span { font-size: 22px; color: var(--gold); }
.stat-label { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* 资质背书 */
.honor-list { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.honor {
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--red);
  border-radius: 10px; padding: 16px 22px; font-weight: 700; color: var(--red-dark);
  box-shadow: 0 4px 14px rgba(140,20,24,.06);
}
.honor .h-sub { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }

/* 表单 */
.contact-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; max-width: 660px; margin: 0 auto; box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(184,28,34,.12);
}
.field textarea { resize: vertical; }
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.form-msg { margin: 12px 0 0; font-size: 14px; min-height: 18px; }
.form-msg.ok { color: #047857; }
.form-msg.err { color: var(--red); }
#submitBtn[disabled] { opacity: .6; cursor: not-allowed; }

/* 联系信息 */
.contact-info {
  margin-top: 34px; padding: 24px; background: var(--bg-alt);
  border-radius: var(--radius); border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
}
.contact-info h3 { margin-top: 0; color: var(--red-dark); }
.contact-info .tip { color: var(--muted); font-size: 13px; }

/* 页脚 */
.site-footer { background: var(--red-deep); color: #f3dede; padding: 46px 0 22px; border-top: 4px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer .brand { color: #fff; font-size: 20px; }
.site-footer h4 { color: var(--gold-light); margin: 0 0 10px; }
.site-footer a { color: #f0c9c9; }
.site-footer p { margin: 4px 0; font-size: 14px; }
.copyright { text-align: center; color: #d9a9a9; font-size: 13px; border-top: 1px solid rgba(230,199,102,.25); margin-top: 26px; padding-top: 16px; }

/* 响应式 */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 27px; }
  .hero { padding: 66px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 2px solid var(--gold);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; border-top: 1px solid var(--border); }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
}

/* ===== 品牌图片与水印 ===== */
.brand-logo { height: 46px; display: block; width: auto; }
.footer-brand { display: flex; margin-bottom: 6px; }
.footer-logo {
  height: 42px; width: auto; background: #fff;
  padding: 8px 12px; border-radius: 10px; display: inline-block;
}
.hero-watermark {
  position: absolute; right: 3%; top: 50%;
  transform: translateY(-52%);
  width: 330px; opacity: .25;
  pointer-events: none; user-select: none;
}
@media (max-width: 900px) {
  .hero-watermark { width: 190px; opacity: .16; }
  .brand-logo { height: 38px; }
}
@media (max-width: 640px) {
  .hero-watermark { display: none; }
  .footer-logo { height: 36px; padding: 6px 10px; }
}

/* ===== 静态站补充样式 ===== */
.home-contact {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.draft-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
}
.draft-box[hidden] { display: none; }

.draft-tip {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink);
}

.draft-text {
  width: 100%;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  resize: vertical;
}

.draft-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .home-contact .btn { width: 100%; }
  .draft-actions .btn { width: 100%; }
}

/* 直接联系卡片（红框优先展示） */
.direct-contact { margin-bottom: 40px; }
.direct-tip { text-align: center; color: #666; margin: 6px 0 22px; font-size: 15px; }
.direct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.direct-card {
  border: 2px solid var(--red);
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #fff7f3);
  box-shadow: 0 6px 18px rgba(184, 28, 34, 0.08);
}
.direct-label {
  display: block;
  font-size: 14px;
  color: #8e1116;
  font-weight: 700;
  letter-spacing: 1px;
}
.direct-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #b81c22;
  margin: 10px 0 6px;
  text-decoration: none;
  word-break: break-all;
  line-height: 1.3;
}
a.direct-value:hover { color: #8e1116; }
.direct-sub { display: block; font-size: 12px; color: #999; }
.wechat-qr-box { margin: 24px auto 0; max-width: 230px; text-align: center; }
.wechat-qr-img {
  width: 100%;
  display: block;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.wechat-qr-name {
  font-weight: 800;
  color: #b81c22;
  margin: 10px 0 2px;
  font-size: 16px;
}
@media (max-width: 640px) {
  .direct-grid { grid-template-columns: 1fr; }
}

/* ===== 产品分类目录 ===== */
.page-slimhead { text-align: center; margin: 2px 0 20px; }
.page-slimhead h1 { font-size: 23px; color: var(--red-dark); margin: 0; letter-spacing: 2px; }

/* 分类墙（紧凑精致，一屏看全） */
.cat-wall {
  display: grid; gap: 12px;
  grid-template-columns: repeat(5, 1fr);
}
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 14px 14px 11px; background: #fff;
  border: 1px solid #f0dcae; border-radius: 12px; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.cat-card:hover {
  transform: translateY(-4px); border-color: var(--red);
  box-shadow: 0 12px 24px rgba(184, 28, 34, 0.14);
  text-decoration: none;
}
.cat-ico {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; background: linear-gradient(135deg, #fdeceb, #fdf6e3);
  border: 1px solid #f3ddc4;
}
.cat-body { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.cat-name {
  font-size: 15px; font-weight: 800; color: #5c0a0d; line-height: 1.3;
}
.cat-count {
  font-size: 11px; color: #8e1116; background: #fdecec;
  border: 1px solid #f6d9d9; padding: 1px 8px; border-radius: 999px; font-weight: 700;
}
.cat-go { font-size: 12px; color: var(--gold); font-weight: 700; margin-top: auto; }
.cat-card:hover .cat-go { color: var(--red); }

/* 分类详情页（紧凑头部） */
.back-link { display: inline-block; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.back-link:hover { color: var(--red); text-decoration: none; }
.cat-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.cat-head { display: flex; align-items: center; gap: 10px; }
.cat-head-ico {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; background: linear-gradient(135deg, #fdeceb, #fdf6e3);
  border: 1px solid #f3ddc4;
}
.cat-head h1 { font-size: 21px; color: var(--red-dark); margin: 0 0 2px; }
.cat-sub { margin: 0; font-size: 12.5px; color: var(--muted); }
.search-box {
  position: relative; flex: 0 1 260px; margin-left: auto;
}
.search-box input {
  width: 100%; padding: 9px 12px 9px 34px;
  border: 2px solid var(--gold); border-radius: 999px;
  font-size: 13px; font-family: inherit; background: #fff;
}
.search-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 13px; opacity: .6;
}
.search-box input:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(184, 28, 34, 0.12);
}
.search-meta { font-size: 12px; color: var(--muted); margin: 0 0 10px; }

/* 商品列表：每行 4 列，小而精致 */
.product-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(4, 1fr);
}
.plist-item {
  display: block; padding: 8px 11px;
  border: 1px solid var(--border); border-left: 3px solid var(--red);
  border-radius: 6px; font-size: 13px; color: var(--ink);
  background: #fff; transition: .15s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plist-item:hover {
  text-decoration: none; border-color: var(--gold); border-left-color: var(--red);
  background: var(--bg-alt); color: var(--red); transform: translateY(-1px);
}
.empty-tip { color: var(--muted); font-size: 15px; }
.catalog-foot { margin-top: 32px; }

@media (max-width: 1100px) { .cat-wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px) {
  .cat-wall { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .cat-wall { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .search-box { flex: 1 1 100%; margin-left: 0; }
}
@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* 首页分类入口红框 */
.cat-entry {
  max-width: 920px; margin: 0 auto; text-align: center;
  border: 2px solid var(--red); border-radius: var(--radius);
  background: linear-gradient(135deg, #fff 0%, #fdf3ef 100%);
  padding: 34px 28px; box-shadow: var(--shadow);
}
.cat-entry h3 { margin: 0 0 8px; font-size: 22px; color: var(--red-dark); }
.cat-entry p { margin: 0 0 18px; color: var(--muted); }
.cat-entry .cat-quick { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.cat-entry .cat-quick a {
  font-size: 13px; padding: 6px 14px; border: 1px solid var(--border);
  border-radius: 999px; color: var(--ink); background: #fff;
}
.cat-entry .cat-quick a:hover { text-decoration: none; border-color: var(--gold); color: var(--red); }
