/* ============================================
   山东京济会计师事务所 — 全站样式
   ============================================ */

:root {
  --primary: #a51c1c;          /* 京济红 — 与 logo 主色一致 */
  --primary-dark: #7a1414;     /* 深红 — 用于强调与渐变 */
  --primary-light: #c83434;    /* 亮红 — hover 与点缀 */
  --accent: #d4a23a;           /* 金色点缀 — 在红黑主调中提亮 */
  --accent-dark: #a8853a;
  --ink: #1a1a1a;              /* 京济黑 — 文字与中文标识主色 */
  --ink-light: #333;
  --text: #1a1a1a;
  --text-light: #555;
  --text-muted: #999;
  --bg: #ffffff;
  --bg-soft: #faf6f6;          /* 微红米色 */
  --bg-section: #f5eded;
  --border: #e8dada;
  --shadow-sm: 0 2px 8px rgba(165, 28, 28, 0.08);
  --shadow-md: 0 6px 20px rgba(165, 28, 28, 0.15);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  font-size: 15px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============== Top Bar ============== */
.topbar {
  background: #1a1a1a;
  color: #d8d8d8;
  font-size: 13px;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-info {
  letter-spacing: 0.5px;
}

.topbar-contact {
  display: flex;
  gap: 18px;
}

.topbar-contact span::before {
  content: "·";
  margin-right: 8px;
  color: var(--accent);
  font-weight: bold;
}

/* ============== Header / Nav ============== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 左侧红色装饰条 — 简洁视觉锚点 */
.brand-bar {
  width: 4px;
  height: 44px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 2px;
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 20px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 1.5px;
}

.brand-text p {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-top: 4px;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 12px 18px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: var(--bg-soft);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
}

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header-phone .label {
  font-size: 12px;
  color: var(--text-muted);
}

.header-phone .number {
  font-size: 20px;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ============== Hero ============== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0a4595 0%, #1a5bb0 50%, #073066 100%);
  color: #fff;
  padding: 90px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(200, 160, 74, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero h2 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero h2 span {
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 36px;
  letter-spacing: 1px;
}

.hero-pillars {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-pillar {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 15px;
  letter-spacing: 1px;
}

.hero-actions {
  display: flex;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 133, 58, 0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ============== Section Common ============== */
.section {
  padding: 80px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-section {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .eyebrow {
  font-size: 13px;
  color: var(--accent-dark);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 32px;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
}

.section-header p {
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
}

/* ============== About Preview ============== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  padding: 50px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-visual::before {
  content: "京济";
  position: absolute;
  bottom: -40px;
  right: -20px;
  font-size: 200px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
}

.about-visual .stat {
  position: relative;
  z-index: 2;
}

.about-visual .stat + .stat {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.about-visual .num {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.about-visual .lbl {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 6px;
  letter-spacing: 1px;
}

.about-text h3 {
  font-size: 26px;
  color: var(--primary-dark);
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.9;
}

.about-text .highlight {
  color: var(--primary);
  font-weight: 600;
}

/* ============== Service Cards ============== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 26px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
  transform: rotateY(180deg);
}

.service-card h4 {
  font-size: 17px;
  color: var(--primary-dark);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.service-card p {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.7;
}

/* ============== Detail Service List ============== */
.service-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.service-block {
  background: #fff;
  border-left: 4px solid var(--primary);
  padding: 26px 28px;
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.service-block:hover {
  border-left-color: var(--accent);
  transform: translateX(4px);
}

.service-block h4 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-block h4 .badge {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.service-block p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
}

/* ============== Cases ============== */
.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.case-tab {
  padding: 10px 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.case-tab:hover,
.case-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-panel {
  display: none;
}

.case-panel.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-item {
  background: #fff;
  padding: 22px 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.case-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  transform: translateY(-3px);
}

.case-item::before {
  content: "▸";
  color: var(--accent);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============== Qualifications ============== */
.qual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.qual-card {
  background: #fff;
  padding: 30px 26px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.25s ease;
}

.qual-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.qual-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.qual-card h4 {
  color: var(--primary-dark);
  font-size: 15px;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

/* ============== Quality Certs ============== */
.cert-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cert-card {
  background: linear-gradient(135deg, #fff 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.cert-code {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.cert-aaa {
  font-size: 36px;
  color: var(--accent);
}

.cert-card h4 {
  color: var(--primary-dark);
  font-size: 15px;
  margin-bottom: 6px;
}

.cert-card p {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1px;
}

/* ============== Culture / Values ============== */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.culture-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.culture-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

.culture-card:hover::before {
  width: 100%;
  opacity: 0.04;
}

.culture-card h4 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 14px;
  letter-spacing: 1px;
  position: relative;
}

.culture-card p {
  color: var(--text-light);
  line-height: 1.9;
  position: relative;
  font-size: 14px;
}

.culture-card strong {
  color: var(--accent-dark);
}

/* ============== Org Chart ============== */
.org-chart {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.org-level {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  position: relative;
}

.org-level:last-child {
  margin-bottom: 0;
}

.org-node {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  min-width: 140px;
  margin: 0 6px;
  box-shadow: var(--shadow-sm);
}

.org-node.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.org-node.dept {
  background: #fff;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.org-node.sub {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 13px;
  padding: 10px 18px;
  min-width: 110px;
}

.org-connector {
  text-align: center;
  color: var(--primary);
  font-size: 22px;
  margin: -10px 0;
}

/* ============== Contact ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 50px 40px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.contact-info::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: rgba(200, 160, 74, 0.1);
  border-radius: 50%;
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 28px;
  letter-spacing: 1px;
  position: relative;
}

.contact-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  align-items: flex-start;
}

.contact-row .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-row .body {
  font-size: 14px;
  line-height: 1.6;
}

.contact-row .body .label {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 2px;
  letter-spacing: 1px;
}

.contact-row .body .value {
  font-size: 16px;
  font-weight: 500;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 12px;
}

.contact-form h3 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-light);
  font-size: 13px;
  letter-spacing: 1px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease;
  background: #fff;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 69, 149, 0.1);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============== CTA Strip ============== */
.cta-strip {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 60px 0;
  color: #fff;
  text-align: center;
}

.cta-strip h3 {
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.cta-strip p {
  opacity: 0.9;
  margin-bottom: 24px;
  font-size: 15px;
}

.cta-strip .btn-primary {
  background: var(--accent);
}

/* ============== Footer ============== */
.site-footer {
  background: #1a1a1a;
  color: #bdbdbd;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-col h5 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-col p,
.footer-col li {
  color: #bdbdbd;
  font-size: 13px;
  line-height: 1.9;
  list-style: none;
}

.footer-col li a {
  color: #bdbdbd;
}

.footer-col li a:hover {
  color: var(--accent);
}

.footer-brand .name {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.footer-brand .en {
  color: #888;
  font-size: 12px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: #888;
}

/* ============== Page Banner ============== */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 70% 30%, rgba(200, 160, 74, 0.15) 0%, transparent 50%);
}

.page-banner h2 {
  font-size: 38px;
  letter-spacing: 4px;
  margin-bottom: 12px;
  position: relative;
}

.page-banner p {
  font-size: 14px;
  letter-spacing: 3px;
  opacity: 0.85;
  text-transform: uppercase;
  position: relative;
}

.breadcrumb {
  background: var(--bg-soft);
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  margin: 0 8px;
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--primary);
}

/* ============== Clients Marquee ============== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.client-item {
  background: #fff;
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}

.client-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-soft);
}

/* ============== Responsive ============== */
@media (max-width: 960px) {
  .topbar { display: none; }
  .header-inner { flex-wrap: wrap; }
  .header-phone { display: none; }
  .main-nav { width: 100%; margin-top: 12px; overflow-x: auto; }
  .main-nav ul { white-space: nowrap; }
  .hero { padding: 60px 0; }
  .hero h2 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 50px 0; }
  .section-header h2 { font-size: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail { grid-template-columns: 1fr; }
  .case-grid,
  .case-panel.active { grid-template-columns: 1fr; }
  .qual-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-row { grid-template-columns: repeat(2, 1fr); }
  .culture-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .org-level { flex-wrap: wrap; gap: 8px; }
  .page-banner h2 { font-size: 26px; }
}

@media (max-width: 600px) {
  .service-grid,
  .qual-grid,
  .cert-row { grid-template-columns: 1fr; }
}
