/* ============================================================
   Quantum Tape Library Repair Site 2026 - Shared Stylesheet
   上海网事无忧计算机科技发展有限公司 - Quantum 磁带库维修网站
   简约大气风格 | utf-8 | 2026
   ============================================================ */

:root {
  --primary: #0d3b66;
  --primary-dark: #082a4a;
  --accent: #1f8ac0;
  --accent-light: #e8f4fb;
  --gold: #d9a441;
  --text: #2b2f36;
  --text-light: #6b7280;
  --bg: #f5f7fa;
  --white: #ffffff;
  --line: #e4e8ee;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(13, 59, 102, 0.08);
  --shadow-lg: 0 8px 32px rgba(13, 59, 102, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 15px;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }

img { max-width: 100%; border: 0; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------------- Top bar ---------------- */
.topbar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }

/* ---------------- Header ---------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: 1px;
  flex-shrink: 0;
}
.brand-name { font-size: 19px; font-weight: 700; color: var(--primary); line-height: 1.3; }
.brand-sub { font-size: 13px; color: var(--text-light); }

.header-contact { text-align: right; }
.header-contact .label { font-size: 12px; color: var(--text-light); }
.header-contact .tel {
  font-size: 26px; font-weight: 700; color: var(--accent);
  font-family: "Arial", "Helvetica", sans-serif; letter-spacing: 1px;
  display: block; line-height: 1.3;
}
.header-contact .tel:hover { color: var(--primary); }

/* ---------------- Nav ---------------- */
.main-nav { background: var(--primary); }
.main-nav .container { display: flex; flex-wrap: wrap; }
.main-nav a {
  color: rgba(255, 255, 255, .92); padding: 13px 22px; font-size: 15px;
  display: block; border-right: 1px solid rgba(255, 255, 255, .12);
  transition: background .2s;
}
.main-nav a:hover, .main-nav a.active { background: var(--accent); color: #fff; }

/* ---------------- Breadcrumb ---------------- */
.crumb {
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 10px 0; font-size: 13px; color: var(--text-light);
}
.crumb a { color: var(--text-light); }
.crumb a:hover { color: var(--accent); }
.crumb .sep { margin: 0 8px; color: #c3c9d2; }

/* ---------------- Hero of index ---------------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--accent) 130%);
  color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}
.hero h1 { font-size: 32px; font-weight: 700; margin-bottom: 14px; letter-spacing: 1px; }
.hero p { font-size: 16px; color: rgba(255, 255, 255, .88); max-width: 720px; }
.hero .hero-meta { margin-top: 22px; display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.9); }
.hero .hero-meta b { font-size: 22px; color: #fff; display: block; }

/* ---------------- Section blocks ---------------- */
.section { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 32px; margin-bottom: 26px; }
.section h2 {
  font-size: 20px; color: var(--primary); margin-bottom: 18px;
  padding-left: 14px; border-left: 4px solid var(--accent);
  display: flex; align-items: center; justify-content: space-between;
}
.section h3 { font-size: 16px; color: var(--primary); margin: 20px 0 10px; }

/* ---------------- Product overview (detail page) ---------------- */
.prod-top { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
@media (max-width: 860px) { .prod-top { grid-template-columns: 1fr; } }
.prod-img-wrap {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.prod-img-wrap img { max-height: 240px; object-fit: contain; }
.prod-info h2 { border-left: none; padding-left: 0; margin-bottom: 12px; }
.prod-model { font-size: 22px; color: var(--primary); font-weight: 700; }
.prod-model .cfg { font-size: 15px; color: var(--text-light); font-weight: 400; display: block; margin-top: 6px; }
.prod-price { margin: 10px 0 4px; font-size: 14px; color: var(--text-light); }
.prod-price b { color: var(--gold); font-size: 20px; font-weight: 700; }

/* ---------------- Spec table ---------------- */
.spec-table { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: 14px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.spec-table th { background: var(--accent-light); color: var(--primary); font-weight: 600; width: 180px; white-space: nowrap; }
.spec-table td { color: var(--text); }
.spec-table tr:nth-child(even) td { background: #fafbfd; }

/* ---------------- Typography blocks ---------------- */
.desc p { margin-bottom: 12px; text-align: justify; }
.desc ul { margin: 6px 0 12px 22px; }
.desc li { margin-bottom: 6px; }
.desc .lead { font-weight: 600; color: var(--primary); }

/* ---------------- Fault / Step lists ---------------- */
.fault-list { list-style: none; counter-reset: fm; }
.fault-list li {
  counter-increment: fm; position: relative;
  padding: 12px 14px 12px 46px; margin-bottom: 10px;
  background: #fff8ef; border: 1px solid #f7e3c1; border-radius: var(--radius);
}
.fault-list li::before {
  content: counter(fm); position: absolute; left: 12px; top: 13px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.fault-list li b { color: #8a5a00; }
.fault-list .cause { color: var(--text-light); font-size: 13px; display: block; margin-top: 3px; }

.flow { list-style: none; counter-reset: fs; }
.flow li {
  counter-increment: fs; position: relative;
  padding: 12px 14px 12px 46px; margin-bottom: 10px;
  background: #f2f8fd; border: 1px solid var(--line); border-radius: var(--radius);
}
.flow li::before {
  content: counter(fs); position: absolute; left: 12px; top: 13px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.flow li b { color: var(--primary); }

/* ---------------- Contact panel ---------------- */
.contact-panel {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius); padding: 28px 30px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: center;
  margin-bottom: 26px;
}
@media (max-width: 760px) { .contact-panel { grid-template-columns: 1fr; } }
.contact-panel h3 { color: var(--gold); font-size: 18px; margin-bottom: 8px; font-weight: 700; }
.contact-panel p { font-size: 14px; color: rgba(255,255,255,.9); line-height: 1.9; }
.contact-panel .big-tel { font-size: 34px; font-weight: 700; color: #fff; font-family: Arial, sans-serif; letter-spacing: 1px; display: block; }
.contact-panel .big-tel:hover { color: var(--gold); }
.contact-panel .tel-label { font-size: 13px; color: rgba(255,255,255,.75); }

/* ---------------- Index model grid ---------------- */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 18px; }
.model-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.model-card .thumb { background: var(--bg); padding: 16px; text-align: center; height: 150px; display: flex; align-items: center; justify-content: center; }
.model-card .thumb img { max-height: 118px; object-fit: contain; }
.model-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.model-card .m-title { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 4px; line-height: 1.4; }
.model-card .m-cfg { font-size: 12px; color: var(--text-light); margin-bottom: 10px; line-height: 1.5; }
.model-card .btn {
  margin-top: auto; display: block; text-align: center;
  background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px;
  font-size: 14px; transition: background .2s;
}
.model-card .btn:hover { background: var(--primary); color: #fff; }

/* ---------------- Related models ---------------- */
.rel-list { display: flex; flex-wrap: wrap; gap: 10px; }
.rel-list a {
  background: var(--accent-light); color: var(--primary);
  border: 1px solid #cfe6f4; border-radius: 20px;
  padding: 5px 14px; font-size: 13px; transition: all .2s;
}
.rel-list a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------------- Buttons ---------------- */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 10px 22px; border-radius: 6px; font-size: 15px; transition: background .2s; }
.btn:hover { background: var(--primary); color: #fff; }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: #b98a2f; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 30px 0 20px; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; margin-bottom: 22px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer p { font-size: 13px; line-height: 1.9; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; text-align: center; font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------------- Misc ---------------- */
.page-title { padding: 26px 0 18px; }
.page-title h1 { font-size: 26px; color: var(--primary); margin-bottom: 6px; }
.page-title p { color: var(--text-light); font-size: 14px; }

.tag { display: inline-block; background: var(--accent-light); color: var(--primary); border-radius: 4px; padding: 2px 8px; font-size: 12px; margin-right: 6px; }

.callout {
  background: var(--accent-light); border-left: 4px solid var(--accent);
  border-radius: 6px; padding: 14px 18px; margin: 16px 0; font-size: 14px;
}
.callout b { color: var(--primary); }

.back-top { position: fixed; right: 22px; bottom: 26px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); opacity: .85; transition: all .25s; }
.back-top:hover { opacity: 1; background: var(--accent); }

@media (max-width: 640px) {
  body { font-size: 14px; }
  .hero h1 { font-size: 24px; }
  .prod-model { font-size: 18px; }
  .header-contact .tel { font-size: 21px; }
  .section { padding: 22px 18px; }
  .spec-table th { width: 110px; white-space: normal; }
}