
/* Hero懒加载 - 初始不加载背景图 */
.hero {
  /* lazy loaded */
}
.hero.hero-loaded {
  background-image: linear-gradient(rgba(27, 79, 114, 0.80), rgba(27, 79, 114, 0.80)), url('../images/hero-bg.png');
}

/* ============================================================
   Liu's Blog — CSS (商务版)
   配色：深藏青蓝 + 琥珀金 + 纯净灰白
   ============================================================ */

/* ── 0. CSS 变量 ─────────────────────────────────────────── */
:root {
  /* 品牌色系 */
  --brand:         #E87722;   /* 暖橙主色 */
  --brand-mid:     #2E6DA4;   /* 中蓝 */
  --brand-light:   #5B9BD5;   /* 浅蓝 */
  --accent:        #C8882B;   /* 琥珀金 */
  --accent-light:  #E8B04B;   /* 亮金 */
  --accent-subtle: rgba(200, 136, 43, 0.08);
  --red:           #D93B3B;   /* 点睛红 */
  --red-glow:      rgba(217, 59, 59, 0.18);

  /* 卡片系统（效果5移植，去橙感） */
  --card-bg:       rgba(255, 255, 255, 0.14);
  --card-bg-hover: rgba(255, 255, 255, 0.22);
  --card-border:   rgba(255, 255, 255, 0.30);
  --card-shadow:    0 2px 12px rgba(27, 79, 114, 0.06);
  --card-shadow-h:  0 4px 20px rgba(27, 79, 114, 0.12);

  /* 背景与文字 */
  --bg:            #F4F6F8;   /* 冷静灰白 */
  --bg-alt:        rgba(27, 79, 114, 0.03);
  --bg-white:      #FFFFFF;
  --text:          #1C2A38;   /* 深石墨色 */
  --text-muted:    #4A5D72;   /* 灰蓝 */
  --text-light:    #8899AA;   /* 浅灰蓝 */
  --white:         #FFFFFF;

  /* CTA 按钮 */
  --btn-bg:        #E87722;
  --btn-glow:      0 2px 12px rgba(27, 79, 114, 0.25);
  --btn-glow-h:    0 4px 20px rgba(27, 79, 114, 0.4);

  /* 字体 */
  --font-zh:       "Noto Serif SC", "Source Han Serif CN", Georgia, serif;
  --font-en:       "Inter", "Segoe UI", sans-serif;

  /* 圆角/间距 */
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --radius-full:   999px;

  /* 过渡 */
  --t:             all 0.3s ease;
}

/* ── 1. 重置 ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-zh);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: var(--t);
}

a:hover {
  color: var(--brand-mid);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

/* ── 2. 全站容器 ─────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 3. 顶部导航栏 ───────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(27, 79, 114, 0.1);
  transition: var(--t);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.navbar-brand:hover {
  color: var(--brand);
}

.navbar-logo {
  width: 34px;
  height: 34px;
  background: var(--brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.navbar-nav a {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--t);
  white-space: nowrap;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--brand);
  background: rgba(27, 79, 114, 0.07);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* 语言切换器 */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(27, 79, 114, 0.06);
  border: 1px solid rgba(27, 79, 114, 0.14);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--t);
  white-space: nowrap;
}

.lang-btn:hover {
  background: rgba(27, 79, 114, 0.1);
  border-color: rgba(27, 79, 114, 0.25);
  color: var(--brand);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(27, 79, 114, 0.14);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow-h);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--t);
  overflow: hidden;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--t);
}

.lang-dropdown a:hover {
  background: rgba(27, 79, 114, 0.05);
  color: var(--brand);
}

.lang-dropdown a .flag {
  font-size: 1.1em;
}

/* 汉堡菜单按钮 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--t);
}

/* 移动端导航 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(27, 79, 114, 0.1);
  padding: 16px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  padding: 10px 14px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.mobile-nav a:hover {
  background: rgba(27, 79, 114, 0.05);
  color: var(--brand);
}

/* ── 4. Hero 区域 ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #E87722;
  /* lazy loaded */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(27, 79, 114, 0.08) 0%,
    rgba(46, 109, 164, 0.04) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(
    circle,
    rgba(200, 136, 43, 0.05) 0%,
    transparent 65%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 72px 0;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: #F4B740;
}

.hero-desc {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* CTA 按钮 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--btn-bg);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--btn-glow);
  transition: var(--t);
  font-family: inherit;
}

.btn-primary:hover {
  background: #163D60;
  box-shadow: var(--btn-glow-h);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(27, 79, 114, 0.22);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: var(--t);
  font-family: inherit;
}

.btn-secondary:hover {
  background: rgba(27, 79, 114, 0.05);
  border-color: rgba(27, 79, 114, 0.4);
  color: var(--brand);
  transform: translateY(-2px);
}

/* Hero 右侧数据卡 */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--card-shadow);
  transition: var(--t);
}

.hero-card:hover {
  background: var(--card-bg-hover);
  box-shadow: var(--card-shadow-h);
  transform: translateY(-3px);
}

.hero-card-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.hero-card-text {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.65;
}

.hero-stat {
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  transition: var(--t);
}

.hero-stat:hover {
  background: var(--card-bg-hover);
  transform: translateY(-2px);
}

.hero-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #F4B740;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.60);
  margin-top: 2px;
}

/* ── 5. 区块标题 ─────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

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

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

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
  padding: 4px 14px;
  background: rgba(27, 79, 114, 0.06);
  border: 1px solid rgba(27, 79, 114, 0.14);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── 6. 卡片网格 ─────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* 核心卡片 */
.warm-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--card-shadow);
  transition: var(--t);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.warm-card:hover {
  background: var(--card-bg-hover);
  box-shadow: var(--card-shadow-h);
  transform: translateY(-4px);
  border-color: rgba(27, 79, 114, 0.25);
}

.warm-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(27, 79, 114, 0.08);
  border: 1px solid rgba(27, 79, 114, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand);
  flex-shrink: 0;
  font-family: var(--font-en);
  letter-spacing: 0;
}

.warm-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.warm-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.warm-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  transition: var(--t);
  margin-top: auto;
}

.warm-card-link:hover {
  color: #b52a2a;
  gap: 8px;
}

/* 卡片顶边线 */
.warm-card-accent {
  position: relative;
  overflow: hidden;
}

.warm-card-accent::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--brand) 0%,
    var(--red) 50%,
    var(--brand) 100%
  );
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ── 7. 关于我区块 ─────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.about-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(27, 79, 114, 0.07);
  border: 2px solid rgba(27, 79, 114, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand);
  margin: 0 auto;
  font-family: var(--font-zh);
  letter-spacing: 0;
}

.about-info h2 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.about-info .about-sub {
  font-size: 0.88rem;
  color: var(--brand);
  margin-bottom: 18px;
  font-weight: 600;
}

.about-info p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-skill {
  padding: 5px 14px;
  background: rgba(27, 79, 114, 0.05);
  border: 1px solid rgba(27, 79, 114, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--t);
}

.about-skill:hover {
  background: rgba(27, 79, 114, 0.09);
  color: var(--brand);
}

/* ── 8. 数据统计 ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--t);
}

.stat-item:hover {
  background: var(--card-bg-hover);
  box-shadow: var(--card-shadow-h);
  transform: translateY(-3px);
}

.stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-num .unit {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red);
}

.stat-label {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* ── 9. 行业资讯列表 ─────────────────────────────────────── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--card-shadow);
  transition: var(--t);
  display: flex;
  align-items: center;
  gap: 18px;
}

.news-item:hover {
  background: var(--card-bg-hover);
  box-shadow: var(--card-shadow-h);
  transform: translateX(4px);
  border-color: rgba(27, 79, 114, 0.22);
}

.news-date {
  text-align: center;
  min-width: 50px;
  padding: 7px 10px;
  background: rgba(27, 79, 114, 0.06);
  border: 1px solid rgba(27, 79, 114, 0.12);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.news-date .month {
  font-size: 0.68rem;
  color: var(--brand);
  font-weight: 600;
  text-transform: uppercase;
}

.news-date .day {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

.news-content {
  flex: 1;
  min-width: 0;
}

.news-title {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-title:hover {
  color: var(--brand);
}

.news-source {
  font-size: 0.78rem;
  color: var(--text-light);
}

.news-arrow {
  color: var(--text-light);
  flex-shrink: 0;
  transition: var(--t);
}

.news-item:hover .news-arrow {
  color: var(--brand);
  transform: translateX(4px);
}

/* ── 10. 订阅区块 ─────────────────────────────────────────── */
.subscribe-section {
  background: linear-gradient(135deg, rgba(27,79,114,0.05), rgba(91,155,213,0.03));
  border: 1px solid rgba(27, 79, 114, 0.12);
  border-radius: var(--radius-lg);
  padding: 50px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.subscribe-section::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(200,136,43,0.06), transparent 65%);
  border-radius: 50%;
}

.subscribe-section h2 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.subscribe-section p {
  color: var(--text-muted);
  margin-bottom: 26px;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}

.subscribe-form input {
  flex: 1;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(27, 79, 114, 0.18);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: var(--t);
  font-family: inherit;
}

.subscribe-form input::placeholder {
  color: var(--text-light);
}

.subscribe-form input:focus {
  border-color: rgba(27, 79, 114, 0.45);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 12px rgba(27, 79, 114, 0.08);
}

/* ── 11. 页脚 ─────────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(244, 246, 248, 0.6);
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: #E8B04B;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.87rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact a {
  color: rgba(244, 246, 248, 0.55);
  font-size: 0.87rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-contact a:hover {
  color: #E8B04B;
}

.footer h4 {
  color: rgba(244, 246, 248, 0.85);
  font-size: 0.88rem;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(244, 246, 248, 0.5);
  font-size: 0.87rem;
  transition: var(--t);
}

.footer-links a:hover {
  color: #E8B04B;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(244, 246, 248, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(244, 246, 248, 0.4);
}

.footer-bottom a:hover {
  color: #E8B04B;
}

/* ── 12. 辅助类 ───────────────────────────────────────────── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 14px;
  background: rgba(27, 79, 114, 0.05);
  border: 1px solid rgba(27, 79, 114, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--t);
}

.tag:hover, .tag.active {
  background: rgba(27, 79, 114, 0.09);
  color: var(--brand);
}

/* ── 13. 返回顶部 ─────────────────────────────────────────── */
/* ── 页面顶部红线 ─────────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--brand) 0%,
    var(--red) 50%,
    var(--brand) 100%
  );
  z-index: 200;
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 42px;
  height: 42px;
  background: var(--brand);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--btn-glow);
  opacity: 0;
  visibility: hidden;
  transition: var(--t);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--red);
  box-shadow: 0 4px 20px rgba(217, 59, 59, 0.4);
  transform: translateY(-3px);px);
}

/* ── 14. 链接光感下划线 ───────────────────────────────────── */
.link-glow {
  position: relative;
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

.link-glow::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 1.5px;
  background: linear-gradient(
    90deg,
    rgba(217, 59, 59, 0.6),
    rgba(240, 100, 100, 0.5),
    rgba(217, 59, 59, 0.6)
  );
  border-radius: 2px;
  opacity: 0.5;
  transition: var(--t);
}

.link-glow:hover::after {
  opacity: 1;
}

/* ── 15. 响应式 ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
  }
  .hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .hero-content {
    max-width: 100%;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav.open { display: flex; }
  .hero-inner { padding: 48px 0; }
  .hero-visual { grid-template-columns: 1fr; }
  .hero-card-row { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .subscribe-form { flex-direction: column; }
  .subscribe-section { padding: 36px 24px; }
  .section { padding: 56px 0; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { min-height: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-item { padding: 20px 14px; }
  .stat-num { font-size: 1.7rem; }
}

/* ── 16. 产品详情弹窗 ─────────────────────────────────────── */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal.open {
  opacity: 1;
  visibility: visible;
}

.product-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.product-modal-content {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.product-modal.open .product-modal-content {
  transform: translateY(0);
}

.product-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(27, 79, 114, 0.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--t);
  z-index: 10;
}

.product-modal-close:hover {
  background: var(--red);
  color: white;
}

.product-modal-header {
  padding: 0;
}

.product-modal-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: rgba(27,79,114,0.06);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.product-modal-header-inner {
  padding: 24px 32px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.product-modal-icon {
  width: 60px;
  height: 60px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  flex-shrink: 0;
}

.product-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.product-modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-modal-body {
  padding: 28px 32px;
}

.product-modal-section {
  margin-bottom: 28px;
}

.product-modal-section:last-child {
  margin-bottom: 0;
}

.product-modal-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-modal-section-title::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.product-modal-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* 规格表格 */
.product-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-spec-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.product-spec-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* 特点列表 */
.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-feature {
  padding: 6px 14px;
  background: rgba(200, 136, 43, 0.08);
  border: 1px solid rgba(200, 136, 43, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

/* 应用场景 */
.product-applications {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-application {
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CTA */
.product-modal-cta {
  padding: 24px 32px;
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  display: flex;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 640px) {
  .product-modal-content { border-radius: 0; max-height: 100vh; }
  .product-modal-header, .product-modal-body { padding-left: 20px; padding-right: 20px; }
  .product-modal-header-inner { flex-direction: column; }
  .product-specs { grid-template-columns: 1fr; }
  .product-modal-cta { flex-direction: column; padding: 20px; }
}

/* ── 新闻/文章卡片样式 ─────────────────────────────── */
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white, #fff);
  border: 1px solid var(--card-border, #E8D5C4);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  height: 100%;
  box-sizing: border-box;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(232, 119, 34, 0.15);
  border-color: var(--brand, #E87722);
}
.news-card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
}
.news-card-category {
  font-size: 0.78em;
  font-weight: 600;
  color: var(--brand, #E87722);
  background: rgba(232, 119, 34, 0.1);
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.news-card-date {
  font-size: 0.8em;
  color: var(--text-muted, #888);
}
.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #333);
  margin: 0 0 10px;
  line-height: 1.5;
  font-family: 'Noto Serif SC', serif;
}
.news-card:hover .news-card-title {
  color: var(--brand, #E87722);
}
.news-card-excerpt {
  font-size: 0.88em;
  color: var(--text-muted, #666);
  line-height: 1.7;
  margin: 0 0 16px;
  flex: 1;
}
.news-card-cta {
  font-size: 0.82em;
  font-weight: 600;
  color: var(--brand, #E87722);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── 新闻网格布局 ───────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 0;
}
@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}
