/* ========== 惠爱志愿者协会官网 - 设计系统 ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #8B1A2B;
  --red-light: #A52A3D;
  --red-dark: #6B1220;
  --gold: #C9A96E;
  --gold-light: #D4BC8A;
  --gold-dark: #A88A4E;
  --dark: #1A1A2E;
  --dark-soft: #2A2A3E;
  --light: #F8F6F3;
  --white: #FFFFFF;
  --gray-100: #F1F0ED;
  --gray-200: #E5E3DE;
  --gray-300: #C5C3BE;
  --gray-500: #8A8883;
  --gray-700: #4A4843;
  --gray-900: #1F1E1B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,.16);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: "PingFang SC","Microsoft YaHei","Hiragino Sans GB",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-serif: "Noto Serif SC","Source Han Serif SC","Songti SC","SimSun",serif;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========== HEADER ========== */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 44px; height: 44px; background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 20px; font-weight: 700; font-family: var(--font-serif);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title { font-size: 18px; font-weight: 700; color: var(--dark); }
.logo-sub { font-size: 11px; color: var(--gray-500); letter-spacing: 1px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--gray-700);
  transition: var(--transition);
}
.nav a:hover, .nav a.active { color: var(--red); background: rgba(139,26,43,.06); }
.nav .btn-nav {
  margin-left: 12px; padding: 8px 20px;
  background: var(--red); color: var(--white) !important; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 13px;
}
.nav .btn-nav:hover { background: var(--red-light); color: var(--white) !important; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: var(--transition); border-radius: 2px; }

/* ========== HERO ========== */
.hero {
  position: relative; padding: 80px 0;
  background: linear-gradient(135deg, #8B1A2B 0%, #6B1220 50%, #4A0A14 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(201,169,110,.2) 0%, transparent 55%),
              radial-gradient(ellipse at 70% 80%, rgba(255,255,255,.06) 0%, transparent 60%);
}
.hero-pattern {
  position: absolute; inset: 0; z-index: 1;
  opacity: .08;
  background-color: transparent;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255,255,255,.3) 5px, rgba(255,255,255,.3) 6px),
    repeating-linear-gradient(-45deg, transparent, transparent 5px, rgba(255,255,255,.3) 5px, rgba(255,255,255,.3) 6px);
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; z-index: 1;
  background: linear-gradient(to top, var(--light), transparent);
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: rgba(201,169,110,.15); border: 1px solid rgba(201,169,110,.3);
  border-radius: 50px; font-size: 13px; color: var(--gold-light); margin-bottom: 24px;
  font-weight: 500;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-family: var(--font-serif); font-size: 48px; font-weight: 800;
  color: var(--white); line-height: 1.25; margin-bottom: 16px; letter-spacing: 2px;
}
.hero h1 span { color: var(--gold); }
.hero p { font-size: 17px; color: rgba(255,255,255,.75); line-height: 1.8; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition); white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--dark); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,169,110,.3); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,26,43,.3); }
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { background: var(--gray-100); }

/* ========== SECTIONS ========== */
.section { padding: 80px 0; }
.section-light { background: var(--white); }
.section-gray { background: var(--gray-100); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 3px; color: var(--gold); margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-serif); font-size: 36px; font-weight: 700;
  color: var(--dark); margin-bottom: 12px; letter-spacing: 1px;
}
.section-header p { font-size: 16px; color: var(--gray-500); max-width: 560px; margin: 0 auto; }
.divider { width: 50px; height: 3px; background: var(--gold); margin: 16px auto; border-radius: 2px; }

/* ========== STATS BAR ========== */
.stats-bar { background: var(--white); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item .num { font-family: var(--font-serif); font-size: 42px; font-weight: 800; color: var(--red); }
.stat-item .label { font-size: 14px; color: var(--gray-500); margin-top: 4px; }

/* ========== NEWS CARDS ========== */
.news-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-bottom: 24px; }
.news-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card.featured { grid-row: span 2; }
.news-card-img {
  height: 220px; background: linear-gradient(135deg, var(--red-dark), var(--red));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.news-card.featured .news-card-img { height: 280px; }
.news-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-card-date { font-size: 12px; color: var(--gold-dark); font-weight: 600; letter-spacing: 1px; margin-bottom: 8px; }
.news-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--dark); line-height: 1.5; }
.news-card h3 a { color: var(--dark); text-decoration: none; }
.news-card h3 a:hover { color: var(--red); }
.news-card.featured h3 { font-size: 22px; }
.news-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; flex: 1; }
.news-card .read-more {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--red);
}
.news-sidebar { display: flex; flex-direction: column; gap: 24px; }
.news-mini {
  background: var(--white); border-radius: var(--radius); padding: 20px 24px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  display: flex; gap: 16px; align-items: flex-start;
}
.news-mini:hover { box-shadow: var(--shadow-md); }
.news-mini-date { font-size: 11px; color: var(--gold-dark); font-weight: 600; white-space: nowrap; min-width: 70px; }
.news-mini h4 { font-size: 15px; font-weight: 600; color: var(--dark); }
.news-mini p { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.top-badge { display: inline-block; background: rgba(201,169,110,.15); color: var(--gold-dark); padding: 3px 10px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.badge-danger { background: var(--red); color: var(--white); padding: 3px 10px; border-radius: 50px; font-size: 12px; }

/* ========== ACTIVITIES ========== */
.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.activity-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.activity-card-header {
  padding: 28px 24px 20px; position: relative;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
}
.activity-date-badge {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--white); color: var(--red); border-radius: var(--radius);
  padding: 8px 16px; font-weight: 700; margin-bottom: 16px;
}
.activity-date-badge .day { font-size: 28px; line-height: 1; font-family: var(--font-serif); }
.activity-date-badge .month { font-size: 12px; letter-spacing: 1px; }
.activity-card-header h3 { font-size: 18px; font-weight: 700; line-height: 1.5; }
.activity-card-body { padding: 20px 24px; }
.activity-meta { display: flex; gap: 16px; font-size: 13px; color: var(--gray-500); margin-bottom: 12px; flex-wrap: wrap; }
.activity-card-body p { font-size: 14px; color: var(--gray-700); line-height: 1.7; }

/* ========== ENTERPRISE ========== */
.enterprise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.enterprise-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 24px; box-shadow: var(--shadow-sm);
  transition: var(--transition); text-align: center;
  border: 1px solid transparent;
}
.enterprise-card:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.enterprise-logo {
  width: 72px; height: 72px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: var(--white); font-size: 24px; font-weight: 700;
  overflow: hidden;
}
.enterprise-logo img { width: 100%; height: 100%; object-fit: cover; }
.enterprise-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.enterprise-card .industry {
  display: inline-block; padding: 3px 12px; background: rgba(201,169,110,.15);
  color: var(--gold-dark); border-radius: 50px; font-size: 12px; font-weight: 600;
  margin-bottom: 12px;
}
.enterprise-card p { font-size: 13px; color: var(--gray-500); line-height: 1.6; }
.enterprise-card-empty {
  border: 2px dashed var(--gray-300); opacity: .6;
}
.enterprise-card-empty .enterprise-logo { background: linear-gradient(135deg, #555, #333); }
.filter-bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-tag {
  padding: 6px 20px; border-radius: 50px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition); text-decoration: none;
  color: var(--gray-700); background: var(--gray-200);
}
.filter-tag.active, .filter-tag:hover { background: var(--red); color: var(--white); }

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  padding: 64px 0; text-align: center; position: relative; overflow: hidden;
  color: var(--white);
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,169,110,.15), transparent);
}
.cta-banner h2 { font-family: var(--font-serif); font-size: 32px; font-weight: 700; margin-bottom: 12px; position: relative; }
.cta-banner p { font-size: 16px; opacity: .8; margin-bottom: 28px; position: relative; }

/* ========== PAGE HEADER ========== */
.page-header {
  padding: 60px 0; text-align: center;
  background: linear-gradient(to bottom, var(--white), var(--gray-100));
  border-bottom: 1px solid var(--gray-200);
}
.page-header h1 { font-family: var(--font-serif); font-size: 40px; font-weight: 800; color: var(--dark); }
.breadcrumb { display: flex; gap: 8px; justify-content: center; font-size: 13px; color: var(--gray-500); margin-top: 12px; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--red); }

/* ========== NEWS LIST ========== */
.news-list-h { display: flex; gap: 24px; margin-bottom: 24px; }
.news-list-h .news-card-img { width: 200px; height: auto; min-height: 150px; flex-shrink: 0; }

/* ========== NEWS/ACTIVITY DETAIL ========== */
.article { max-width: 760px; margin: 0 auto; padding: 48px 0; }
.article-meta { display: flex; gap: 16px; font-size: 13px; color: var(--gray-500); margin-bottom: 24px; flex-wrap: wrap; align-items: center; }
.article h1 { font-family: var(--font-serif); font-size: 32px; font-weight: 800; margin-bottom: 16px; line-height: 1.4; color: var(--dark); }
.article-content { font-size: 16px; line-height: 2; color: var(--gray-700); }
.article-content p { margin-bottom: 16px; }
.article-content h3 { font-family: var(--font-serif); font-size: 20px; margin: 24px 0 12px; color: var(--dark); }
.article-content ul, .article-content ol { padding-left: 20px; margin: 12px 0; }
.article-content li { margin-bottom: 4px; }

.activity-detail-header {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: var(--radius-lg); padding: 40px; color: var(--white);
  margin-bottom: 32px;
}
.activity-detail-header h1 { font-family: var(--font-serif); font-size: 28px; font-weight: 800; line-height: 1.4; color: var(--white); }
.activity-detail-info { display: flex; gap: 24px; margin-top: 20px; font-size: 14px; opacity: .9; flex-wrap: wrap; }

/* ========== ABOUT PAGE ========== */
.mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.mission-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--red); transition: var(--transition);
}
.mission-card:hover { box-shadow: var(--shadow-md); border-left-color: var(--gold); }
.mission-card .icon { font-size: 32px; margin-bottom: 12px; }
.mission-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.mission-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-item {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.service-item:hover { box-shadow: var(--shadow-md); }
.service-item .icon { font-size: 32px; margin-bottom: 8px; }
.service-item h4 { font-size: 15px; font-weight: 700; margin: 8px 0; color: var(--dark); }
.service-item p { font-size: 13px; color: var(--gray-500); }
.pricing-card {
  background: linear-gradient(135deg, var(--dark), var(--dark-soft));
  border-radius: var(--radius-xl); padding: 48px; text-align: center;
  color: var(--white); max-width: 500px; margin: 0 auto;
  box-shadow: var(--shadow-xl); position: relative; overflow: hidden;
}
.pricing-card .badge { position: absolute; top: 20px; right: 20px; font-size: 12px; color: var(--gold); letter-spacing: 2px; padding: 4px 16px; border: 1px solid rgba(201,169,110,.4); border-radius: 50px; }
.pricing-card .price { font-size: 56px; font-weight: 800; color: var(--gold); font-family: var(--font-serif); }
.pricing-card .price small { font-size: 20px; font-weight: 400; }
.pricing-card .per { font-size: 14px; color: rgba(255,255,255,.5); margin-bottom: 24px; }
.pricing-features { text-align: left; margin: 24px auto; max-width: 300px; padding: 0; }
.pricing-features li { padding: 8px 0; font-size: 14px; color: rgba(255,255,255,.8); list-style: none; display: flex; align-items: center; gap: 8px; }
.pricing-features li::before { content: '✓'; color: var(--gold); font-weight: 700; }

/* ========== CONTACT PAGE ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item {
  display: flex; gap: 16px; padding: 20px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.ci-icon { width: 48px; height: 48px; background: rgba(139,26,43,.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-info-item h4 { font-size: 14px; color: var(--gray-500); margin-bottom: 2px; }
.contact-info-item p { font-size: 15px; font-weight: 600; color: var(--dark); }
.contact-form {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-md);
}
.contact-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; color: var(--dark); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font-sans);
  transition: var(--transition); background: var(--gray-100);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--red); background: var(--white); box-shadow: 0 0 0 3px rgba(139,26,43,.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ========== LOGIN PAGE ========== */
.login-page { display: flex; min-height: calc(100vh - 72px); }
.login-visual {
  flex: 1; background: linear-gradient(135deg, var(--dark) 0%, #2D1A1F 50%, var(--red-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.login-visual-content { position: relative; z-index: 2; text-align: center; color: var(--white); padding: 48px; }
.login-visual-content h2 { font-family: var(--font-serif); font-size: 32px; margin-bottom: 12px; }
.login-visual-content p { opacity: .7; font-size: 15px; }
.login-form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--white); padding: 48px; }
.login-form-box { width: 100%; max-width: 400px; }
.login-form-box h2 { font-size: 28px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.login-form-box .subtitle { font-size: 14px; color: var(--gray-500); margin-bottom: 32px; }

/* ========== ENTERPRISE SITE ========== */
.ent-hero {
  background: linear-gradient(135deg, var(--dark), var(--dark-soft));
  padding: 60px 0; color: var(--white); text-align: center;
}
.ent-hero .ent-logo { width: 80px; height: 80px; border-radius: var(--radius); background: var(--red); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }
.ent-hero h1 { font-family: var(--font-serif); font-size: 32px; margin-bottom: 8px; }
.ent-hero .ent-industry { font-size: 14px; opacity: .7; }
.ent-section { padding: 48px 0; }
.ent-section h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 700; margin-bottom: 24px; color: var(--dark); }
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-item { display: flex; gap: 16px; padding: 16px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: var(--transition); }
.article-item:hover { box-shadow: var(--shadow-md); }
.article-item-date { font-size: 12px; color: var(--gray-500); white-space: nowrap; }
.article-item h4 { font-size: 15px; font-weight: 600; color: var(--dark); }
.article-item p { font-size: 13px; color: var(--gray-500); }
.kb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kb-card { padding: 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: var(--transition); }
.kb-card:hover { box-shadow: var(--shadow-md); }
.kb-card h4 { font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }

/* ========== FOOTER ========== */
.footer {
  background: var(--dark); color: rgba(255,255,255,.6);
  padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-col a { display: block; font-size: 13px; padding: 4px 0; color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-col a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px; display: flex; justify-content: space-between;
  align-items: center; font-size: 12px;
}
.footer-links { display: flex; gap: 16px; }

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
.action-bar { display: flex; justify-content: center; margin-top: 32px; }

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .3s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; width: 90%; max-width: 480px; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px); transition: transform .3s;
}
.modal-overlay.show .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 28px;
  color: var(--gray-500); cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--red); }
.modal-title { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--dark); margin-bottom: 4px; text-align: center; }
.modal-sub { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; text-align: center; }
.modal-form .form-group { margin-bottom: 16px; }
.modal-form .form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.modal-form .form-group input,
.modal-form .form-group select,
.modal-form .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font-sans);
  transition: var(--transition); background: var(--gray-100);
}
.modal-form .form-group input:focus,
.modal-form .form-group select:focus,
.modal-form .form-group textarea:focus {
  outline: none; border-color: var(--red); background: var(--white);
  box-shadow: 0 0 0 3px rgba(139,26,43,.08);
}
.modal-form .form-group textarea { resize: vertical; min-height: 80px; }
.empty-state { text-align: center; padding: 48px 0; color: var(--gray-500); }
.empty-state p { font-size: 16px; }
.narrow { max-width: 860px; margin: 0 auto; }
.card { border: none; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-lg); }
.alert { padding: 12px 20px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #d4edda; color: #155724; }
.alert-danger { background: #f8d7da; color: #721c24; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 36px; }
  .news-featured { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: repeat(2, 1fr); }
  .enterprise-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .login-page { flex-direction: column; }
  .login-visual { min-height: 200px; }
  .kb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--white);
    padding: 16px; border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg); z-index: 100;
  }
  .menu-toggle { display: block; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-item .num { font-size: 32px; }
  .activity-grid, .enterprise-grid { grid-template-columns: 1fr; }
  .news-list-h { flex-direction: column; }
  .news-list-h .news-card-img { width: 100%; min-height: 160px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .kb-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .page-header h1 { font-size: 30px; }
}
