/* ===========================================================
   赤峰腾云钢铁贸易有限公司 - 官网样式
   设计语言：苹果式极简骨架 + 腾云 logo 配色（绿 #4e8a10 / 黄 #f0c050）
   磨砂导航 / 超大标题 / 胶囊按钮 / 深绿渐变替代纯黑
   =========================================================== */
:root {
  --black: #000;
  --near-black: #0c1405;          /* 深绿黑，替代纯黑 */
  --white: #fff;
  --gray-bg: #f4f7ee;             /* 带绿调的浅底 */
  --card-bg: #fff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #6f6f75;
  --on-dark: #f5f7f0;
  --on-dark-2: #b9c5a5;
  --green: #45770e;               /* logo 绿（加深版：白字/白底可读，对比度 ≥5） */
  --green-hover: #3a640b;
  --green-light: #a8d65f;         /* 深底上的浅绿 */
  --yellow: #f0c050;              /* logo 黄，小面积点缀 */
  --yellow-bg: #fdf3d0;
  --yellow-text: #7a5c00;
  --line: #dcd6c8;
  --line-green: #e2e9d2;
  --radius: 18px;
  --nav-h: 52px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background: var(--white); font-size: 19px; line-height: 1.47059;
  letter-spacing: -.02em; -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.015em; line-height: 1.07; color: var(--text); }
p { margin: 0; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- 磨砂导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0,0,0,.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; opacity: .85; }
.brand .brand-logo { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--on-dark); font-size: 14px; font-weight: 400; opacity: .8; letter-spacing: 0; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links a.active { opacity: 1; color: var(--green-light); }
.nav-phone { opacity: 1 !important; font-weight: 500 !important; }
.menu-btn { display: none; background: none; border: 0; color: var(--on-dark); font-size: 20px; cursor: pointer; opacity: .8; }

/* ---------------- 排版组件 ---------------- */
.hero {
  position: relative;
  background-color: var(--near-black);
  background-image: url("../img/hero-warehouse.jpg");
  background-size: cover;
  background-position: center 62%;
  color: var(--on-dark); text-align: center; padding: 110px 0 100px;
  isolation: isolate; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,14,3,.55) 0%, rgba(10,17,4,.68) 55%, rgba(8,14,3,.87) 100%);
}
.hero h1 { text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.hero .tagline { text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.hero h1 { color: var(--on-dark); font-size: clamp(44px, 6.8vw, 84px); font-weight: 600; letter-spacing: -.025em; line-height: 1.06; max-width: 820px; margin: 0 auto; }
.hero .tagline { color: var(--on-dark-2); font-size: clamp(21px, 2.4vw, 30px); font-weight: 400; line-height: 1.38; max-width: 680px; margin: 24px auto 0; letter-spacing: -.01em; }
.hero-links { display: flex; gap: 32px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 34px; }

/* 苹果式：文字链接 + 胶囊按钮（换 logo 绿） */
.tlink { color: var(--green); font-size: 19px; }
.tlink::after { content: " ›"; }
.tlink:hover { text-decoration: underline; }
.tlink-light { color: var(--white); font-size: 19px; }
.tlink-light::after { content: " ›"; }
.tlink-light:hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 980px; background: var(--green); color: #fff;
  font-size: 19px; font-weight: 400; border: 0; cursor: pointer;
  transition: background .2s; letter-spacing: -.02em;
}
.btn:hover { background: var(--green-hover); text-decoration: none; color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 16px; }
.btn-light { background: var(--white); color: var(--text); }
.btn-light:hover { background: #eef2e4; color: var(--text); }

/* ---------------- 区块（渐变替代纯色） ---------------- */
.section { padding: 100px 0; }
.section.white { background: var(--white); }
.section.gray { background: linear-gradient(180deg, #f8faf3 0%, #edf3e3 100%); }
.section.dark {
  position: relative;
  background-color: var(--near-black);
  background-image: url("../img/steel-texture.jpg");
  background-size: cover;
  background-position: center;
  color: var(--on-dark);
  isolation: isolate; overflow: hidden;
}
.section.dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,17,4,.80) 0%, rgba(12,20,5,.90) 100%);
}
.section.dark h2, .section.dark h3 { color: var(--on-dark); }

.sec-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.sec-head h2 { font-size: clamp(34px, 4.6vw, 56px); }
.sec-head .sub { color: var(--text-2); font-size: 21px; line-height: 1.42; margin-top: 16px; letter-spacing: -.01em; }
.section.dark .sec-head .sub { color: var(--on-dark-2); }
.label { display: block; font-size: 15px; font-weight: 600; color: var(--green); margin-bottom: 12px; letter-spacing: .02em; }
.section.dark .label { color: var(--green-light); }

/* ---------------- 卡片 ---------------- */
.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); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--card-bg); border: 1px solid var(--line-green);
  border-radius: var(--radius); padding: 40px 34px;
  box-shadow: 0 2px 14px rgba(60, 84, 24, .06);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(60, 84, 24, .10); }
.section.white .card { background: #f7f9f1; }
.card h3 { font-size: 26px; margin-bottom: 12px; }
.card p { color: var(--text-2); font-size: 18px; line-height: 1.47; }
.card .ic { font-size: 32px; margin-bottom: 16px; display: block; }

.cat-card { padding: 34px 26px; }
.cat-card .tag { font-size: 13px; font-weight: 600; color: var(--green); letter-spacing: .04em; }
.cat-card h3 { font-size: 23px; margin: 12px 0 10px; }
.cat-card ul { list-style: none; margin: 0; padding: 0; color: var(--text-2); font-size: 16px; }
.cat-card ul li { padding: 5px 0; }

/* 数据条 */
.stats { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; margin-top: 68px; }
.stats .s { padding: 0 46px; border-left: 1px solid rgba(255,255,255,.18); text-align: center; }
.stats .s:first-child { border-left: 0; }
.stats .s strong { display: block; font-size: clamp(36px, 4.6vw, 54px); font-weight: 600; color: var(--on-dark); letter-spacing: -.02em; line-height: 1.1; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.stats .s span { font-size: 14px; color: var(--on-dark-2); }

/* 规格表 / 现货速查表 */
.spec-table { width: 100%; border-collapse: collapse; font-size: 19px; }
.spec-table th { text-align: left; font-weight: 600; color: var(--text-3); font-size: 14px; letter-spacing: .04em; padding: 0 16px 14px; border-bottom: 1px solid var(--line); }
.spec-table td { padding: 20px 16px; border-bottom: 1px solid var(--line-green); color: var(--text); vertical-align: top; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table .pname { font-weight: 600; }
.section.dark .spec-table th { color: var(--on-dark-2); border-color: rgba(255,255,255,.2); }
.section.dark .spec-table td { color: var(--on-dark); border-color: rgba(255,255,255,.14); }

/* 现货状态徽章（logo 黄点缀） */
.badge-stock {
  display: inline-block; background: var(--yellow-bg); color: var(--yellow-text);
  border: 1px solid #eed58e; border-radius: 980px;
  font-size: 14px; font-weight: 600; padding: 4px 14px; white-space: nowrap;
}

/* 钢厂标签 */
.mills { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }
.mill {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  border-radius: 980px; padding: 13px 32px; font-size: 21px; font-weight: 500; color: var(--on-dark);
}
.section.white .mill, .section.gray .mill { background: var(--white); border-color: var(--line-green); color: var(--text); }

/* 行情 */
.ticker {
  background: linear-gradient(160deg, #141f08 0%, #243b0d 100%);
  border-radius: var(--radius); padding: 10px 36px; max-width: 800px; margin: 0 auto;
  box-shadow: 0 10px 30px rgba(30, 50, 10, .18);
}
.ticker .row { display: flex; justify-content: space-between; gap: 20px; padding: 19px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 19px; color: var(--on-dark); }
.ticker .row:last-child { border-bottom: 0; }
.ticker .v { color: var(--on-dark-2); }
.note-sm { font-size: 15px; color: var(--text-3); margin-top: 16px; }
.note { background: var(--yellow-bg); border: 1px solid #eed58e; color: var(--yellow-text); border-radius: 12px; padding: 15px 20px; font-size: 16px; margin-bottom: 30px; }

/* CTA 区块（深绿渐变，替代纯黑） */
.cta {
  background: linear-gradient(120deg, #14210a 0%, #2e4d10 55%, #4e8a10 100%);
  color: var(--on-dark); text-align: center; padding: 92px 0; border-radius: 0;
}
.cta h2 { color: var(--on-dark); font-size: clamp(32px, 4.4vw, 52px); max-width: 700px; margin: 0 auto; }
.cta .sub { color: rgba(245,247,240,.75); font-size: 21px; margin-top: 18px; }
.cta-links { display: flex; gap: 32px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------------- 内页 ---------------- */
.page-hero { background: linear-gradient(180deg, #f8faf3 0%, #edf3e3 100%); text-align: center; padding: 80px 0 72px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 64px); }
.page-hero .sub { color: var(--text-2); font-size: 21px; margin-top: 16px; }
.breadcrumb { font-size: 14px; color: var(--text-3); padding: 16px 0; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--text); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.prose p { font-size: 21px; line-height: 1.5; color: var(--text); margin-bottom: 22px; letter-spacing: -.01em; }
.prose h3 { font-size: 27px; margin: 46px 0 18px; }

.info-box { background: #f7f9f1; border: 1px solid var(--line-green); border-radius: var(--radius); padding: 38px; }
.info-box h3 { font-size: 23px; margin-bottom: 22px; }
.info-box .item { display: flex; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line-green); font-size: 17px; }
.info-box .item:last-child { border-bottom: 0; }
.info-box .k { color: var(--text-3); min-width: 96px; flex-shrink: 0; }
.info-box .v { color: var(--text); }

.toc { background: #f7f9f1; border: 1px solid var(--line-green); border-radius: 12px; padding: 20px 26px; margin-bottom: 40px; font-size: 16px; }
.toc a { display: inline-block; margin: 6px 22px 6px 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line-green); padding: 32px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { font-size: 23px; margin-bottom: 12px; }
.faq-item p { color: var(--text-2); font-size: 18px; }

/* 表单 */
.form-grid { display: grid; gap: 22px; max-width: 540px; }
.form-grid label { font-size: 15px; color: var(--text-2); display: block; margin-bottom: 8px; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 18px; color: var(--text); background: #fff;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { outline: none; border-color: var(--green); }

.map-ph { background: #f7f9f1; border: 1px solid var(--line-green); border-radius: var(--radius); padding: 60px 24px; text-align: center; color: var(--text-2); font-size: 16px; line-height: 1.9; }

/* 询价表单结果提示 */
.form-result { margin-top: 18px; font-size: 16px; color: var(--green); line-height: 1.55; }
.form-result[hidden] { display: none; }
textarea.inq-fallback { display: block; width: 100%; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 15px; color: var(--text); background: #fff; min-height: 120px; resize: vertical; }

.qual-list { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.qual { background: #f7f9f1; border: 1px solid var(--line-green); border-radius: var(--radius); padding: 32px; }
.qual strong { display: block; font-size: 21px; margin-bottom: 8px; }
.qual small { color: var(--text-2); font-size: 16px; }
.qual .badge { display: inline-block; font-size: 13px; font-weight: 600; color: var(--green); margin-bottom: 12px; }

/* ---------------- 苹果式页脚（浅绿灰底 + 小字） ---------------- */
.site-footer { background: #f2f5ea; color: var(--text-2); font-size: 13px; line-height: 1.6; padding: 46px 0 32px; border-top: 1px solid var(--line-green); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.2fr .8fr 1fr; gap: 34px; }
.site-footer h4 { color: var(--text); font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.site-footer p { margin: 0 0 9px; font-size: 13px; }
.site-footer a { color: #424245; font-size: 13px; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.nap p { margin: 0 0 7px; }
.footer-brand { font-size: 13px; color: var(--text-2); margin-bottom: 12px !important; display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 22px; width: auto; }
.footer-bottom { border-top: 1px solid var(--line-green); margin-top: 28px; padding-top: 18px; font-size: 13px; color: var(--text-3); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* 实拍照片画廊 */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); display: block; box-shadow: 0 4px 18px rgba(60, 84, 24, .10); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 76px 0; }
  .spec-table { font-size: 17px; }
  .spec-table td { padding: 16px 12px; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(0,0,0,.94); backdrop-filter: blur(20px);
    flex-direction: column; gap: 0; padding: 10px 0; display: none; align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px 22px; font-size: 16px; opacity: 1; }
  .menu-btn { display: block; }
  .grid-2, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .qual-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 60px; background-position: center 38%; }
  .section.dark { background-attachment: scroll; }
  .stats .s { padding: 0 24px; }
  .stats .s strong { font-size: 34px; }
  .section { padding: 64px 0; }
  .card { padding: 32px 26px; }
  .spec-table { font-size: 16px; display: block; overflow-x: auto; white-space: nowrap; }
  .spec-table td, .spec-table th { padding: 14px 12px; }
}
