/* ============================================================
   心语心理 · 心理咨询师培训认证中心
   完整前端样式文件 style.css
   ============================================================ */

/* ========== 全局重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1b2b4b;
  --primary-light: #2d4a70;
  --gold: #b99b5c;
  --gold-light: #dbbd7a;
  --cream: #fdf9f2;
  --gray-bg: #eef2f6;
  --text-dark: #14263e;
  --text-mid: #4a5f7c;
  --text-light: #7a8aa3;
  --border-light: #e8dcc8;
  --success: #1f6e3f;
  --error: #b33a3a;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(145deg, #e8eef5 0%, #d9e2ec 100%);
  font-family: 'Inter', 'Noto Serif SC', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   导航栏
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(185, 155, 92, 0.2);
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 20, 40, 0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  cursor: pointer;
  user-select: none;
}

.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(27, 43, 75, 0.2);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  letter-spacing: 0.3px;
  cursor: pointer;
}

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

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* 导航栏查询按钮 */
.nav-query-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  color: #fff !important;
  padding: 0.55rem 1.4rem;
  border-radius: 40px;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(27, 43, 75, 0.25);
  transition: all 0.2s !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-query-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(27, 43, 75, 0.3);
  background: linear-gradient(135deg, #14213d, var(--primary)) !important;
  color: #fff !important;
}

.nav-query-btn::after {
  display: none !important;
}

/* ============================================================
   Hero 区域
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #1b2b4b 0%, #2d4a70 50%, #1b2b4b 100%);
  color: #fff;
  padding: 5rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(185, 155, 92, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(185, 155, 92, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(185, 155, 92, 0.18);
  border: 1px solid rgba(185, 155, 92, 0.4);
  color: var(--gold-light);
  padding: 0.45rem 1.4rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

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

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

/* ============================================================
   通用容器与区块
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}

.section-header .line {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  margin: 0 auto 1.2rem;
  border-radius: 3px;
}

.section-header p {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   战略合作区
   ============================================================ */
.partner-section {
  background: linear-gradient(135deg, #fdf9f2 0%, #f5efe2 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.partner-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(185, 155, 92, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.partner-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.8rem 3rem;
  box-shadow: 0 15px 40px rgba(185, 155, 92, 0.12);
  border: 1px solid rgba(185, 155, 92, 0.2);
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.partner-logo-block {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.partner-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #4a90d9, #357abd);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
  font-family: 'Noto Serif SC', serif;
  box-shadow: 0 8px 20px rgba(74, 144, 217, 0.3);
}

.partner-logo-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #357abd;
  line-height: 1.3;
}

.partner-logo-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.partner-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  flex-shrink: 0;
}

.partner-content {
  flex: 1;
  min-width: 280px;
}

.partner-content h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.partner-content h3 .tag {
  font-size: 0.7rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
}

.partner-content p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.partner-highlights {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.partner-highlight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.partner-highlight .icon {
  width: 32px;
  height: 32px;
  background: #eef3fa;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.partner-guarantee {
  background: linear-gradient(135deg, #1b2b4b, #2d4a70);
  color: #fff;
  border-radius: 16px;
  padding: 1.2rem 1.8rem;
  text-align: center;
  flex-shrink: 0;
  min-width: 180px;
  box-shadow: 0 8px 20px rgba(27, 43, 75, 0.25);
}

.partner-guarantee .amount {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
}

.partner-guarantee .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

/* ============================================================
   培训体系
   ============================================================ */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.program-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.8rem;
  box-shadow: 0 8px 25px rgba(0, 20, 40, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity 0.3s;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 20, 40, 0.1);
}

.program-card:hover::before {
  opacity: 1;
}

.program-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #eef3fa, #dce6f2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.program-card h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.program-card p {
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================================
   师资团队（新头像样式）
   ============================================================ */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.faculty-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 20, 40, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s;
}

.faculty-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 20, 40, 0.12);
}

/* --- 头像容器 --- */
.faculty-avatar {
  height: 170px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 不同专业对应不同背景渐变 */
.avatar-brain {
  background: linear-gradient(135deg, #3a5a8c 0%, #1b2b4b 100%);
}

.avatar-heart {
  background: linear-gradient(135deg, #4a8b6a 0%, #2d5a44 100%);
}

.avatar-medical {
  background: linear-gradient(135deg, #8c4a4a 0%, #5a2d2d 100%);
}

.avatar-family {
  background: linear-gradient(135deg, #8c6a3a 0%, #5a442d 100%);
}

.avatar-sun {
  background: linear-gradient(135deg, #b98c2d 0%, #8c6420 100%);
}

.avatar-chart {
  background: linear-gradient(135deg, #5a3a8c 0%, #3a2d5a 100%);
}

/* 装饰性光晕（右上角） */
.faculty-avatar::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(185, 155, 92, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  top: -60px;
  right: -60px;
  pointer-events: none;
}

/* 装饰性光晕（左下角） */
.faculty-avatar::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -40px;
  left: -40px;
  pointer-events: none;
}

/* 中心装饰符号 */
.avatar-symbol {
  font-size: 3.5rem;
  z-index: 3;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  position: relative;
  line-height: 1;
  animation: floatSymbol 4s ease-in-out infinite;
}

@keyframes floatSymbol {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 环形装饰 */
.avatar-ring {
  position: absolute;
  width: 130px;
  height: 130px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateRing 20s linear infinite;
}

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

/* 环上小圆点 - 顶部 */
.avatar-ring::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(219, 189, 122, 0.6);
}

/* 环上小圆点 - 底部 */
.avatar-ring::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: rgba(185, 155, 92, 0.5);
  border-radius: 50%;
}

/* 头像内部装饰虚线环 */
.faculty-avatar .avatar-ring-inner {
  position: absolute;
  width: 95px;
  height: 95px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  z-index: 1;
  animation: rotateRing 30s linear infinite reverse;
}

/* --- 师资信息 --- */
.faculty-info {
  padding: 1.5rem 1.6rem 1.8rem;
}

.faculty-info h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.faculty-title {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}

.faculty-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.faculty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.faculty-tags span {
  background: #eef3fa;
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
}

.faculty-tags span:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   查询区域
   ============================================================ */
.query-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #eef3fa 100%);
}

.query-section {
  display: flex;
  justify-content: center;
}

.card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem 3rem;
  box-shadow: 0 20px 40px rgba(0, 20, 40, 0.08), 0 6px 12px rgba(0, 0, 0, 0.02);
  width: 100%;
  max-width: 620px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), var(--gold-light));
}

.card h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 1rem 1.4rem;
  font-size: 1.05rem;
  border: 1.5px solid #dce4ed;
  border-radius: 16px;
  background: #fafdff;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  outline: none;
  color: var(--text-dark);
}

.form-group input:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(185, 155, 92, 0.12);
}

.form-group input::placeholder {
  color: #a8b8cc;
}

.btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem;
  box-shadow: 0 6px 14px rgba(27, 43, 75, 0.25);
  font-family: inherit;
}

.btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #14213d, var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(27, 43, 75, 0.3);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(27, 43, 75, 0.2);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.message-box {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  font-weight: 500;
  display: none;
  line-height: 1.5;
}

.message-box.error {
  background: #fff2f2;
  color: var(--error);
  border: 1px solid #f5d0d0;
}

.message-box.success {
  background: #edf7f0;
  color: var(--success);
  border: 1px solid #c8e6d0;
}

/* ============================================================
   证书展示（默认隐藏）
   ============================================================ */
.certificate-wrapper {
  background: #ffffff;
  border-radius: 28px;
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 25px 50px rgba(0, 20, 40, 0.12), 0 8px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-top: 2rem;
  display: none;
}

.certificate-wrapper.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.certificate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.certificate-header h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  padding: 0.4rem 1.3rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge.verified {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 10px rgba(27, 43, 75, 0.3);
}

.badge.invalid {
  background: #fef0f0;
  color: var(--error);
  border: 1px solid #f5d0d0;
}

/* --- 证书本体 --- */
.certificate-preview {
  background: var(--cream);
  border-radius: 8px;
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  border: 2px solid var(--border-light);
  transition: all 0.4s ease;
}

/* 外装饰边框 */
.certificate-preview::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid #d4c5a9;
  border-radius: 4px;
  pointer-events: none;
  z-index: 0;
}

/* 内装饰边框 */
.certificate-preview::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}

.cert-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cert-emblem {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
  line-height: 1;
  opacity: 0.85;
}

.cert-title {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 6px;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.cert-title-en {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #8a7a5c;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.cert-divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0 auto 1.8rem;
}

.cert-subtitle {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.15rem;
  color: var(--text-mid);
  margin-bottom: 2.2rem;
  font-weight: 400;
}

.cert-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cert-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  font-weight: 500;
  color: #7a6b4e;
  letter-spacing: 2px;
  min-width: 90px;
  text-align: right;
}

.cert-value {
  font-family: 'Noto Serif SC', 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 2px solid #d4c5a9;
  padding: 0 0.5rem 0.2rem;
  min-width: 260px;
  text-align: center;
  letter-spacing: 1px;
}

.cert-value.small {
  font-family: 'Inter', monospace;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  min-width: 300px;
}

.cert-completion {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  color: var(--text-mid);
  margin-top: 1.5rem;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cert-completion .highlight {
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px dashed var(--gold);
  padding: 0 0.2rem;
}

.cert-footer {
  margin-top: 2.8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.8rem;
}

.cert-org-block {
  text-align: left;
}

.cert-org-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9a8b70;
  margin-bottom: 0.2rem;
}

.cert-org {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
}

.cert-seal-block {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.cert-seal-date {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.95rem;
  color: var(--text-mid);
  letter-spacing: 1px;
}

.cert-seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gold);
  border: 1.5px solid #d4c5a9;
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  background: #fdf9f2;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cert-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  font-weight: 700;
  color: rgba(185, 155, 92, 0.06);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  letter-spacing: 
  /* ========== 证书下载按钮 ========== */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(185, 155, 92, 0.3);
}

.btn-download:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(185, 155, 92, 0.4);
  background: linear-gradient(135deg, #a8894a, var(--gold));
}

.btn-download:active:not(:disabled) {
  transform: translateY(0);
}

.btn-download:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 800px) {
  .certificate-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-download {
    width: 100%;
    justify-content: center;
  }
}