/* ============================================================
   JX Steel Pipe — site framework stylesheet
   Palette merged from octalsteel.com (#0b75b6) & threewaysteel.com (#1a3d55)
   Style: plain, formal, steady — an established B2B factory look.
   ============================================================ */

:root {
  --blue: #0b75b6;          /* primary: links, buttons */
  --blue-dark: #005da2;     /* hover */
  --navy: #1a3d55;          /* header/footer/headings */
  --navy-soft: #2b4a63;
  --text: #545454;          /* body text */
  --text-dark: #333333;
  --gray-bg: #f5f5f5;       /* alternate section background */
  --line: #e0e0e0;
  --line-soft: #ececec;
  --ph-bg: #eef1f4;         /* photo placeholder background */
  --ph-line: #b9c6d0;
  --ph-text: #8a97a3;
  --mark: #fff3c4;          /* fill-in placeholder highlight */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: #ffffff;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- fill-in placeholders (挖空处) ---------- */
.ph {
  background: var(--mark);
  padding: 0 2px;
  border-radius: 2px;
  color: #5a4a00;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- photo placeholders (留白处) ---------- */
.photo-ph {
  background: var(--ph-bg);
  border: 1px dashed var(--ph-line);
  color: var(--ph-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px;
  min-height: 100px;
}
.photo-ph.banner { min-height: 200px; }
.photo-ph.card { min-height: 180px; }
.photo-ph.small { min-height: 120px; }
.photo-ph.cert { min-height: 220px; width: 170px; }

/* ---------- sample placeholder images (示例图, 待替换) ---------- */
.img-ph { position: relative; overflow: hidden; display: block; background: var(--ph-bg); }
.img-ph.card { min-height: 180px; }
.img-ph.banner { min-height: 300px; }
.img-ph.small { min-height: 120px; }
.img-ph.shorter { min-height: 130px; }        /* 首页个别产品图: 缩小 */
.img-ph.tall { min-height: 180px; }           /* 产品子页底部照片: 加高 */
.img-ph.push-down { margin-top: 56px; }       /* 关于页工厂照: 与正文顶部对齐 */
.img-ph.contain img { object-fit: contain; }   /* 完整显示不裁切 */
.img-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-ph::after {
  content: "SAMPLE · 示例图(待替换)";
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: rgba(26,61,85,.88); color: #ffffff;
  font-size: 11px; line-height: 1.4; padding: 2px 7px; border-radius: 2px;
}
.img-ph.real::after { display: none; }        /* 真实文件: 无示例角标 */
.img-ph.cert { min-height: 250px; width: 185px; }
.img-ph.cert img { object-fit: contain; }     /* 证件类: 完整展示不裁切 */

/* ---------- 证件点击放大 (lightbox) ---------- */
.zoomable { cursor: zoom-in; }
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.82); align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 96%; max-height: 94vh; object-fit: contain;
  background: #ffffff; padding: 8px; border-radius: 2px;
  box-shadow: 0 4px 30px rgba(0,0,0,.5); cursor: default;
}
.lightbox .close {
  position: absolute; top: 14px; right: 24px; color: #ffffff;
  font-size: 36px; line-height: 1; cursor: pointer; user-select: none;
}

/* ---------- top utility bar ---------- */
.topbar {
  background: var(--navy);
  color: #c9d6e0;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 5px;
  padding-bottom: 5px;
}
.topbar a { color: #ffffff; }
.topbar a:hover { text-decoration: underline; color: #ffffff; }
.topbar .sep { margin: 0 10px; color: #5f7488; }

/* ---------- header ---------- */
.site-header { background: #ffffff; border-bottom: 3px solid var(--blue); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { line-height: 1.25; }
.brand .name {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .5px;
}
.brand .tagline {
  font-size: 12px;
  color: var(--blue);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* navigation */
.main-nav { display: flex; align-items: center; flex-wrap: wrap; }
.main-nav > li { list-style: none; position: relative; }
.main-nav > li > a {
  display: block;
  padding: 10px 14px;
  color: var(--text-dark);
  font-size: 15px;
}
.main-nav > li > a:hover { color: var(--blue); text-decoration: none; }
.main-nav > li.active > a { color: var(--blue); font-weight: 600; }

.dropdown { display: none; position: absolute; top: 100%; left: 0; z-index: 50;
  background: #ffffff; border: 1px solid var(--line); border-top: 2px solid var(--blue);
  min-width: 230px; box-shadow: 0 4px 10px rgba(26,61,85,.08); }
.main-nav li:hover .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a { display: block; padding: 8px 16px; color: var(--text-dark); font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.dropdown a:hover { background: var(--gray-bg); color: var(--blue); text-decoration: none; }

.btn-rfq {
  margin-left: 8px;
  background: var(--blue);
  color: #ffffff !important;
  padding: 9px 18px;
  border-radius: 2px;
  font-weight: 600;
}
.btn-rfq:hover { background: var(--blue-dark); }

/* ---------- page head band ---------- */
.page-head { background: var(--gray-bg); border-bottom: 1px solid var(--line); }
.page-head .container { padding-top: 22px; padding-bottom: 22px; }
.page-head h1 { font-size: 26px; color: var(--navy); }
.breadcrumb { font-size: 13px; color: #8a97a3; margin-top: 4px; }
.breadcrumb a { color: var(--blue); }

/* ---------- hero (留白设计, no photo) ---------- */
.hero { background: var(--gray-bg); border-bottom: 1px solid var(--line); }
.hero .container { padding-top: 34px; padding-bottom: 34px; text-align: center; max-width: 900px; }
.hero h1 { font-size: 34px; color: var(--navy); line-height: 1.25; letter-spacing: .5px; }
.hero .rule { width: 64px; height: 3px; background: var(--blue); margin: 18px auto; }
.hero .sub { font-size: 19px; color: var(--text-dark); margin-bottom: 14px; }
.hero p { font-size: 15px; color: var(--text); max-width: 760px; margin: 0 auto 24px; }
.hero .actions a { display: inline-block; margin: 0 6px; }
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn.primary { background: var(--blue); color: #ffffff; }
.btn.primary:hover { background: var(--blue-dark); color: #ffffff; text-decoration: none; }
.btn.outline { border-color: var(--blue); color: var(--blue); background: #ffffff; }
.btn.outline:hover { background: var(--blue); color: #ffffff; text-decoration: none; }

/* ---------- trust number strip ---------- */
.stats { background: #ffffff; border-bottom: 1px solid var(--line); }
.stats .container { display: flex; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.stat { flex: 1 1 200px; text-align: center; padding: 10px 8px; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: none; }
.stat .num { font-size: 30px; font-weight: 700; color: var(--blue); }
.stat .lbl { font-size: 13px; color: var(--text); margin-top: 2px; }

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section.alt { background: var(--gray-bg); }
.sec-title { font-size: 22px; color: var(--navy); text-transform: uppercase; letter-spacing: 1px; }
.sec-title::after { content: ""; display: block; width: 44px; height: 3px; background: var(--blue); margin-top: 8px; }
.sec-sub { margin: 12px 0 26px; max-width: 780px; }

/* product cards */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #ffffff; border: 1px solid var(--line); }
.card:hover { border-color: var(--blue); }
.card .photo-ph { border: none; border-bottom: 1px dashed var(--ph-line); }
.card .body { padding: 16px 18px 20px; }
.card h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.card h3 a { color: var(--navy); }
.card h3 a:hover { color: var(--blue); text-decoration: none; }
.card p { font-size: 14px; margin-bottom: 10px; }
.card .more { font-size: 13px; font-weight: 600; }

/* two-column */
.cols2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: start; }

/* why-us list */
.why-list { list-style: none; margin-top: 14px; }
.why-list li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px solid var(--line-soft); }
.why-list li::before { content: "▪"; position: absolute; left: 6px; color: var(--blue); }
.why-list strong { color: var(--text-dark); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #ffffff; border: 1px solid var(--line); padding: 8px 16px; font-size: 14px; color: var(--text-dark); border-radius: 2px; }

/* tables */
table.spec { width: 100%; border-collapse: collapse; font-size: 14px; margin: 18px 0; }
table.spec th { background: var(--navy); color: #ffffff; text-align: left; padding: 10px 12px; font-weight: 600; }
table.spec td { border: 1px solid var(--line); padding: 9px 12px; }
table.spec tr:nth-child(even) td { background: #f9fafb; }

/* ---------- cta band ---------- */
.cta-band { background: var(--navy); color: #c9d6e0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 30px; padding-bottom: 30px; }
.cta-band h2 { color: #ffffff; font-size: 22px; margin-bottom: 4px; }
.cta-band .btn.primary { background: #ffffff; color: var(--navy); }
.cta-band .btn.primary:hover { background: var(--blue); color: #ffffff; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b8c7d3; font-size: 13.5px; }
.site-footer .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-top: 36px; padding-bottom: 30px; }
.site-footer h4 { color: #ffffff; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #b8c7d3; }
.site-footer a:hover { color: #ffffff; }
.footer-bottom { border-top: 1px solid var(--navy-soft); padding: 14px 0; text-align: center; color: #8ba0b1; font-size: 12.5px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 13.5px; color: var(--text-dark); margin-bottom: 4px; font-weight: 600; }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 2px;
  font-size: 14px; font-family: inherit; background: #ffffff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid #b3d9ef; border-color: var(--blue); }
textarea { resize: vertical; }

.note { font-size: 13px; color: #8a97a3; }

/* gallery category captions */
.gcat { font-size: 17px; color: var(--navy); margin: 26px 0 12px; border-left: 3px solid var(--blue); padding-left: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards3, .cols2 { grid-template-columns: 1fr; }
  .img-ph.push-down { margin-top: 12px; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 28px; }
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 8px; }
  .main-nav { width: 100%; }
  .main-nav > li > a { padding: 8px 10px; font-size: 14px; }
  .btn-rfq { margin-left: 4px; }
}
@media (max-width: 560px) {
  .site-footer .container { grid-template-columns: 1fr; }
  .stat { flex: 1 1 45%; }
}
