/* ============================================================
   新南优印官网 - 全局样式
   橙红渐变品牌风格 · 响应式卡片布局
   ============================================================ */
:root {
  --brand-1: #ff6b35;
  --brand-2: #e63b2e;
  --brand-grad: linear-gradient(135deg, #ff6b35 0%, #e63b2e 100%);
  --dark: #1f2937;
  --dark-2: #374151;
  --muted: #6b7280;
  --light: #f9fafb;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(230, 59, 46, 0.08);
  --shadow-lg: 0 12px 32px rgba(31, 41, 55, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.logo-img { height: 40px; width: auto; display: block; }
.logo-badge {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 800;
}
.logo small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.2; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14.5px; color: var(--dark-2); transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--brand-1); }
.nav-links a.active { color: var(--brand-1); font-weight: 600; }
.nav-cta {
  background: var(--brand-grad); color: #fff !important;
  padding: 8px 18px; border-radius: 8px; font-weight: 600; font-size: 14px !important;
}
.nav-cta:hover { opacity: .9; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--dark); }

/* ---------- 英雄区 ---------- */
.hero {
  background: linear-gradient(135deg, #fff7f3 0%, #fff1ec 50%, #ffe9e3 100%);
  padding: 84px 0 72px;
}
.hero-inner { display: flex; align-items: center; gap: 56px; }
.hero-copy { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #ffd9ce;
  color: var(--brand-2); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-1); }
.hero h1 { font-size: 44px; line-height: 1.25; font-weight: 800; margin-bottom: 18px; }
.hero h1 .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 17px; color: var(--muted); margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600; transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { border: 1.5px solid var(--brand-1); color: var(--brand-1); }
.btn-outline:hover { background: #fff1ec; }
.hero-visual { flex: 1; display: flex; justify-content: center; }
.hero-card {
  width: 380px; background: #fff; border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 26px; border: 1px solid var(--border);
}
.hero-card h3 { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.hero-card-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px dashed var(--border);
}
.hero-card-item:last-child { border-bottom: none; }
.hci-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #fff1ec, #ffe3da);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.hci-text strong { font-size: 14.5px; display: block; }
.hci-text span { font-size: 12.5px; color: var(--muted); }

/* ---------- 区块通用 ---------- */
.section { padding: 72px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1px;
  color: var(--brand-2); background: #fff1ec; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 15.5px; }

/* ---------- 业务卡片 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.biz-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .2s, box-shadow .2s;
}
.biz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.biz-icon {
  width: 52px; height: 52px; border-radius: 13px; background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px;
}
.biz-card h3 { font-size: 19px; margin-bottom: 10px; }
.biz-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-tags span {
  font-size: 12px; background: var(--light); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px; color: var(--dark-2);
}

/* ---------- 数据条 ---------- */
.stats { background: var(--brand-grad); padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; color: #fff; }
.stat-num { font-size: 38px; font-weight: 800; }
.stat-label { font-size: 14px; opacity: .9; }

/* ---------- 客户案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .2s, box-shadow .2s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-card .cc-tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-2);
  background: #fff1ec; padding: 3px 10px; border-radius: 6px; margin-bottom: 14px;
}
.case-card h3 { font-size: 17px; margin-bottom: 8px; }
.case-card p { font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  padding: 18px 22px; font-weight: 600; font-size: 15.5px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q::after { content: "+"; font-size: 22px; color: var(--brand-1); font-weight: 400; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 18px; }

/* ---------- 通用页面 ---------- */
.page-hero {
  background: linear-gradient(135deg, #fff7f3 0%, #ffe9e3 100%);
  padding: 60px 0 48px; text-align: center;
}
.page-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: var(--muted); font-size: 16px; max-width: 560px; margin: 0 auto; }
.page-hero .crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.page-hero .crumb a { color: var(--brand-1); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: 14px; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #fff7f3; font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: none; }

/* ---------- 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; position: relative;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 26px; font-weight: 800; color: #ffd9ce; display: block; margin-bottom: 10px;
}
.step h4 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-info { display: grid; gap: 18px; }
.ci-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 16px; align-items: flex-start;
}
.ci-icon {
  width: 44px; height: 44px; border-radius: 10px; background: #fff1ec; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ci-card strong { font-size: 15px; display: block; margin-bottom: 4px; }
.ci-card span { font-size: 13.5px; color: var(--muted); }
.contact-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px;
}
.contact-form h3 { font-size: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; font-family: inherit; background: var(--light);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: 2px solid #ffc4b3; border-color: var(--brand-1); }

/* ---------- 资讯 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-thumb {
  height: 170px; background: linear-gradient(135deg, #ffb199, #ff6b6b);
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.news-thumb-img { background: #f3f4f6; overflow: hidden; }
.news-thumb-img img { width: 100%; height: 170px; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-thumb-img img { transform: scale(1.05); }
.news-detail .nd-cover { margin: -44px -44px 28px; }
.news-detail .nd-cover img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 0; }
.news-detail .nd-img img { max-width: 100%; border-radius: 10px; margin: 8px 0 18px; }
@media (max-width: 640px) {
  .news-detail .nd-cover { margin: -26px -26px 22px; }
}
.news-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.news-cat {
  font-size: 11.5px; font-weight: 700; color: var(--brand-2);
  background: #fff1ec; padding: 2px 9px; border-radius: 5px;
}
.news-body h3 { font-size: 16.5px; line-height: 1.5; margin-bottom: 8px; }
.news-body p { font-size: 13.5px; color: var(--muted); flex: 1; }
.news-more { margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--brand-1); }

.news-detail {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 44px; max-width: 820px; margin: 0 auto;
}
.news-detail h1 { font-size: 28px; line-height: 1.4; margin-bottom: 14px; }
.news-detail .nd-meta { font-size: 13px; color: var(--muted); padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.news-detail .nd-content { font-size: 15.5px; line-height: 2; }
.news-detail .nd-content p { margin-bottom: 18px; }
.news-detail .nd-content h2 { font-size: 21px; margin: 30px 0 12px; }
.news-detail .nd-content h3 { font-size: 17px; margin: 24px 0 10px; }
.news-detail .nd-content ul, .news-detail .nd-content ol { margin: 0 0 18px 22px; }
.news-detail .nd-content blockquote {
  border-left: 4px solid var(--brand-1); background: #fff7f3;
  padding: 14px 20px; margin: 0 0 18px; border-radius: 0 8px 8px 0; color: var(--dark-2);
}
.news-detail .nd-content img { border-radius: 10px; margin: 8px 0 18px; }

/* ---------- 发布表单 ---------- */
.publish-box {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; max-width: 820px; margin: 0 auto;
}
.publish-box h2 { font-size: 22px; margin-bottom: 6px; }
.publish-box .pb-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.code-box {
  background: #1f2937; color: #e5e7eb; border-radius: 10px;
  padding: 18px; font-family: "SF Mono", Consolas, monospace; font-size: 12.5px;
  overflow-x: auto; white-space: pre; margin: 14px 0; line-height: 1.7;
}
.publish-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.publish-tabs button {
  padding: 8px 18px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; font-size: 14px; cursor: pointer; font-weight: 600; color: var(--dark-2);
}
.publish-tabs button.active { background: var(--brand-grad); color: #fff; border-color: transparent; }

/* ---------- 页脚 ---------- */
.footer { background: var(--dark); color: #9ca3af; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer a { font-size: 13.5px; display: block; margin-bottom: 9px; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .f-brand { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer .f-desc { font-size: 13.5px; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid #374151; padding-top: 22px;
  font-size: 12.5px; text-align: center; color: #6b7280;
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero h1 { font-size: 34px; }
  .hero-inner { flex-direction: column; gap: 36px; }
  .hero-visual { width: 100%; }
  .hero-card { width: 100%; max-width: 420px; }
  .biz-grid, .case-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 20px 24px;
    border-bottom: 1px solid var(--border); gap: 18px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .biz-grid, .case-grid, .news-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 26px; }
  .news-detail { padding: 26px; }
  .news-detail h1 { font-size: 22px; }
}
