/* PhD Tracking - 动感特色版样式 */
:root{
  --header-bg: rgba(15,23,42,0.85);
  --header-bg-scrolled: rgba(15,23,42,0.95);
  --bg: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
  --bg-solid: #0f172a;
  --muted: rgba(30,41,59,0.8);
  --text: #f8fafc;
  --soft: #cbd5e1;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --card: rgba(30,41,59,0.6);
  --card-hover: rgba(30,41,59,0.8);
  --line: rgba(71,85,105,0.3);
  --brand: #6366f1;
  --wechat: #07C160;
  --alipay: #1677FF;
  --glow: #6366f1;
  --success: #10b981;
  --warning: #f59e0b;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%);
  --glass-bg: rgba(248,250,252,0.08);
  --glass-border: rgba(248,250,252,0.15);
  --modal-glass-bg: rgba(15,23,42,0.85);
  --modal-glass-border: rgba(248,250,252,0.2);
}

.light-mode {
  --header-bg: rgba(255,255,255,0.85);
  --header-bg-scrolled: rgba(255,255,255,0.95);
  --bg: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 25%, #e2e8f0 50%, #cbd5e1 75%, #94a3b8 100%);
  --bg-solid: #f8fafc;
  --muted: rgba(241,245,249,0.8);
  --text: #0f172a;
  --soft: #475569;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --card: rgba(255,255,255,0.7);
  --card-hover: rgba(255,255,255,0.9);
  --line: rgba(203,213,225,0.5);
  --brand: #6366f1;
  --wechat: #07C160;
  --alipay: #1677FF;
  --glow: #6366f1;
  --success: #10b981;
  --warning: #f59e0b;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%);
  --glass-bg: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.25);
  --modal-glass-bg: rgba(255,255,255,0.9);
  --modal-glass-border: rgba(99,102,241,0.2);
}


*{box-sizing:border-box}

/* 全局动画和字体 */
html {
  scroll-behavior: smooth;
}

body{
  margin:0;
  padding:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background: var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* 动态背景粒子效果 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  background: 
    radial-gradient(circle at 25% 25%, rgba(99,102,241,0.15) 0%, transparent 70%),
    radial-gradient(circle at 75% 75%, rgba(139,92,246,0.1) 0%, transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(168,85,247,0.08) 0%, transparent 70%),
    radial-gradient(circle at 10% 90%, rgba(59,130,246,0.12) 0%, transparent 70%),
    radial-gradient(circle at 90% 10%, rgba(6,182,212,0.1) 0%, transparent 70%);
  animation: floatingBg 30s ease-in-out infinite;
  pointer-events: none;
  z-index: -2;
}

/* 动态光晕效果 */
body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    conic-gradient(from 0deg at 50% 50%, transparent, rgba(99,102,241,0.03), transparent, rgba(139,92,246,0.03), transparent);
  animation: rotate 60s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes floatingBg {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(-20px, -30px) scale(1.1) rotate(1deg); }
  50% { transform: translate(30px, 20px) scale(0.9) rotate(-1deg); }
  75% { transform: translate(-10px, 25px) scale(1.05) rotate(0.5deg); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

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

@keyframes fadeInScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* 中文字体支持 */
[lang="zh"] {
  font-family: "Noto Sans SC", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* 链接动画 */
a{
  color:var(--text);
  text-decoration:none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  transform: translateY(-2px);
}

.container{
  max-width:1080px;
  margin:0 auto;
  padding:0 20px;
}

/* Header 动画效果 */
.site-header{
  position:sticky;
  top:0;
  background: var(--header-bg);
  backdrop-filter:blur(25px);
  border-bottom:1px solid var(--glass-border);
  z-index:100;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.site-header.scrolled {
  background: var(--header-bg-scrolled);
  box-shadow: 0 8px 40px rgba(99,102,241,0.15);
  backdrop-filter: blur(30px);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:64px;
  transition: height 0.3s ease;
}

/* Logo 动画 */
.logo{
  font-weight:700;
  font-size:20px;
  position: relative;
  transition: all 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}
.logo span{
  color:var(--accent);
  position: relative;
}
.logo span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--glow));
  transition: width 0.4s ease;
}
.logo:hover span::after {
  width: 100%;
}

/* 导航动画 */
.nav{
  display:flex;
  align-items:center;
  gap:10px;
}

.nav a{
  margin:0 10px;
  color:var(--soft);
  position: relative;
  padding: 8px 0;
  transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav a:hover {
  color:var(--text);
  transform: translateY(-2px);
}

.nav a:hover::before {
  width: 100%;
}

/* 语言切换按钮动画 */
/* 语言切换滑块 */
.lang-slider-container {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

#lang-toggle-checkbox {
  display: none;
}

.lang-slider {
  position: relative;
  display: flex;
  align-items: center;
  width: 60px;
  height: 30px;
  background-color: var(--line);
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.lang-slider-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.lang-slider-text-en,
.lang-slider-text-zh {
  position: absolute;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  transition: opacity 0.3s ease;
  user-select: none;
}

.lang-slider-text-en {
  left: 8px;
  opacity: 1;
}

.lang-slider-text-zh {
  right: 8px;
  opacity: 0.5;
}

#lang-toggle-checkbox:checked + .lang-slider .lang-slider-thumb {
  transform: translateX(30px);
  background-color: var(--accent);
}

#lang-toggle-checkbox:checked + .lang-slider {
  background-color: var(--card);
}

#lang-toggle-checkbox:checked + .lang-slider .lang-slider-text-en {
  opacity: 0.5;
}

#lang-toggle-checkbox:checked + .lang-slider .lang-slider-text-zh {
  opacity: 1;
}
/* 按钮动画系统 */
.btn{
  display:inline-block;
  padding:14px 28px;
  border-radius:16px;
  background: var(--gradient-primary);
  color: #ffffff !important;
  font-weight:600;
  border:none;
  cursor:pointer;
  text-align:center;
  text-decoration:none;
  position: relative;
  overflow: hidden;
  transition:all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
  backdrop-filter: blur(10px);
  font-size: 16px;
  letter-spacing: 0.01em;
}

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

.btn:hover {
  background: var(--gradient-secondary);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(99,102,241,0.5);
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(-1px);
}

.btn-small{
  padding:6px 12px;
  font-size:12px;
}

.btn-ghost{
  background: var(--glass-bg);
  border:1px solid var(--glass-border);
  color:var(--text);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.btn-ghost:hover{
  border-color:var(--accent);
  color:var(--accent);
  background: rgba(99,102,241,0.15);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(99,102,241,0.2);
}

/* 微信支付宝按钮特殊动画 */
.btn-wechat{
  background:var(--wechat);
  color:#fff;
  margin:4px 0;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.btn-wechat:hover{
  background:#06B850;
  box-shadow: 0 8px 25px rgba(7,193,96,0.4);
}

.btn-alipay{
  background:var(--alipay);
  color:#fff;
  margin:4px 0;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.btn-alipay:hover{
  background:#0958d9;
  box-shadow: 0 8px 25px rgba(22,119,255,0.4);
}

.payment-icon{
  font-size:16px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  60% { transform: translateY(-2px); }
}

/* Hero Section 特殊效果 */
.hero{
  padding:120px 0;
  position: relative;
  overflow: hidden;
  background: transparent;
  backdrop-filter: blur(20px);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* 添加浮动元素 */
.hero::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 15%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.3), rgba(139,92,246,0.2), transparent);
  border-radius: 50%;
  filter: blur(40px);
  animation: floatUpDown 8s ease-in-out infinite;
  z-index: -1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 60%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(168,85,247,0.25), rgba(59,130,246,0.15), transparent);
  border-radius: 50%;
  filter: blur(30px);
  animation: floatUpDown 10s ease-in-out infinite reverse;
  z-index: -1;
}

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

.hero-inner{
  max-width:820px;
  position: relative;
  z-index: 1;
}

/* 标题打字效果 */
.hero h1{
  font-size:56px;
  line-height:1.1;
  margin:0 0 24px;
  font-weight: 800;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
  text-shadow: 0 0 50px rgba(99,102,241,0.3);
  letter-spacing: -0.02em;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero .lead{
  color:var(--soft);
  font-size:20px;
  margin:0 0 40px;
  line-height:1.7;
  animation: slideInUp 1s ease 0.3s both;
  font-weight: 400;
  max-width: 600px;
}

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

.accent{
  color:var(--accent);
  position: relative;
  -webkit-text-fill-color: var(--accent);
}

.accent::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--glow), var(--accent));
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.1); }
}

.cta-row{
  margin:40px 0;
  animation: slideInUp 1s ease 0.6s both;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.cta-row .btn{
  margin-right:16px;
  margin-bottom: 8px;
}

/* Badge 动画 */
.hero-badges{
  margin-top:40px;
  color:var(--soft);
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  animation: fadeInScale 1s ease 0.9s both;
}

.hero-badges span{
  padding:12px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius:50px;
  font-size:14px;
  color:var(--text);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  backdrop-filter: blur(10px);
  font-weight: 500;
}

.hero-badges span::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.1), transparent);
  transition: left 0.5s ease;
}

.hero-badges span:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 30px rgba(99,102,241,0.4);
  border-color: var(--accent);
}

.hero-badges span:hover::before {
  left: 100%;
}

/* Section 动画 */
.section{
  padding:80px 0;
  position: relative;
}

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

.section h2{
  text-align:center;
  margin-bottom:48px;
  font-size:32px;
  position: relative;
  animation: fadeInUp 0.8s ease both;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--glow));
  border-radius: 2px;
}

/* 卡片动画 */
.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.card{
  background: var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:24px;
  padding:32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInScale 0.8s ease both;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  border-radius: 24px 24px 0 0;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 20px 60px rgba(99,102,241,0.2);
  background: var(--card-hover);
}

.card:hover::before {
  transform: translateX(0);
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }

.card h3{
  margin-top:0;
  margin-bottom:20px;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card p{
  line-height:1.7;
  color:var(--soft);
  font-size: 1.05rem;
}

/* 列表项目动画 */
.list{
  list-style:none;
  margin:0;
  padding:0;
}

.item{
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transform-style: preserve-3d;
  animation: fadeInUp 0.6s ease both;
}

.item:nth-child(2) { animation-delay: 0.1s; }
.item:nth-child(3) { animation-delay: 0.2s; }

.item:hover {
  background: var(--card);
  border-color: var(--accent);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(139,92,246,0.15);
}

.item h4, .item p, .item .meta {
  transition: transform 0.3s ease;
}

.item:hover h4 {
  color: var(--accent);
}

.item:hover p, .item:hover .meta {
  transform: translateX(5px);
}

.item h4{
  margin:0 0 8px;
  color:var(--text);
}

.item p{
  margin:0;
  color:var(--soft);
  line-height:1.5;
}

.meta{
  color:#9aa3af;
  font-size:14px;
  flex-shrink:0;
  margin-left:20px;
  text-align:right;
}

/* Pricing 特殊动画 */
.pricing .price{
  padding:28px;
  position: relative;
}

.price-tag{
  font-size:36px;
  font-weight:700;
  margin:12px 0;
  color:var(--text);
  position: relative;
}

.price-tag span{
  font-size:18px;
  color:var(--soft);
}

.price.highlight{
  border-color:var(--brand);
  box-shadow:0 0 0 1px rgba(139,92,246,.3) inset;
  position: relative;
  overflow: hidden;
}

.price.highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(139,92,246,0.1), transparent 360deg);
  animation: rotate 4s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.price ul{
  list-style:none;
  padding:0;
  margin:20px 0;
}

.price li{
  padding:10px 0;
  color:var(--soft);
  border-bottom:1px solid var(--line);
  position: relative;
  transition: all 0.2s ease;
}

.price li:hover {
  color: var(--text);
  padding-left: 8px;
}

.price li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
  margin-right: 8px;
}

.price li:last-child{
  border-bottom:none;
}

/* 订阅表单动画 */
.subscribe{
  max-width:700px;
  text-align:center;
  margin:0 auto;
}

.subscribe h2{
  margin-bottom:16px;
}

.subscribe p{
  color:var(--soft);
  margin-bottom:32px;
}

.subscribe-form{
  display:flex;
  gap:12px;
  justify-content:center;
  margin-top:16px;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.subscribe-form input{
  flex:1;
  min-width:280px;
  padding:14px 18px;
  border-radius:12px;
  border:1px solid var(--line);
  background: var(--card);
  color:var(--text);
  font-size:16px;
  transition: all 0.3s ease;
}

.subscribe-form input:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(139,92,246,0.2);
  transform: translateY(-2px);
}

.subscribe-form input:focus + .btn {
  transform: translateY(-2px);
}

.form-hint{
  color:#9aa3af;
  font-size:14px;
  margin-top:12px;
}

/* FAQ 动画 */
details{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:20px;
  margin:16px 0;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease both;
}

details:nth-child(2) { animation-delay: 0.1s; }
details:nth-child(3) { animation-delay: 0.2s; }
details:nth-child(4) { animation-delay: 0.3s; }

details:hover {
  border-color: rgba(139,92,246,0.3);
  transform: translateY(-2px);
}

details[open] {
  border-color: var(--accent);
}

summary{
  cursor:pointer;
  font-weight:600;
  color:var(--text);
  margin-bottom:12px;
  transition: color 0.2s ease;
}

summary:hover {
  color: var(--accent);
}

details p{
  color:var(--soft);
  line-height:1.6;
  margin:0;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Footer 动画 */
.site-footer{
  border-top:1px solid var(--line);
  padding:32px 0;
  background:var(--muted);
  position: relative;
}

.foot-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.foot-nav{
  display:flex;
  gap:24px;
}

.foot-nav a{
  color:var(--soft);
  transition:all 0.3s ease;
  position: relative;
}

.foot-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.foot-nav a:hover{
  color:var(--text);
  transform: translateY(-2px);
}

.foot-nav a:hover::after {
  width: 100%;
}

/* QR Code Modal 增强动画 */
.qr-modal{
  display:none;
  position:fixed;
  z-index:1000;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.8);
  backdrop-filter:blur(20px);
  animation: fadeIn 0.4s ease;
}

.qr-modal-content{
  background: var(--modal-glass-bg);
  backdrop-filter: blur(25px);
  margin:8% auto;
  padding:48px;
  border:1px solid var(--modal-glass-border);
  border-radius:24px;
  width:90%;
  max-width:450px;
  text-align:center;
  position:relative;
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(99,102,241,0.25);
}

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

.qr-close{
  color:var(--soft);
  float:right;
  font-size:28px;
  font-weight:bold;
  position:absolute;
  right:20px;
  top:20px;
  cursor:pointer;
  transition:all 0.3s ease;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-close:hover{
  color:var(--text);
  background: rgba(139,92,246,0.1);
  transform: rotate(90deg);
}

.qr-code-container{
  margin:32px 0;
  display:flex;
  justify-content:center;
  align-items:center;
}

.qr-code-container img{
  border:2px solid var(--line);
  border-radius:12px;
  padding:16px;
  background:white;
  transition: transform 0.3s ease;
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.qr-code-container img:hover {
  transform: scale(1.05);
}

#qr-title{
  color:var(--text);
  margin-bottom:20px;
  font-size:22px;
  font-weight: 600;
}

#qr-description{
  color:var(--soft);
  margin:20px 0;
  line-height: 1.5;
}

.qr-amount{
  font-size:28px;
  font-weight:700;
  color:var(--accent);
  margin-top:20px;
  text-shadow: 0 0 10px rgba(139,92,246,0.3);
}

.qr-modal.show {
  opacity: 1;
}

.qr-modal.show .qr-modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* 响应式动画优化 */
@media (max-width: 768px) {
  .hero h1 { 
    font-size: 42px; 
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .hero { padding: 100px 0; }
  .cta-row { flex-direction: column; align-items: center; gap: 16px; }
  .cta-row .btn { margin-right: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  
  .subscribe-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .subscribe-form input {
    min-width: auto;
    margin-bottom: 12px;
  }
  
  .item { flex-direction: column; align-items: flex-start; }
  .meta { margin-left: 0; margin-top: 8px; text-align: left; }
  
  .foot-inner { flex-direction: column; gap: 20px; text-align: center; }
  
  .qr-modal-content { margin: 5% auto; padding: 30px; width: 95%; max-width: 400px; }
  
  .qr-code-container img {
    max-height: 250px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .hero { padding: 80px 0; }
  .hero h1 { 
    font-size: 32px; 
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .hero { padding: 80px 0; }
  .hero .lead { font-size: 18px; }
  .section { padding: 60px 0; }
  .section h2 { font-size: 24px; }
}

/* 性能优化 */
.card, .btn, .item, details {
  will-change: transform;
}

/* 深色模式适配 */
@media (prefers-color-scheme: light) {
  /* 如果需要浅色模式可以在这里添加 */
}

/* 减少动画敏感用户的动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--soft);
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px) rotate(15deg);
}

/* Removal Request Modal */
.removal-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.removal-modal-content {
  background: var(--modal-glass-bg);
  backdrop-filter: blur(25px);
  border: 1px solid var(--modal-glass-border);
  margin: 8% auto;
  padding: 40px;
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 8px 32px rgba(139,92,246,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.removal-close {
  color: var(--soft);
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.removal-close:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.removal-modal h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.removal-modal p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--soft);
}

.email-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 25px 0;
  padding: 20px;
  background: var(--muted);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.email-container code {
  background: transparent;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0;
  font-family: 'Monaco', 'Consolas', monospace;
}

.copy-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}

.removal-note {
  font-size: 0.9rem;
  color: var(--soft);
  margin-top: 20px;
  padding: 15px;
  background: var(--muted);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

/* Animation for modal */
.removal-modal.show {
  opacity: 1;
}

.removal-modal.show .removal-modal-content {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .removal-modal-content {
    margin: 5% auto;
    padding: 30px;
    width: 95%;
    max-width: 400px;
  }
  
  .email-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .email-container code {
    font-size: 1rem;
    word-break: break-all;
  }
}

/* Submission Request Modal */
.submission-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.submission-modal-content {
  background: var(--modal-glass-bg);
  backdrop-filter: blur(25px);
  border: 1px solid var(--modal-glass-border);
  margin: 5% auto;
  padding: 40px;
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 8px 32px rgba(139,92,246,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.submission-close {
  color: var(--soft);
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submission-close:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.submission-modal h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.submission-modal p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--soft);
}

.submission-note {
  font-size: 0.9rem;
  color: var(--soft);
  margin-top: 15px;
  padding: 15px;
  background: var(--muted);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

/* Profile Form Styles */
.profile-form {
  max-width: 100%;
  margin: 20px 0;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  width: 100%;
}

.form-row label span {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row select {
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin: 30px 0 20px 0;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-note {
  font-size: 0.85rem;
  color: var(--soft);
  text-align: center;
  line-height: 1.5;
  margin: 0;
  padding: 15px;
  background: var(--muted);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.submission-benefits {
  margin-top: 25px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(139,92,246,0.05));
  border-radius: 12px;
  border: 1px solid rgba(139,92,246,0.2);
}

.submission-benefits h4 {
  margin: 0 0 15px 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.submission-benefits ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.submission-benefits li {
  position: relative;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
}

.submission-benefits li::before {
  content: '✓';
  position: absolute;
  left: -20px;
  color: var(--accent);
  font-weight: bold;
  font-size: 1rem;
}

/* Animation for submission modal */
.submission-modal.show {
  opacity: 1;
}

.submission-modal.show .submission-modal-content {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .submission-modal-content {
    margin: 2% auto;
    padding: 25px;
    width: 95%;
    max-width: 500px;
    max-height: 95vh;
    overflow-y: auto;
  }
  
  .form-row {
    margin-bottom: 16px;
  }
  
  .form-row input,
  .form-row select,
  .form-row textarea {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
  
  .form-row textarea {
    min-height: 100px;
  }
  
  .btn-primary {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .form-note {
    padding: 12px;
    font-size: 0.8rem;
  }
}

/* User Authentication Styles */
.user-auth-container {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

#login-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#login-btn:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}

/* User Menu Styles */
.user-menu {
  position: relative;
}

.user-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.user-avatar:hover {
  border-color: var(--accent);
  background: rgba(139,92,246,0.1);
  transform: translateY(-2px);
}

.user-avatar img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  min-width: 200px;
  z-index: 1000;
  animation: dropdownFadeIn 0.2s ease;
  overflow: hidden;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-dropdown a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--line);
}

.user-dropdown a:last-child {
  border-bottom: none;
}

.user-dropdown a:hover {
  background: var(--muted);
  color: var(--accent);
  transform: translateX(4px);
}

.user-dropdown hr {
  margin: 0;
  border: none;
  border-top: 1px solid var(--line);
}

/* Login Modal Styles */
.login-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.login-modal-content {
  background: var(--modal-glass-bg);
  backdrop-filter: blur(25px);
  border: 1px solid var(--modal-glass-border);
  margin: 8% auto;
  padding: 40px;
  border-radius: 24px;
  width: 90%;
  max-width: 460px;
  position: relative;
  animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 8px 32px rgba(139,92,246,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.login-close {
  color: var(--soft);
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-close:hover {
  color: var(--accent);
  background: rgba(139,92,246,0.1);
  transform: rotate(90deg);
}

.login-modal h3 {
  margin-top: 0;
  color: var(--text);
  font-size: 1.6rem;
  margin-bottom: 16px;
  text-align: center;
}

.login-modal p {
  margin-bottom: 32px;
  line-height: 1.6;
  color: var(--soft);
  text-align: center;
}

.login-options {
  margin: 32px 0;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: white;
  color: #333;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-google::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.1), transparent);
  transition: left 0.5s ease;
}

.btn-google:hover {
  border-color: var(--accent);
  background: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139,92,246,0.15);
}

.btn-google:hover::before {
  left: 100%;
}

.btn-google svg {
  flex-shrink: 0;
}

.login-benefits {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(139,92,246,0.05));
  border-radius: 12px;
  border: 1px solid rgba(139,92,246,0.2);
}

.login-benefits h4 {
  margin: 0 0 16px 0;
  color: var(--accent);
  font-size: 1.1rem;
  text-align: center;
}

.login-benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-benefits li {
  position: relative;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
  padding-left: 24px;
}

.login-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1rem;
}

.login-note {
  font-size: 0.85rem;
  color: var(--soft);
  text-align: center;
  line-height: 1.5;
  margin: 24px 0 0 0;
  padding: 16px;
  background: var(--muted);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

/* Community Page Specific Styles */
.profile-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1; /* 修复：显示卡片 */
  transform: translateY(0); /* 修复：正常位置 */
}

.profile-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 12px 40px rgba(139,92,246,0.15);
}

.profile-card h4 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--accent);
}

.profile-card p {
  margin-bottom: 8px;
  color: var(--soft);
  line-height: 1.6;
}

.profile-card p strong {
  color: var(--text);
  font-weight: 600;
}

.profile-card a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

.unlock-prompt {
  text-align: center;
  padding: 40px;
  margin-top: 24px;
  background: var(--muted);
  border-radius: 16px;
  border: 1px dashed var(--line);
}

/* Responsive adjustments for profile cards */
@media (max-width: 768px) {
  .profile-list {
    grid-template-columns: 1fr;
  }
}

/* User Profile Modal Styles */
.user-profile-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.user-profile-modal-content {
  background: var(--modal-glass-bg);
  backdrop-filter: blur(25px);
  border: 1px solid var(--modal-glass-border);
  margin: 8% auto;
  padding: 40px;
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 8px 32px rgba(139,92,246,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.user-profile-close {
  color: var(--soft);
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile-close:hover {
  color: var(--accent);
  background: rgba(139,92,246,0.1);
  transform: rotate(90deg);
}

.user-profile-modal h3 {
  margin-top: 0;
  color: var(--text);
  font-size: 1.6rem;
  margin-bottom: 24px;
  text-align: center;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--muted);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.profile-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.profile-details h4 {
  margin: 0 0 8px 0;
  color: var(--text);
  font-size: 1.2rem;
}

.profile-details p {
  margin: 0 0 4px 0;
  color: var(--soft);
  font-size: 0.95rem;
}

.member-since {
  font-size: 0.85rem;
  color: var(--soft);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat-item {
  text-align: center;
  padding: 20px 16px;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(139,92,246,0.05));
  border-radius: 12px;
  border: 1px solid rgba(139,92,246,0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(139,92,246,0.15);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--soft);
  font-weight: 500;
}

/* Mobile Responsive Auth Styles */
@media (max-width: 768px) {
  .user-auth-container {
    margin-left: 8px;
  }
  
  .login-modal-content,
  .user-profile-modal-content {
    margin: 5% auto;
    padding: 30px 25px;
    width: 95%;
    max-width: 400px;
  }
  
  .profile-info {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .user-dropdown {
    right: -10px;
    min-width: 180px;
  }
  
  .btn-google {
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .login-benefits {
    padding: 20px;
  }
  
  .login-benefits li {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .user-avatar span {
    display: none;
  }
  
  .user-avatar {
    padding: 6px;
  }
  
  .login-modal h3,
  .user-profile-modal h3 {
    font-size: 1.4rem;
  }
  
  .stat-number {
    font-size: 1.6rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

/* Admin Panel Styles */
.admin-panel-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.admin-panel-modal-content {
  background: var(--modal-glass-bg);
  backdrop-filter: blur(25px);
  border: 1px solid var(--modal-glass-border);
  margin: 2% auto;
  padding: 30px;
  border-radius: 24px;
  width: 95%;
  max-width: 1200px;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 8px 32px rgba(139,92,246,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.admin-panel-close {
  color: var(--soft);
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-panel-close:hover {
  color: var(--accent);
  background: rgba(139,92,246,0.1);
  transform: rotate(90deg);
}

.admin-panel-modal h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
}

/* Admin Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  text-align: center;
  padding: 25px 20px;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(139,92,246,0.05));
  border-radius: 16px;
  border: 1px solid rgba(139,92,246,0.2);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(139,92,246,0.15);
}

.stat-card .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-card .stat-label {
  display: block;
  font-size: 1rem;
  color: var(--soft);
  font-weight: 500;
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--line);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 12px 24px;
  color: var(--soft);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(139,92,246,0.1);
}

.tab-btn.active {
  color: var(--accent);
  background: rgba(139,92,246,0.1);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

/* Submissions List */
.admin-submissions {
  max-height: 60vh;
  overflow-y: auto;
}

.submission-card {
  background: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.submission-card:hover {
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 4px 12px rgba(139,92,246,0.1);
}

.submission-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.submission-header h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
}

.submission-type {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.submission-type.student {
  background: rgba(34, 197, 94, 0.2);
  color: #16a34a;
}

.submission-type.professor {
  background: rgba(59, 130, 246, 0.2);
  color: #2563eb;
}

.submission-date {
  font-size: 0.9rem;
  color: var(--soft);
}

.submission-details {
  margin-bottom: 20px;
}

.submission-details p {
  margin: 8px 0;
  line-height: 1.5;
  color: var(--text);
}

.submission-details strong {
  color: var(--accent);
  margin-right: 8px;
}

.submission-details a {
  color: var(--accent);
  text-decoration: none;
}

.submission-details a:hover {
  text-decoration: underline;
}

/* Submission Actions */
.submission-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-approve {
  background: var(--success);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-approve:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-reject {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-reject:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Loading and Error States */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--soft);
  font-style: italic;
}

.error {
  text-align: center;
  padding: 40px;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.no-submissions {
  text-align: center;
  padding: 40px;
  color: var(--soft);
  font-style: italic;
}

/* Mobile Responsive Admin Styles */
@media (max-width: 768px) {
  .admin-panel-modal-content {
    margin: 5% auto;
    padding: 20px;
    width: 98%;
    max-height: 95vh;
  }
  
  .admin-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .stat-card {
    padding: 20px 15px;
  }
  
  .stat-card .stat-number {
    font-size: 2rem;
  }
  
  .admin-tabs {
    flex-direction: column;
    gap: 4px;
  }
  
  .tab-btn {
    padding: 10px 16px;
    border-radius: 6px;
  }
  
  .submission-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .submission-actions {
    justify-content: stretch;
  }
  
  .submission-actions .btn-approve,
  .submission-actions .btn-reject {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .admin-panel-modal h3 {
    font-size: 1.4rem;
  }
  
  .stat-card .stat-number {
    font-size: 1.8rem;
  }
  
  .submission-details {
    font-size: 0.9rem;
  }
}

/* Job Posting and Browsing Styles */
.job-filters {
  background: var(--card);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
}

.job-filters h2 {
  margin: 0 0 1.5rem 0;
  color: var(--text);
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--muted);
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.jobs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.jobs-header h2 {
  margin: 0;
  color: var(--text);
}

.jobs-count {
  color: var(--soft);
  font-size: 0.9rem;
}

.jobs-list {
  display: grid;
  gap: 1.5rem;
}

.job-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--brand));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.job-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.job-card:hover::before {
  opacity: 1;
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.job-title {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}

.job-type-badge {
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.job-card-meta {
  margin-bottom: 1rem;
}

.job-institution {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.job-supervisor {
  color: var(--soft);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.job-location {
  color: var(--soft);
  font-size: 0.85rem;
}

.job-research-area {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: inline-block;
}

.job-description {
  color: var(--soft);
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--soft);
}

.no-jobs {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--soft);
  font-size: 1.1rem;
}

/* Job Post Modal */
.job-post-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.job-post-modal-content {
  background: var(--modal-glass-bg);
  backdrop-filter: blur(25px);
  border-radius: 24px;
  border: 1px solid var(--modal-glass-border);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
}

.job-post-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--soft);
  transition: color 0.2s ease;
  z-index: 10;
}

.job-post-close:hover {
  color: var(--text);
}

.job-form .form-row-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Job Detail Modal */
.job-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.job-detail-modal-content {
  background: var(--modal-glass-bg);
  backdrop-filter: blur(25px);
  border-radius: 24px;
  border: 1px solid var(--modal-glass-border);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.job-detail-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--soft);
  transition: color 0.2s ease;
  z-index: 10;
}

.job-detail-close:hover {
  color: var(--text);
}

.job-detail {
  padding: 2rem;
}

.job-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.job-header h2 {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1.2;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.job-meta span {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.job-content {
  margin-bottom: 2rem;
}

.job-section {
  margin-bottom: 1.5rem;
}

.job-section h3 {
  margin: 0 0 0.75rem 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

.job-section p {
  margin: 0;
  color: var(--soft);
  line-height: 1.6;
}

.job-section a {
  color: var(--accent);
  text-decoration: none;
}

.job-section a:hover {
  text-decoration: underline;
}

.job-actions {
  display: flex;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.job-actions .btn {
  flex: 1;
  text-align: center;
}

/* Responsive Design for Jobs */
@media (max-width: 768px) {
  .filters-row {
    grid-template-columns: 1fr;
  }
  
  .jobs-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .job-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .job-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .job-form .form-row-inline {
    grid-template-columns: 1fr;
  }
  
  .job-actions {
    flex-direction: column;
  }
  
  .job-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
