/* ============================================
   首页专用样式
   ============================================ */

/* ---------- Hero 首屏 ---------- */
.hero {
  position: relative;
  min-height: 80vh;             /* 上下都留出空间 */
  padding: 100px 0;             /* 上下各 100px 留白 */
  background:
    linear-gradient(135deg, rgba(139, 0, 0, 0.92) 0%, rgba(177, 42, 42, 0.85) 100%),
    radial-gradient(circle at 30% 50%, rgba(201, 169, 97, 0.2) 0%, transparent 60%);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
}

.hero::after {
  content: '诚';
  position: absolute;
  right: 8%;
  bottom: 8%;
  font-family: "STSong", "SimSun", serif;
  font-size: 360px;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  letter-spacing: -20px;
  line-height: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 75%;                  /* 占视口 75% */
  max-width: 1280px;           /* 超大屏上限，避免太散 */
  margin: 0 auto;              /* 居中 */
}

.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 32px;         /* 上下间距加大 */
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.hero h1 {
  font-family: "STSong", "SimSun", serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 4px;
  margin-bottom: 32px;         /* 增加与下方间距 */
}

.hero h1 .accent {
  color: var(--gold);
}

.hero .desc {
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255,255,255,0.85);
  margin-bottom: 48px;         /* 增加与按钮间距 */
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;         /* 与数据区保留呼吸感 */
}

.hero .btn-primary {
  background: var(--white);
  color: var(--primary-dark);
}

.hero .btn-primary:hover {
  background: var(--gold);
  color: var(--white);
}

.hero .btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;            /* 与按钮间距 */
  padding-top: 40px;           /* 上方留白加大 */
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stats .stat-num {
  font-family: "STSong", "SimSun", serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-stats .stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-top: 8px;
  letter-spacing: 1px;
}

/* ---------- 律所简介 ---------- */
.intro {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-img {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.intro-img::before {
  content: '';
  position: absolute;
  top: 16px; left: 16px;
  right: -16px; bottom: -16px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  z-index: -1;
}

.intro-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.intro-content .eyebrow {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.intro-content h2 {
  font-family: "STSong", "SimSun", serif;
  font-size: 38px;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
}

.intro-content h2 .accent {
  color: var(--primary);
}

.intro-content .lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 20px;
}

.intro-content .desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 32px;
}

.intro-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.intro-feature {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: 6px;
  border-left: 3px solid var(--primary);
}

.intro-feature .icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.intro-feature .text strong {
  display: block;
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 4px;
}

.intro-feature .text span {
  font-size: 13px;
  color: var(--text-light);
}

/* ---------- 业务领域 ---------- */
.practice-preview {
  background: var(--bg-light);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.practice-card {
  background: var(--white);
  padding: 36px 24px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.practice-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

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

.practice-card .icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(177, 42, 42, 0.08) 0%, rgba(201, 169, 97, 0.08) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary);
  transition: var(--transition);
}

.practice-card:hover .icon-wrap {
  background: var(--primary);
  color: var(--white);
  transform: rotateY(180deg);
}

.practice-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

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

.practice-bottom {
  text-align: center;
  margin-top: 48px;
}

/* ---------- 数据展示 ---------- */
.stats {
  background:
    linear-gradient(135deg, rgba(139, 0, 0, 0.92) 0%, rgba(177, 42, 42, 0.92) 100%),
    radial-gradient(circle at center, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath fill='%23ffffff' fill-opacity='0.04' d='M20 20h20v20H20zM0 0h20v20H0z'/%3E%3C/svg%3E");
  opacity: 0.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
}

.stat-item .num {
  font-family: "STSong", "SimSun", serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-item .unit {
  font-size: 20px;
  color: var(--gold);
  font-weight: 400;
}

.stat-item .label {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 2px;
}

.stat-item .desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

/* ---------- 团队预览 ---------- */
.team-preview {
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--border);
}

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

.team-photo {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #d4d4d4 0%, #b8b8b8 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.team-photo .placeholder {
  font-family: "STSong", "SimSun", serif;
  font-size: 64px;
  color: rgba(255,255,255,0.5);
  font-weight: 700;
}

.team-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(177,42,42,0.4), transparent);
}

.team-info {
  padding: 24px 20px;
}

.team-info .name {
  font-family: "STSong", "SimSun", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.team-info .title {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

.team-info .expertise {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
  text-align: left;
  min-height: 92px;
}

.team-bottom {
  text-align: center;
  margin-top: 48px;
}

/* ---------- 案例预览 ---------- */
.cases-preview {
  background: var(--bg-light);
}

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

.case-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

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

.case-cover {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.case-cover::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(201,169,97,0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.case-cover .case-no {
  font-family: "STSong", "SimSun", serif;
  font-size: 60px;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  position: absolute;
  top: 16px;
  right: 24px;
}

.case-cover .case-icon {
  font-size: 56px;
  position: relative;
  z-index: 1;
}

.case-cover .case-tag {
  position: absolute;
  bottom: 16px;
  left: 20px;
  background: var(--gold);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}

.case-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-body .title {
  font-family: "STSong", "SimSun", serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.5;
}

.case-body .summary {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.case-body .result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-light);
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
}

.case-body .result strong {
  color: var(--primary);
}

/* ---------- 公益/价值观 ---------- */
.values {
  background: var(--white);
}

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

.value-card {
  padding: 40px 32px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.value-card .quote {
  font-family: "STSong", "SimSun", serif;
  font-size: 48px;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
  font-weight: 700;
}

.value-card h3 {
  font-family: "STSong", "SimSun", serif;
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 16px;
}

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

/* ---------- 联系咨询区 ---------- */
.cta {
  background:
    linear-gradient(135deg, rgba(139, 0, 0, 0.95) 0%, rgba(177, 42, 42, 0.95) 100%),
    radial-gradient(circle at center, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(201,169,97,0.1) 0%, transparent 50%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta h2 {
  font-family: "STSong", "SimSun", serif;
  font-size: 38px;
  margin-bottom: 16px;
  position: relative;
  letter-spacing: 2px;
}

.cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  position: relative;
}

.cta .phone-big {
  font-family: "STSong", "SimSun", serif;
  font-size: 48px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 32px;
  position: relative;
}

.cta .btn {
  margin: 0 8px;
  position: relative;
}

.cta .btn-primary {
  background: var(--gold);
  color: var(--white);
}

.cta .btn-primary:hover {
  background: var(--white);
  color: var(--primary-dark);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .practice-grid,
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .hero { min-height: 500px; }
  .hero h1 { font-size: 36px; letter-spacing: 2px; }
  .hero .desc { font-size: 15px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; padding-top: 24px; }
  .hero-stats .stat-num { font-size: 32px; }
  .hero::after { font-size: 200px; }
  .practice-grid,
  .team-grid,
  .cases-grid,
  .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item .num { font-size: 40px; }
  .cta h2 { font-size: 28px; }
  .cta .phone-big { font-size: 32px; }
  .intro-features { grid-template-columns: 1fr; }
}