/* ========================================
   中国老教授协会 - 公共样式文件
   复用首页设计系统，所有二级/功能页面共用
   ======================================== */

/* CSS Variables */
:root {
  --c: #B22222;
  --cd: #8B1A1A;
  --g: #C5975B;
  --gl: #D4A76A;
  --ink: #1A1A2E;
  --il: #2D2D44;
  --s: #4A4A5A;
  --mist: #F7F5F0;
  --cream: #FDFBF7;
  --cl: #EAE7E0;
  --w: #FFF;
  --sm: 0 1px 3px rgba(26,26,46,.06);
  --md: 0 4px 20px rgba(26,26,46,.08);
  --lg: 0 12px 40px rgba(26,26,46,.12);
  --xl: 0 20px 60px rgba(26,26,46,.15);
  --r: 12px;
  --t: .4s cubic-bezier(.25,.46,.45,.94);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--c); color: var(--w); }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: var(--cl); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--s); }

/* ========================================
   Header
   ======================================== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--t);
  padding: 0 4rem;
  background: rgba(26,26,46,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
header.scrolled {
  background: rgba(253,251,247,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(26,26,46,.06);
}
header.scrolled .logo { color: var(--ink); }
header.scrolled .lt .cn { color: var(--ink); }
header.scrolled .lt .en { color: var(--s); }
header.scrolled nav a { color: var(--s); }
header.scrolled nav a::after { background: var(--c); }
header.scrolled nav a:hover { color: var(--c); }
header.scrolled .mobile-menu-btn { color: var(--ink); }

.hi {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--w);
}
.le {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--sm);
  transition: transform var(--t);
}
.le img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo:hover .le { transform: scale(1.05); }
.lt {
  position: relative;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: 1;
  white-space: nowrap;
}
.lt .cn {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: .08em;
  color: var(--w);
}
.lt .en {
  font-size: .6rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Navigation */
nav { display: flex; align-items: center; gap: 2.5rem; }
nav a {
  text-decoration: none;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color var(--t);
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--g);
  transition: width var(--t);
}
nav a:hover { color: var(--w); }
nav a:hover::after { width: 100%; }
nav a.active { color: var(--w); }
nav a.active::after { width: 100%; background: var(--gl); }
.nc {
  background: var(--c) !important;
  color: var(--w) !important;
  padding: 8px 24px !important;
  border-radius: 100px;
}
.nc:hover {
  background: var(--cd) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(178,34,34,.3);
}
.nc::after { display: none !important; }

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--w);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--ink);
  flex-direction: column;
  z-index: 999;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  color: var(--w);
  text-decoration: none;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: background var(--t);
}
.mobile-menu a:hover { background: rgba(178,34,34,.3); }
.mobile-menu a.active { background: rgba(178,34,34,.2); }

/* ========================================
   Page Banner (二级页面顶部横幅)
   ======================================== */
.page-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--ink) 0%, #16213E 40%, #1A1A2E 70%, #0F3460 100%);
  padding: 140px 4rem 80px;
  text-align: center;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(255,255,255,.5) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(255,255,255,.5) 50px);
  background-size: 50px 50px;
  opacity: .03;
}
.page-banner .glow-1 {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: var(--c);
  filter: blur(120px);
  top: -200px; right: -100px;
  opacity: .15;
  pointer-events: none;
}
.page-banner .glow-2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: var(--g);
  filter: blur(120px);
  bottom: -200px; left: -100px;
  opacity: .08;
  pointer-events: none;
}
.page-banner .banner-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.page-banner .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}
.page-banner .breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color var(--t);
}
.page-banner .breadcrumb a:hover { color: var(--gl); }
.page-banner .breadcrumb .sep { opacity: .4; }
.page-banner .breadcrumb .current { color: var(--gl); font-weight: 500; }
.page-banner h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--w);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.page-banner h1 .accent {
  background: linear-gradient(135deg, var(--g), var(--gl));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-banner .banner-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  font-weight: 300;
}

/* ========================================
   Section通用
   ======================================== */
section { padding: 100px 4rem; }
.si { max-width: 1400px; margin: 0 auto; }
.sh { text-align: center; margin-bottom: 4rem; }
.slbl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--c);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.slbl::before, .slbl::after {
  content: '';
  width: 30px; height: 1px;
  background: var(--c);
  opacity: .4;
}
.stl {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.sst {
  font-size: 1.05rem;
  color: var(--s);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* ========================================
   Footer
   ======================================== */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.5);
  padding: 60px 4rem 30px;
}
.fi {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.fb p {
  font-size: .85rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}
.fcol h4 {
  font-family: 'Noto Serif SC', serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--w);
  margin-bottom: 16px;
}
.fcol a {
  display: block;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: .85rem;
  margin-bottom: 10px;
  transition: color var(--t);
}
.fcol a:hover { color: var(--gl); }
.fbot {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
}

/* ========================================
   Buttons
   ======================================== */
.bp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--c);
  color: var(--w);
  border: none;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  font-family: 'Noto Sans SC', sans-serif;
}
.bp:hover {
  background: var(--cd);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(178,34,34,.35);
}
.bs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  font-family: 'Noto Sans SC', sans-serif;
}
.bs:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.4);
  color: var(--w);
}

/* ========================================
   Reveal Animation
   ======================================== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Card通用
   ======================================== */
.card {
  background: var(--w);
  border-radius: var(--r);
  overflow: hidden;
  transition: all var(--t);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--xl);
}

/* ========================================
   Form通用
   ======================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: .82rem;
  color: var(--s);
  font-weight: 500;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .9rem;
  font-family: 'Noto Sans SC', sans-serif;
  transition: all var(--t);
  outline: none;
  background: var(--mist);
  border: 1px solid var(--cl);
  color: var(--ink);
}
.form-input::placeholder { color: var(--s); }
.form-input:focus {
  border-color: var(--c);
  box-shadow: 0 0 0 3px rgba(178,34,34,.1);
}
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .9rem;
  font-family: 'Noto Sans SC', sans-serif;
  transition: all var(--t);
  outline: none;
  background: var(--mist);
  border: 1px solid var(--cl);
  color: var(--ink);
  resize: vertical;
  min-height: 120px;
}
.form-textarea::placeholder { color: var(--s); }
.form-textarea:focus {
  border-color: var(--c);
  box-shadow: 0 0 0 3px rgba(178,34,34,.1);
}
.form-btn {
  width: 100%;
  padding: 14px;
  background: var(--c);
  color: var(--w);
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
  font-family: 'Noto Sans SC', sans-serif;
  margin-top: 4px;
}
.form-btn:hover {
  background: var(--cd);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(178,34,34,.3);
}
.form-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .82rem;
  margin-top: 8px;
  display: none;
  align-items: center;
  gap: 6px;
}
.form-msg.success { display: flex; background: rgba(76,175,80,.1); color: #2E7D32; }
.form-msg.error { display: flex; background: rgba(178,34,34,.08); color: var(--c); }

/* ========================================
   Pagination
   ======================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 3rem;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--t);
}
.pagination a {
  background: var(--w);
  color: var(--s);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.pagination a:hover {
  background: var(--c);
  color: var(--w);
  transform: translateY(-1px);
}
.pagination .active {
  background: var(--c);
  color: var(--w);
  pointer-events: none;
}
.pagination .dots {
  background: none;
  box-shadow: none;
  color: var(--s);
  pointer-events: none;
}

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  background: var(--c);
  color: var(--w);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--md);
  transition: all var(--t);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
  background: var(--cd);
  transform: translateY(-3px);
  box-shadow: var(--lg);
}

/* ========================================
   关怀模式
   ======================================== */
.care-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.8);
  padding: 5px 14px;
  border-radius: 100px;
  cursor: pointer;
  font-size: .78rem;
  font-family: 'Noto Sans SC', sans-serif;
  transition: all .3s;
  white-space: nowrap;
}
.care-btn:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.4);
}
.care-btn.active {
  background: rgba(197,151,91,.2);
  border-color: var(--gl);
  color: var(--gl);
}
.care-btn .care-icon { font-size: 1rem; }
header.scrolled .care-btn {
  border-color: var(--cl);
  color: var(--s);
}
header.scrolled .care-btn.active {
  background: rgba(197,151,91,.15);
  border-color: var(--g);
  color: var(--g);
}
.care-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 关怀模式 - 通用调整 */
body.care-mode { line-height: 2 !important; }
body.care-mode { font-size: 18px !important; }
body.care-mode .hi { height: 90px; }
body.care-mode .lt .cn { font-size: 1.3rem; }
body.care-mode .lt .en { font-size: .72rem; }
body.care-mode nav a { font-size: 1.05rem; }
body.care-mode .le { width: 56px; height: 56px; }
body.care-mode .stl { font-size: 2.4rem; }
body.care-mode .sst { font-size: 1.08rem; }
body.care-mode .page-banner h1 { font-size: 2.8rem; }
body.care-mode .page-banner .banner-desc { font-size: 1.15rem; }
body.care-mode .fi { padding: 60px 4rem; }
body.care-mode footer { padding: 40px 4rem; }
body.care-mode footer a { font-size: .95rem; }
body.care-mode footer h4 { font-size: 1.1rem; }

/* ========================================
   Responsive - 多分辨率适配
   ======================================== */
@media (max-width: 1399px) {
  .hi, .si { max-width: 1200px; }
  section { padding: 80px 3rem; }
  .page-banner { padding: 120px 3rem 60px; }
  .page-banner h1 { font-size: 2.6rem; }
  .stl { font-size: 2.2rem; }
}

@media (max-width: 1199px) {
  .hi, .si { max-width: 1000px; }
  section { padding: 70px 2rem; }
  .page-banner { padding: 110px 2rem 50px; }
  .page-banner h1 { font-size: 2.4rem; }
}

@media (max-width: 991px) {
  section { padding: 60px 1.5rem; }
  .hi { padding: 0 1.5rem; }
  .page-banner { padding: 100px 1.5rem 40px; }
  .page-banner h1 { font-size: 2.2rem; }
  .fi { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .fbot { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 768px) {
  section { padding: 50px 1rem; }
  .hi, .si { max-width: 100%; padding: 0 1rem; }
  .hi { height: 70px; position: relative; }
  nav { display: none; }
  .mobile-menu-btn { display: block; }
  .care-btn { display: none !important; }
  .page-banner { padding: 90px 1rem 30px; }
  .page-banner h1 { font-size: 2rem; }
  .page-banner .banner-desc { font-size: .9rem; }
  .stl { font-size: 1.8rem; }
  .fi { grid-template-columns: 1fr; gap: 2rem; }
  .fbot { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 575px) {
  section { padding: 40px 0.8rem; }
  .hi { padding: 0 0.8rem; }
  .page-banner { padding: 85px 0.8rem 25px; }
  .page-banner h1 { font-size: 1.7rem; }
  .stl { font-size: 1.6rem; }
  .sst { font-size: .9rem; }
  .fbot { font-size: .7rem; }
}
