:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fed7aa;
  --accent: #fbbf24;
  --green: #10b981;
  --bg: #fffaf5;
  --bg-soft: #fff7ed;
  --text: #2a211c;
  --text-muted: #8b7468;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 20px 60px rgba(234, 88, 12, 0.12);
  --shadow-sm: 0 8px 24px rgba(234, 88, 12, 0.08);
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.12), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.1), transparent 35%),
    linear-gradient(180deg, #fffaf5 0%, #fff7ed 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* 背景漂浮装饰 */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(249, 115, 22, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.navbar {
  background: rgba(255, 250, 245, 0.85) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.1);
  padding: 14px 0;
  position: relative;
  z-index: 100;
}

.navbar-brand {
  font-weight: 800;
  color: var(--primary-dark) !important;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand .logo-icon {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 18px !important;
  margin: 0 4px;
  transition: all 0.25s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  background: var(--primary-light);
  color: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.hero { padding: 60px 0 40px; position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 600px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-btns { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; animation: fadeInUp 0.8s ease 0.2s both; }

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none; border-radius: 999px; padding: 12px 28px;
  font-weight: 700; color: #fff;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.25);
  transition: all 0.25s ease; text-decoration: none; display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(234, 88, 12, 0.35); color: #fff; }

.btn-outline {
  background: transparent; border: 2px solid rgba(249, 115, 22, 0.3);
  border-radius: 999px; padding: 10px 26px; font-weight: 700;
  color: var(--primary-dark); transition: all 0.25s ease; text-decoration: none; display: inline-block;
}
.btn-outline:hover { background: var(--primary-light); border-color: var(--primary); transform: translateY(-2px); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 40px 0; }

.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(249, 115, 22, 0.08);
  position: relative; overflow: hidden; transition: all 0.3s ease;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat-card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transition: width 0.3s;
}
.stat-card:hover::before { width: 6px; }
.stat-card .num {
  font-size: 2.5rem; font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.stat-card .label { color: var(--text-muted); font-size: 0.95rem; margin-top: 8px; font-weight: 600; }
.stat-card .icon { position: absolute; right: 20px; top: 24px; font-size: 1.8rem; opacity: 0.3; transition: all 0.3s; }
.stat-card:hover .icon { opacity: 0.6; transform: scale(1.2) rotate(10deg); }

.section-title { margin: 50px 0 24px; }
.section-title h2 { font-weight: 800; color: var(--text); font-size: 1.8rem; position: relative; display: inline-block; }
.section-title h2::after {
  content: ""; position: absolute; bottom: -6px; left: 0;
  width: 50px; height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.section-title p { color: var(--text-muted); margin-top: 14px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.info-card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(249, 115, 22, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.info-card::after {
  content: ""; position: absolute; top: -50%; right: -50%;
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.1), transparent);
  transition: all 0.5s;
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.info-card:hover::after { top: -30%; right: -30%; }

.info-card .tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; margin-bottom: 12px;
  animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.tag-orange { background: var(--primary-light); color: var(--primary-dark); }
.tag-green { background: #dcfce7; color: #15803d; }
.tag-blue { background: #dbeafe; color: #1d4ed8; }
.tag-red { background: #fee2e2; color: #b91c1c; }

.info-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.info-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; margin: 0; }
.info-card .meta { display: flex; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(249, 115, 22, 0.15); color: var(--text-muted); font-size: 0.85rem; }

.table-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; border: 1px solid rgba(249, 115, 22, 0.08);
}
.table-card table { width: 100%; border-collapse: collapse; }
.table-card th {
  background: linear-gradient(135deg, var(--bg-soft), var(--primary-light));
  color: var(--primary-dark); padding: 16px 20px; text-align: left; font-weight: 700; font-size: 0.9rem;
}
.table-card td { padding: 14px 20px; border-top: 1px solid rgba(249, 115, 22, 0.08); color: var(--text); transition: all 0.2s; }
.table-card tr:hover td { background: var(--bg-soft); transform: scale(1.01); }

.page-header { padding: 50px 0 30px; position: relative; z-index: 1; }
.page-header h1 { font-size: 2rem; font-weight: 900; color: var(--text); }
.page-header p { color: var(--text-muted); margin-top: 8px; }

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }

.login-card {
  background: var(--card); border-radius: 28px; box-shadow: var(--shadow);
  overflow: hidden; max-width: 900px; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  animation: cardIn 0.6s ease;
}

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

.login-left {
  background: linear-gradient(150deg, #8f4b37 0%, #ea580c 60%, #fbbf24 100%);
  color: #fff; padding: 50px 40px; position: relative; overflow: hidden;
}
.login-left::before {
  content: ""; position: absolute; right: -60px; bottom: -60px;
  width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}
.login-left::after {
  content: ""; position: absolute; left: -30px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, 0.08);
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.login-left h2 { font-size: 1.8rem; font-weight: 900; margin: 16px 0; position: relative; z-index: 1; }
.login-left p { opacity: 0.9; line-height: 1.7; position: relative; z-index: 1; }
.login-left .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; position: relative; z-index: 1; }
.login-left .badges span { padding: 6px 12px; background: rgba(255,255,255,0.2); border-radius: 999px; font-size: 0.85rem; }

.login-right { padding: 50px 40px; }
.login-right h3 { font-weight: 800; margin-bottom: 6px; }
.login-right .sub { color: var(--text-muted); margin-bottom: 28px; }
.login-right .form-group { margin-bottom: 18px; }
.login-right label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--text); font-size: 0.9rem; }
.login-right input {
  width: 100%; padding: 12px 16px; border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 12px; font-size: 1rem; transition: all 0.25s;
}
.login-right input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15); transform: translateY(-1px); }
.login-right button {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none; border-radius: 12px; color: #fff; font-weight: 700; font-size: 1rem;
  cursor: pointer; margin-top: 8px; box-shadow: 0 10px 24px rgba(234, 88, 12, 0.25); transition: all 0.25s;
}
.login-right button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(234, 88, 12, 0.35); }
.login-right .demo { margin-top: 24px; padding-top: 20px; border-top: 1px dashed rgba(249, 115, 22, 0.2); }
.login-right .demo code { display: block; padding: 6px 10px; background: var(--bg-soft); border-radius: 8px; margin-top: 6px; color: var(--primary-dark); font-size: 0.85rem; transition: all 0.2s; }
.login-right .demo code:hover { background: var(--primary-light); transform: translateX(4px); }

.footer {
  text-align: center; padding: 30px 0; color: var(--text-muted); font-size: 0.9rem;
  margin-top: 60px; border-top: 1px solid rgba(249, 115, 22, 0.1);
  position: relative; z-index: 1;
}

.floating-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: var(--primary-light); color: var(--primary-dark);
  border-radius: 999px; font-weight: 700; font-size: 0.85rem; margin-bottom: 16px;
  animation: badgeFloat 3s ease-in-out infinite;
}

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

/* 飞鸟装饰 */
.bird {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.6;
  animation: birdFly 15s linear infinite;
  pointer-events: none;
}

@keyframes birdFly {
  0% { transform: translateX(-100px) translateY(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateX(calc(100vw + 100px)) translateY(-50px); opacity: 0; }
}

/* 爱心装饰 */
.heart {
  position: absolute;
  color: var(--primary);
  opacity: 0.4;
  animation: heartFloat 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heartFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-15px) scale(1.1); opacity: 0.7; }
}

/* 滚动淡入 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .login-card { grid-template-columns: 1fr; }
  .login-left { padding: 30px; }
  .login-right { padding: 30px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
}

/* ===== 新增：公益网站专业组件 ===== */

/* 大数字影响力展示 */
.impact-section {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fbbf24 100%);
  border-radius: 32px;
  padding: 50px 40px;
  margin: 50px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(234, 88, 12, 0.25);
}
.impact-section::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  animation: float 8s ease-in-out infinite;
}
.impact-section::after {
  content: "";
  position: absolute;
  bottom: -60px; left: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: float 10s ease-in-out infinite reverse;
}
.impact-section h2 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.impact-section .sub {
  text-align: center;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.impact-item {
  text-align: center;
  color: #fff;
}
.impact-item .big-num {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.impact-item .unit {
  font-size: 1.2rem;
  font-weight: 700;
  margin-left: 4px;
}
.impact-item .desc {
  margin-top: 10px;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* 募捐进度条 */
.fund-card {
  background: var(--card);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(249, 115, 22, 0.1);
}
.fund-card .goal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 700;
}
.fund-card .goal .raised { color: var(--primary-dark); font-size: 1.4rem; }
.fund-card .goal .target { color: var(--text-muted); }
.progress-track {
  height: 16px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  position: relative;
  animation: progressGrow 2s ease-out;
}
.progress-fill::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}
@keyframes progressGrow {
  from { width: 0; }
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.fund-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 故事卡片 */
.story-card {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(249, 115, 22, 0.08);
  transition: all 0.3s;
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.story-img {
  height: 180px;
  background: linear-gradient(135deg, #fed7aa, #fbbf24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}
.story-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.1));
}
.story-body { padding: 24px; }
.story-body h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.story-body p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }
.story-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary-dark);
  margin-bottom: 10px;
}

/* 功能板块 */
.feature-panel {
  background: var(--card);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(249, 115, 22, 0.08);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-item {
  text-align: center;
  padding: 28px 20px;
  border-radius: 20px;
  background: var(--bg-soft);
  transition: all 0.3s;
}
.feature-item:hover {
  background: linear-gradient(135deg, var(--primary-light), #fff);
  transform: translateY(-4px);
}
.feature-item .f-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.25);
}
.feature-item h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.feature-item p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* CTA 横幅 */
.cta-banner {
  background: linear-gradient(135deg, #2a211c 0%, #4a2c1a 100%);
  border-radius: 28px;
  padding: 50px 40px;
  text-align: center;
  margin: 50px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "❤️";
  position: absolute;
  top: 20px; left: 30px;
  font-size: 3rem;
  opacity: 0.2;
  animation: float 4s ease-in-out infinite;
}
.cta-banner::after {
  content: "🕊️";
  position: absolute;
  bottom: 20px; right: 30px;
  font-size: 2.5rem;
  opacity: 0.2;
  animation: float 5s ease-in-out infinite reverse;
}
.cta-banner h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.cta-banner p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.cta-banner .btn-primary {
  position: relative;
  z-index: 1;
  padding: 14px 40px;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .impact-item .big-num { font-size: 2.2rem; }
}
