/* =============================================
   晋学思专升本 官网 v2.1
   配色：经典亮蓝 + 大公司质感布局
   ============================================= */
html { scroll-behavior: smooth; }
:root {
  --primary: #1a56db;
  --primary-dark: #1e40af;
  --primary-light: #eff6ff;
  --accent: #f59e0b;
  --accent-light: #fffbeb;
  --text: #1f2937;
  --text-secondary: #4b5563;
  --text-light: #6b7280;
  --bg: #fafbfc;
  --bg-gray: #f0f4f8;
  --bg-warm: #fdfbf7;
  --bg-dark: #111827;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.1);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.12);
  --max-width: 1200px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  line-height: 1.75;
  background: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(26,86,219,0.03) 1px, transparent 0);
  background-size: 24px 24px;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

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

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

/* ========== Header ========== */
.header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo::before {
  content: '';
  width: 8px;
  height: 32px;
  background: var(--accent);
  border-radius: 4px;
}
.logo span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0;
}
.nav { display: flex; gap: 8px; list-style: none; align-items: center; flex-shrink: 0; }
.nav a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav a:hover { color: var(--primary); background: var(--primary-light); }
.nav a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

/* Header right: social links + search toggle */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.social-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}
.social-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.social-link .icon { font-size: 15px; }

.search-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--text-secondary);
}
.search-toggle:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ========== Search Panel ========== */
.search-panel {
  display: none;
  background: var(--bg);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 64px;
  z-index: 999;
  padding: 28px 0;
  box-shadow: var(--shadow-md);
}
.search-panel.active { display: block; }
.search-panel .container { max-width: 700px; }
.search-input-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.search-input-wrap input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  transition: border-color var(--transition);
}
.search-input-wrap input:focus { outline: none; border-color: var(--primary); }
.search-input-wrap button {
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.search-input-wrap button:hover { background: var(--primary-dark); }
.search-results { margin-top: 16px; }
.search-results .result-item {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  margin-bottom: 4px;
}
.search-results .result-item:hover { background: var(--primary-light); }
.search-results .result-item .result-title { font-weight: 600; color: var(--primary); }
.search-results .result-item .result-desc { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.search-hot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search-hot-label { font-size: 13px; color: var(--text-light); font-weight: 500; flex-shrink: 0; }
.search-hot-tag {
  padding: 6px 16px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.search-hot-tag:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
  letter-spacing: 0.3px;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(26,86,219,0.25); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,86,219,0.35); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-light); }
.btn-lg { padding: 16px 40px; font-size: 16px; border-radius: var(--radius-sm); }


/* ========== Section Background Variants ========== */
.section-warm { background: var(--bg-warm); }
.section-blue { background: linear-gradient(180deg, #eff6ff 0%, #f0f4f8 100%); }

/* ========== Wave Dividers ========== */
.wave-divider {
  position: relative;
  width: 100%;
  height: 40px;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 40px;
}
.wave-up { transform: rotate(180deg); }

/* ========== Section spacing refinement ========== */
.section {
  padding: 72px 0;
  position: relative;
}
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .wave-divider { height: 24px; }
  .wave-divider svg { height: 24px; }
}
/* ========== Hero Carousel ========== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 640px;
  overflow: hidden;
  background: #0f172a;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,23,42,0.25) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
  max-width: 680px;
}
.hero-text-card {
  background: rgba(255,255,255,0.50);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 18px;
  padding: 40px 46px 38px;
  max-width: 620px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 12px 48px rgba(0,0,0,0.06);
}
.hero-carousel .hero-badge {
  display: inline-block;
  background: rgba(26,86,219,0.08);
  border: 1px solid rgba(26,86,219,0.22);
  border-radius: 30px;
  padding: 7px 20px;
  font-size: 13px;
  color: #1a56db;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 12px;
}
.hero-text-card h1 {
  font-size: 40px;
  line-height: 1.6;
  color: #0f172a;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 24px;
}
.hero-text-card h1 span {
  display: block;
  font-size: 44px;
  padding-top: 14px;
        
    color: #1a3db5;}
.hero-text-card p {
  font-size: 16px;
  color: rgba(15,23,42,0.72);
  line-height: 2.6;
  margin-bottom: 24px;
}
.hero-carousel .btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 11px;
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(15,23,42,0.25);
  cursor: pointer;
  transition: all .3s;
  border: none;
}
.dot.active { background: #1a56db; transform: scale(1.3); box-shadow: 0 0 10px rgba(26,86,219,0.40); }
.hero-counter {
  position: absolute;
  bottom: 20px;
  right: 44px;
  z-index: 3;
  color: rgba(15,23,42,0.30);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
}

/* Mobile hero */
@media (max-width: 768px) {
  .hero-carousel { height: 540px; }
  .hero-content { padding: 0 24px; }
  .hero-text-card { padding: 28px 24px 26px; }
  .hero-text-card h1 { font-size: 30px; margin-bottom: 20px; font-weight: 900; }
  .hero-text-card h1 span { font-size: 34px; font-weight: 900; }
  .hero-text-card p { font-size: 14px; margin-bottom: 20px; }
  .hero-carousel .btn-group { flex-direction: column; }
}

/* ========== Trust Bar ========== */
.trust-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  padding: 32px 0;
  position: relative;
  z-index: 2;
}
.trust-bar .container { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; }
.trust-item { text-align: center; position: relative; }
.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--border);
}
.trust-item .num { font-size: 34px; font-weight: 900; font-weight: 900; color: var(--primary); line-height: 1.1; }
.trust-item .label { font-size: 14px; color: var(--text-light); margin-top: 6px; font-weight: 500; }

/* ========== Sections ========== */
.section { padding: 96px 0; position: relative; }
.section-gray { background: var(--bg-gray); }
.section-title { text-align: center; margin-bottom: 64px; }
.section-title .subtitle {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.section-title h2 { font-size: 34px; font-weight: 900; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.section-title p { color: var(--text-light); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* ========== Advantage Cards ========== */
.advantages { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; }
.adv-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.adv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.adv-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.adv-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 24px;
}
.adv-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.adv-card p { color: var(--text-light); font-size: 15px; line-height: 1.7; }

/* ========== Course Cards ========== */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.course-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.course-card .course-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
}
.course-card-header {
  padding: 32px 28px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-gray);
}
.course-card-header h3 { font-size: 20px; font-weight: 700; color: var(--primary); }
.course-card-body { padding: 24px 28px 28px; }
.course-card-body .course-feature {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; font-size: 14px; color: var(--text-secondary);
}
.course-card-body .course-feature::before {
  content: ''; width: 6px; height: 6px;
  background: var(--primary); border-radius: 50%; flex-shrink: 0;
}
.course-card-footer { padding: 0 28px 28px; text-align: center; }
.course-card-footer .btn { width: 100%; }

/* ========== Case Cards ========== */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 28px; }
.case-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all var(--transition);
}
.case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.case-card .case-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.case-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 700; flex-shrink: 0;
}
.case-info .name { font-weight: 700; font-size: 17px; color: var(--primary); }
.case-info .school { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.case-card .case-score {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700; font-size: 14px; border-radius: 6px; margin-bottom: 16px;
}
.case-card .case-desc { color: var(--text-light); font-size: 15px; line-height: 1.8; font-style: italic; }


/* ========== CTA Banner ========== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.cta h2 { font-size: 28px; margin-bottom: 12px; }
.cta p { font-size: 16px; opacity: 0.9; margin-bottom: 24px; }
.cta .btn-lg {
  display: inline-block;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}
.cta .btn-lg:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ========== CTA Banner (inline variant) ========== */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}
.cta-banner-left .icon { font-size: 34px; font-weight: 900; margin-right: 16px; flex-shrink: 0; }
.cta-banner-left h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cta-banner-left p { font-size: 13px; color: var(--text-light); margin: 0; }
.cta-banner .btn-primary { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 600px) {
  .cta-banner { flex-direction: column; text-align: center; padding: 20px; }
  .cta-banner-left { text-align: center; }
  .cta-banner-left .icon { margin-right: 0; margin-bottom: 8px; }
}


/* ========== Gallery Rows (v3) ========== */
.gallery-section .section-title { margin-bottom: 48px; }
.gallery-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 40px;
  gap: 20px;
  position: relative;
}
.gallery-row-label {
  flex: 0 0 180px;
  min-width: 180px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.gallery-row-label .row-icon { font-size: 32px; }
.gallery-row-label h3 { font-size: 18px; font-weight: 700; margin: 0; }
.gallery-row-label p { font-size: 13px; opacity: 0.8; margin: 0; line-height: 1.5; }
.gallery-row-track-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-row-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: auto;
  padding: 4px 4px;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.gallery-row-track::-webkit-scrollbar { display: none; }
.gallery-row-track.user-scrolling {
  overflow-x: auto;
  scroll-behavior: smooth;
  cursor: grab;
}
.gallery-row-track.user-scrolling:active { cursor: grabbing; }
.gallery-row-item {
  flex: 0 0 280px;
  min-width: 280px;
  height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  transition: all var(--transition);
  position: relative;
}
.gallery-row-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.gallery-row-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-row-arrows {
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3;
}
.gallery-row-track-wrap:hover .gallery-row-arrows { opacity: 1; }
.gallery-row-arrow {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--text);
}
.gallery-row-arrow:hover { background: #fff; box-shadow: var(--shadow-md); }

/* ========== External Links Bar ========== */
.external-bar {
  background: var(--bg-gray);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}
.external-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.external-bar-label { font-size: 14px; color: var(--text-light); font-weight: 500; }
.external-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
}
.external-bar .link-wechat { background: #07c160; color: #fff; }
.external-bar .link-wechat:hover { background: #06ad56; color: #fff; transform: translateY(-1px); }
.external-bar .link-redbook { background: #ff2442; color: #fff; }
.external-bar .link-redbook:hover { background: #e6203b; color: #fff; transform: translateY(-1px); }
.external-bar .link-douyin { background: #111; color: #fff; }
.external-bar .link-douyin:hover { background: #333; color: #fff; transform: translateY(-1px); }
.external-bar .link-bilibili { background: #00a1d6; color: #fff; }
.external-bar .link-bilibili:hover { background: #0093c4; color: #fff; transform: translateY(-1px); }


/* ========== Footer ========== */
.footer { background: var(--bg-dark); color: #9ca3af; padding: 56px 0 0; }
.footer .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer .brand { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer .brand-desc { font-size: 13px; line-height: 1.7; margin-bottom: 16px; opacity: 0.8; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer a { display: block; color: #9ca3af; font-size: 13px; padding: 4px 0; transition: color var(--transition); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; margin-top: 40px; text-align: center; font-size: 12px; color: #6b7280; }
.footer-bottom a { color: #9ca3af; display: inline; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 768px) {
  .footer .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 480px) {
  .footer .container { grid-template-columns: 1fr; text-align: center; }
}



/* ========== Media Matrix (Platform Presence) ========== */
.media-matrix {
  background: var(--bg-dark);
  padding: 48px 0;
}
.media-matrix-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}
.media-matrix-title .mm-icon { font-size: 24px; }
.media-matrix-title h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.media-matrix-sub {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 32px;
}

.media-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.media-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  min-width: 90px;
}
.media-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.media-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff !important;
  font-size: 18px;
  font-weight: 800;
  background: var(--mc, var(--primary));
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.media-img {
  width: 44px; height: 44px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.media-item:hover .media-img { transform: scale(1.08); }

.media-name {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

@media (max-width: 600px) {
  .media-grid { gap: 10px; }
  .media-item { padding: 12px 14px; min-width: 76px; }
  .media-logo { width: 38px; height: 38px; font-size: 15px; border-radius: 10px; }
  .media-img {
  width: 44px; height: 44px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.media-item:hover .media-img { transform: scale(1.08); }

.media-name { font-size: 10px; }
}

/* ========== Floating Contact ========== */
.floating-contact {
  position: fixed;
  bottom: 20px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.floating-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: "PingFang SC","Microsoft YaHei",sans-serif;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  transition: transform .2s, box-shadow .2s;
}
.floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.floating-btn-main {
  background: linear-gradient(135deg, #1a56db, #2563eb);
  color: #fff;
}
.floating-btn-main:hover { opacity: .9; }
.float-icon {
  width: 22px; height: 22px;
  display: block;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.floating-btn-phone {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
}

.floating-btn-phone:hover { background: #e08e00; transform: scale(1.08); }
.floating-panel {
  display: none;
  position: fixed;
  margin-bottom: 320px; bottom: 260px;
  right: 32px;
  z-index: 9998;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 0;
  width: 320px;
  overflow: hidden;
}
.floating-panel.active { display: block; }
.floating-panel-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 24px 24px 20px;
  text-align: center;
}
.floating-panel-header h3 { font-size: 18px; margin-bottom: 6px; }
.floating-panel-header p { font-size: 13px; opacity: 0.8; }
.floating-panel-body { padding: 24px; }
.floating-panel-body .qr-code {
  width: 180px; height: 180px;
  margin: 0 auto 16px;
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  border: 1px solid var(--border);
}
.floating-panel-body .qr-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.floating-panel-body .contact-ways { display: flex; flex-direction: column; gap: 8px; }
.floating-panel-body .contact-way {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  transition: all var(--transition);
  text-decoration: none;
}
.floating-panel-body .contact-way:hover { background: var(--primary-light); color: var(--primary); }
.floating-panel-body .contact-way .way-icon { font-size: 20px; }
.floating-panel-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none; border: none;
  color: rgba(255,255,255,0.7);
  font-size: 20px; cursor: pointer;
}
.floating-panel-close:hover { color: #fff; }

/* ========== Teachers ========== */
.teachers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.teacher-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.teacher-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.teacher-card .teacher-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #fff;
}
.teacher-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.teacher-card .title { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.teacher-card .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 12px; }
.t-tag { display: inline-block; padding: 2px 10px; background: var(--bg-gray); border-radius: 12px; font-size: 11px; color: var(--text-light); }
.teacher-card .desc { font-size: 13px; color: var(--text-light); line-height: 1.6; }
@media (max-width: 1024px) { .teachers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .teachers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .teachers-grid { grid-template-columns: 1fr; } }

/* ========== Brand Story ========== */
.brand-story { max-width: 860px; margin: 0 auto; }
.brand-story-header { text-align: center; margin-bottom: 40px; }
.brand-badge { display: inline-block; padding: 6px 18px; background: var(--primary-light); color: var(--primary); border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 20px; }
.brand-story-header h2 { font-size: 24px; line-height: 1.5; margin-bottom: 12px; }
.brand-story-header p { color: var(--text-light); font-size: 15px; }
.brand-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.brand-val-item { display: flex; gap: 16px; padding: 20px; background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-sm); transition: all var(--transition); }
.brand-val-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.val-num { font-size: 24px; font-weight: 800; color: var(--primary); opacity: 0.2; flex-shrink: 0; line-height: 1; }
.brand-val-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.brand-val-item p { font-size: 13px; color: var(--text-light); line-height: 1.6; }
@media (max-width: 768px) { .brand-values { grid-template-columns: 1fr; } }

/* ========== Value Pyramid ========== */
.pyramid { max-width: 660px; margin: 0 auto; }
.pyramid-top, .pyramid-mid, .pyramid-base { display: flex; justify-content: center; margin-bottom: 6px; }
.pyramid-block { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; text-align: center; padding: 18px 24px; border-radius: var(--radius-sm); transition: all var(--transition); }
.pyramid-top .pyramid-block { opacity: 1; }
.pyramid-mid .pyramid-block { opacity: 0.85; }
.pyramid-base .pyramid-block { opacity: 0.7; }
.pyramid-block:hover { transform: scale(1.03); opacity: 1; }
.pyramid-label { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.pyramid-sublabel { font-size: 13px; opacity: 0.8; }
.no-spend { max-width: 860px; margin: 0 auto; text-align: center; }
.no-spend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.no-spend-card { background: var(--bg-gray); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 28px 20px; text-align: left; transition: all var(--transition); }
.no-spend-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.no-spend-icon { font-size: 32px; margin-bottom: 12px; }
.no-spend-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.no-spend-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.no-spend-cta { padding: 16px 24px; background: linear-gradient(135deg, var(--accent), #fbbf24); color: #1f2937; border-radius: var(--radius); font-size: 17px; font-weight: 700; display: inline-block; }
@media (max-width: 768px) { .no-spend-grid { grid-template-columns: 1fr; } }

/* ========== Course Cards v2 ========== */
.course-grid-v2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.ccard {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.ccard-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  background: #eff6ff;
  color: var(--primary);
  width: fit-content;
}
.ccard-tag-prem { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.ccard-tag-off { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #9d174d; }
.ccard-tag-prem-off { background: linear-gradient(135deg, #fde68a, #fcd34d); color: #78350f; font-size:13px; }
.ccard-name { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.ccard-price { margin-bottom: 4px; }
.ccard-price .yen { font-size: 16px; vertical-align: top; margin-right: 2px; }
.ccard-price strong { font-size: 32px; font-weight: 900; color: var(--primary); }
.ccard-desc { font-size: 13px; color: var(--text-light); margin-bottom: 16px; line-height: 1.5; }
.ccard-list { list-style: none; padding: 0; margin: 0 0 16px; flex: 1; }
.ccard-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-secondary);
}
.ccard-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; font-size: 12px; }
.ccard-fit {
  padding: 10px 14px;
  background: var(--bg-gray);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.5;
}
.ccard-note {
  font-size: 11px;
  color: var(--accent);
  background: #fffbeb;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
  line-height: 1.6;
  border-left: 2px solid var(--accent);
}
.btn-tuan {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  color: #1f2937;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 10px;
  transition: all var(--transition);
}
.btn-tuan:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,158,11,0.3); }
.ccard .btn-block { width: 100%; text-align: center; text-decoration: none; }
.ccard .btn-outline { margin-top: auto; }
.ccard-online { border-top: 3px solid var(--primary); }
.ccard-offline { border-top: 3px solid #db2777; }
.ccard-premium { box-shadow: 0 0 0 1px rgba(245,158,11,0.3); }
@media (max-width: 1024px) { .course-grid-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .course-grid-v2 { grid-template-columns: 1fr; } }

/* ========== Page Header ========== */
.page-header {
  background: linear-gradient(135deg, var(--primary-light) 0%, #dbeafe 100%);
  padding: 60px 0;
  text-align: center;
}
.page-header h1 { font-size: 34px; font-weight: 900; font-weight: 800; color: var(--text); }
.page-header p { color: var(--text-light); margin-top: 12px; font-size: 16px; }
.breadcrumb { font-size: 14px; color: var(--text-light); margin-bottom: 40px; }
.breadcrumb a { color: var(--text-light); }

/* ========== Contact Page ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; color: var(--primary); }
.contact-item {
  display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start;
  padding: 20px; background: var(--bg-gray); border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.contact-item:hover { background: var(--primary-light); }
.contact-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; margin-bottom: 16px; font-family: inherit;
  transition: border-color var(--transition); background: var(--bg-gray);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary); background: var(--bg);
}
.contact-form textarea { height: 140px; resize: vertical; }

/* ========== News ========== */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  padding: 28px 0; border-bottom: 1px solid var(--border-light);
  display: flex; gap: 24px; transition: all var(--transition);
}
.news-item:hover { padding-left: 8px; }
.news-date { min-width: 90px; color: var(--text-light); font-size: 14px; padding-top: 2px; font-weight: 500; }
.news-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--primary); }
.news-item p { color: var(--text-light); font-size: 15px; line-height: 1.7; }

/* ========== FAQ ========== */
.faq-item { border-bottom: 1px solid var(--border-light); padding: 28px 0; }
.faq-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--primary); }
.faq-item p { color: var(--text-light); font-size: 15px; line-height: 1.8; }

/* ========== Info Hub ========== */
.info-hub { background: var(--bg); border-bottom: 1px solid var(--border-light); padding: 40px 0 32px; }
.info-hub-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-hub-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.hot-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.hot-tag-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.hot-tag-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.hot-tag-card .tag-icon { font-size: 16px; }
.hot-tag-card .tag-badge {
  padding: 2px 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

/* Info hub search */
.info-hub-search {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.info-hub-search input {
  flex: 1;
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--bg-gray);
}
.info-hub-search input:focus { outline: none; border-color: var(--primary); background: #fff; }
.info-hub-search button {
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.info-hub-search button:hover { background: var(--primary-dark); }

.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}
.info-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.info-card .info-icon {
  width: 42px; height: 42px;
  background: var(--bg-gray);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.info-card .info-text { flex: 1; min-width: 0; }
.info-card .info-text strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.info-card .info-text p { font-size: 12px; color: var(--text-light); margin: 0; line-height: 1.4; }
.info-card .info-arrow { font-size: 16px; color: var(--border); flex-shrink: 0; transition: color var(--transition); }
.info-card:hover .info-arrow { color: var(--primary); }

/* Last card subtle highlight */
.info-card:last-of-type {
  border-color: #fcd34d;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 60%);
}
.info-card:last-of-type:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(245,158,11,0.12);
}
@media (max-width: 768px) {
  .info-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .info-card { padding: 14px 12px; gap: 10px; }
  .info-card .info-icon { width: 36px; height: 36px; font-size: 17px; }
}
@media (max-width: 480px) { .info-cards { grid-template-columns: 1fr; } }



/* ========== 悬浮联系区 ========== */


/* 两个快捷按钮 */

.float-btn {
  width: auto;
  min-width: 44px;
  height: auto;
  border-radius: 22px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  white-space: nowrap;
}
.float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}


.float-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.float-btn-img {
  width: 24px;
  height: 24px;
  display: block;
}
.float-btn-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* 二维码卡片 */

.qr-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08);
}
.qr-label {
  font-size: 13px;
  font-weight: 600;
  color: #1a56db;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.qr-img {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto 10px;
  border-radius: 8px;
  border: 1px solid #eee;
}
.phone-row {
  font-size: 13px;
  color: #334155;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* 二维码弹窗 */

.qr-popup.show { display: flex; }
.qr-popup-card {
  background: #fff;
  border-radius: 18px;
  padding: 36px 40px 32px;
  text-align: center;
  position: relative;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 12px 48px rgba(0,0,0,0.25);
}
.qr-popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}
.qr-popup-close:hover { color: #334155; }
.qr-popup-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}
.qr-popup-img {
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto 14px;
  border-radius: 10px;
  border: 1px solid #eee;
}
.qr-popup-phone {
  font-size: 15px;
  color: #334155;
  font-weight: 600;
  margin-bottom: 10px;
}
.qr-popup-tip {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

@media (max-width: 768px) {
  
  .float-btn { min-width: 36px; height: auto; font-size: 13px; padding: 8px 12px; gap: 6px; } .float-btn-img { width: 20px; height: 20px; } .float-btn-label { font-size: 11px; }
  .float-btns { gap: 8px; }
  .qr-card { width: 130px; padding: 12px 10px 10px; }
  .qr-img { width: 100px; height: 100px; }
  .phone-row { font-size: 11px; }
  .qr-label { font-size: 11px; margin-bottom: 8px; }
  .qr-popup-card { padding: 28px 24px 24px; }
  .qr-popup-img { width: 160px; height: 160px; }
}

/* ========== 隐藏第三方客服/悬浮组件 ========== */
/* 核弹级：隐藏一切非我方控制的右下角悬浮元素 */
body > [class*="meiqia"],
body > [id*="meiqia"],
body > [class*="kefu"],
body > [id*="kefu"],
body > [class*="sobot"],
body > [id*="sobot"],
body > [class*="udesk"],
body > [id*="udesk"],
body > [class*="chat-btn"],
body > [id*="chat-btn"],
body > [class*="live800"],
body > [id*="live800"],
body > [class*="qimo"],
body > [id*="qimo"],
body > [class*="cloudim"],
body > [id*="cloudim"],
body > [class*="qidian"],
body > [id*="qidian"],
body > [class*="xiaoneng"],
body > [id*="xiaoneng"],
body > [class*="zhichi"],
body > [id*="zhichi"],
body > [class*="crisp"],
body > [id*="crisp"],
body > [class*="ds-chat"],
body > [id*="ds-chat"],
body > [class*="go-customer"],
body > [id*="go-customer"],
body > [class*="kf"],
body > [id*="kf"],
body > [class*="customer-service"],
body > [id*="customer-service"],
body > [class*="online-kefu"],
body > [id*="online-kefu"],
body > [class*="lxkf"],
body > [id*="lxkf"],
body > [class*="zixun"],
body > [id*="zixun"],
body > [class*="consult"],
body > [id*="consult"],
body > [class*="support"],
body > [id*="support"],
body > [class*="help-btn"],
body > [id*="help-btn"],
body > [class*="side-bar"],
body > [id*="side-bar"],
body > [class*="sidebar"],
body > [id*="sidebar"],
body > [class*="toolbar"],
body > [id*="toolbar"],
body > [class*="float-win"],
body > [id*="float-win"],
body > [class*="float-window"],
body > [id*="float-window"],
body > [class*="fixed-bottom"],
body > [id*="fixed-bottom"],
body > [class*="right-bar"],
body > [id*="right-bar"],
body > [class*="right-bar-item"],
body > [id*="right-bar-item"],
body > [class*="contact-float"],
body > [id*="contact-float"],
body > [class*="service-widget"],
body > [id*="service-widget"],
body > [class*="widget"],
body > [id*="widget"] ~ *:not(.floating-contact):not(.floating-panel),
div[style*="position: fixed"][style*="bottom"]:not(.floating-contact):not(.floating-panel),
div[style*="position:fixed"][style*="bottom"]:not(.floating-contact):not(.floating-panel) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -99999px !important;
  z-index: -9999 !important;
}

/* 二维码常驻卡片 */
.qr-card {
  background: #fff;
  transition: box-shadow 0.25s ease;
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  padding: 14px 14px 12px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
}
.qr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.15);
  transition: transform .2s, box-shadow .2s;
}
.qr-label {
  font-size: 13px; font-weight: 600; color: #1a56db;
  margin-bottom: 8px; letter-spacing: 1px;
}
.qr-img {
  width: 120px; height: 120px; display: block;
  margin: 0 auto 8px; border-radius: 8px; border: 1px solid #eee;
}
.phone-row {
  font-size: 13px; color: #334155; font-weight: 500;
}

@media (max-width: 768px) {
  .floating-contact { bottom: 14px; right: 12px; gap: 8px; }
  .qr-card { padding: 10px 8px 8px; }
  .qr-img { width: 100px; height: 100px; }
  .qr-label { font-size: 11px; margin-bottom: 6px; }
  .phone-row { font-size: 11px; }
}


/* ========== AI Search Results ========== */
.ai-search-results {
  max-width: 680px;
  margin: 16px auto 0;
}

.ai-answer-card {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ai-answer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  border-bottom: 1px solid #dce6f5;
}

.ai-badge {
  font-size: 13px;
  font-weight: 600;
  color: #1a3db5;
}

.ai-note {
  font-size: 11px;
  color: #8a9bb5;
}

.ai-answer-body {
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.9;
  color: #2c3e50;
  min-height: 60px;
}

.ai-answer-body a {
  color: #1a3db5;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ai-answer-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  background: #fafbfc;
  border-top: 1px solid #e8ecf1;
  font-size: 12px;
  color: #6b7d95;
}

.ai-answer-footer a {
  color: #1a3db5;
  font-weight: 600;
  text-decoration: none;
}

/* Loading dots */
.ai-loading {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8a9bb5;
  font-size: 14px;
}

.ai-dot {
  width: 8px;
  height: 8px;
  background: #1a3db5;
  border-radius: 50%;
  animation: aiDotPulse 1.4s infinite ease-in-out;
}

.ai-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes aiDotPulse {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .ai-answer-footer {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}


/* ========== Container Reset (fix layout) ========== */
/* 裸 .container 恢复为通用容器；带作用域规则（.header .container 等）优先级更高不受影响 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: block;
  box-sizing: border-box;
}


/* ================================================================
   质感升级包 v1 (2026-08-16)
   1. 页面加载过渡 2. 滚动渐显 3. 数字滚动 4. 微交互增强
   ================================================================ */

/* ---------- 1. 页面加载过渡 ---------- */
@keyframes pageLoadFade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 首屏关键区块依次淡入（错峰 0.15s） */
.hero-carousel, .trust-bar, .info-cards-section, .section-blue {
  animation: pageLoadFade 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.trust-bar { animation-delay: 0.12s; }
.info-cards-section { animation-delay: 0.24s; }
.section-blue { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .hero-carousel, .trust-bar, .info-cards-section, .section-blue {
    animation: none;
  }
}

/* ---------- 2. 滚动渐显（核心质感） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 各板块默认隐藏，JS 滚动到视口时渐显 */
.gallery-section > .container > .section-title,
.gallery-section .gallery-row,
#cta2, #cases > .container > .section-title,
#cases .case-card,
.media-matrix, .info-hub,
.footer .container > div,
.external-bar,
.cases-grid .case-card,
.adv-card, .brand-val-item, .pyramid-top, .pyramid-mid, .pyramid-base,
.ccard, .course-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ---------- 3. 数字滚动 ---------- */
.stat-num { display: inline-block; }

/* ---------- 4. 微交互增强 ---------- */
/* 按钮按压反馈 */
.btn, .cta-banner-btn, .hot-tag-card, .info-card, .case-card, .ccard, .course-card, .adv-card {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease,
              background 0.25s ease,
              border-color 0.25s ease !important;
}
.btn:active { transform: scale(0.96); }
.cta-banner-btn:active { transform: scale(0.95); }

/* 卡片悬浮抬升 */
.case-card:hover, .ccard:hover, .course-card:hover, .adv-card:hover, .info-card:hover, .hot-tag-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
}

/* 图片悬停轻微放大 */
.gallery-row-item img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-row-item:hover img {
  transform: scale(1.06);
}

/* 页脚链接滑入下划线 */
.footer a {
  position: relative;
}
.footer a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.footer a:hover::after { width: 100%; }

/* 板块标题淡入辅助 */
.section-title { transition: opacity 0.6s ease, transform 0.6s ease; }

/* 悬浮联系区入场动画 */
.floating-contact {
  animation: fcIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
@keyframes fcIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
