/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #000;
  color: #fff;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font-family: inherit; outline: none; border: none; background: transparent; color: inherit; }
::-webkit-scrollbar { display: none; }

/* ===== Tab Bar (3 tabs: 首页/消息/我的) ===== */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: 55px;
  background: #000; border-top: 1px solid rgba(230,162,60,0.15);
  display: flex; z-index: 1000;
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #8B7355; font-size: 12px; cursor: pointer; transition: color 0.3s;
}
.tab-item.active { color: #E6A23C; }
.tab-icon { font-size: 20px; margin-bottom: 2px; }
.tab-text { font-size: 11px; }

/* ===== Star Background ===== */
.stars-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden; z-index: 0; pointer-events: none;
}
.nebula { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.18; }
.nebula-1 { width: 300px; height: 300px; top: -10%; left: -10%;
  background: radial-gradient(circle, rgba(138,43,226,0.3) 0%, rgba(65,105,225,0.2) 50%, transparent 100%); }
.nebula-2 { width: 250px; height: 250px; top: 20%; right: -15%;
  background: radial-gradient(circle, rgba(0,212,255,0.3) 0%, rgba(74,144,217,0.2) 50%, transparent 100%); }
.nebula-3 { width: 200px; height: 200px; bottom: 10%; left: 10%;
  background: radial-gradient(circle, rgba(255,107,157,0.25) 0%, rgba(138,43,226,0.15) 50%, transparent 100%); }
.nebula-4 { width: 225px; height: 225px; bottom: -5%; right: 5%;
  background: radial-gradient(circle, rgba(74,144,217,0.25) 0%, rgba(0,212,255,0.15) 50%, transparent 100%); }

.star { position: absolute; border-radius: 50%; animation: twinkle 2s infinite ease-in-out; }
.star-small { width: 2px; height: 2px; background: #fff; opacity: 0.7; }
.star-medium { width: 3px; height: 3px; background: #fff; opacity: 0.85; animation-duration: 2.5s; }
.star-large { width: 4px; height: 4px; background: #fff; opacity: 0.95; animation-duration: 3s; }
.star-bright { width: 5px; height: 5px; background: #fff; box-shadow: 0 0 4px rgba(255,255,255,0.6); animation-duration: 3.5s; }
.star-glowing { width: 6px; height: 6px; background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.8), 0 0 10px rgba(0,245,255,0.4); animation-duration: 4s; }
.star-neon-blue { width: 4px; height: 4px; background: rgba(0,245,255,1);
  box-shadow: 0 0 5px rgba(0,245,255,0.8), 0 0 8px rgba(0,245,255,0.5); animation-duration: 2.8s; }
.star-neon-pink { width: 4px; height: 4px; background: rgba(255,165,200,1);
  box-shadow: 0 0 5px rgba(255,165,200,0.8), 0 0 8px rgba(255,165,200,0.5); animation-duration: 3.2s; }
.star-neon-purple { width: 4px; height: 4px; background: rgba(168,85,247,1);
  box-shadow: 0 0 5px rgba(168,85,247,0.8), 0 0 8px rgba(168,85,247,0.5); animation-duration: 3.8s; }
@keyframes twinkle {
  0%,100% { opacity: 1; transform: scale(1); }
  25% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 0.3; transform: scale(0.85); }
  75% { opacity: 0.7; transform: scale(1.05); }
}

/* ===== Home Page ===== */
.home-container { min-height: 100vh; position: relative; overflow-y: auto; overflow-x: hidden; padding-bottom: 80px; }
.planet-container { display: flex; flex-direction: column; align-items: center; padding-top: 50px; position: relative; z-index: 1; }
.planet-wrapper { position: relative; width: 280px; height: 280px; display: flex; align-items: center; justify-content: center; }
.planet-glow-outer {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(100,150,240,0.12) 0%, rgba(140,120,220,0.06) 45%, transparent 70%);
  filter: blur(8px); z-index: 0; pointer-events: none;
}
.planet-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(80,200,255,0.2) 0%, rgba(100,150,240,0.12) 40%, rgba(140,120,220,0.06) 60%, transparent 75%);
  filter: blur(5px); z-index: 1; pointer-events: none;
}
.planet-halo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 310px; height: 310px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,255,0.15) 40%, rgba(99,102,241,0.1) 55%, rgba(124,58,237,0.05) 70%, transparent 100%);
  pointer-events: none; z-index: 4; animation: haloBreath 4s ease-in-out infinite;
}
@keyframes haloBreath {
  0%,100% { opacity: 0.7; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.05); }
}
.planet-body { position: relative; width: 280px; height: 280px; z-index: 2; }
.planet-sphere {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 180px; height: 180px; border-radius: 50%; overflow: hidden; z-index: 5;
  box-shadow: 0 0 20px rgba(80,200,255,0.35), 0 0 40px rgba(100,150,240,0.2), 0 0 60px rgba(140,120,220,0.1);
}
.planet-img { width: 100%; height: 100%; display: block; object-fit: contain; animation: planetSpin 30s linear infinite; }
@keyframes planetSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Saturn rings - 22 dynamic rings */
.saturn-ring {
  position: absolute; top: 50%; left: 50%; border-radius: 50%; pointer-events: none;
  transform: translate(-50%,-50%) rotate(-25deg); border: 2px solid transparent; border-style: solid;
}
.ring-back { z-index: 1; clip-path: inset(0 0 50% 0); }
.ring-front { z-index: 7; clip-path: inset(50% 0 0 0); }

/* Meteors */
.meteor-far { position: absolute; height: 1px; border-radius: 50%; left: -100px; animation: meteorFar 12s linear infinite; opacity: 0; }
.meteor-near { position: absolute; height: 1.5px; border-radius: 50%; left: -150px; animation: meteorNear 20s linear infinite; opacity: 0; }
@keyframes meteorFar {
  0% { transform: translateX(0) translateY(0) rotate(45deg); opacity: 0; }
  3% { opacity: 1; }
  12% { opacity: 0.7; }
  25% { opacity: 0; transform: translateX(450px) translateY(450px) rotate(45deg); }
  100% { opacity: 0; }
}
@keyframes meteorNear {
  0% { transform: translateX(-50px) translateY(0) rotate(45deg); opacity: 0; }
  3% { opacity: 1; }
  10% { opacity: 1; }
  30% { opacity: 0; transform: translateX(700px) translateY(700px) rotate(45deg); }
  100% { opacity: 0; transform: translateX(700px) translateY(700px) rotate(45deg); }
}

/* Moon shade and craters */
.moon-shade { position: absolute; top: 0; right: 0; width: 50%; height: 100%; border-radius: 0 50% 50% 0; background: linear-gradient(90deg, rgba(80,60,30,0.15) 0%, rgba(80,60,30,0.3) 100%); }
.moon-crater { position: absolute; border-radius: 50%; background: rgba(100,80,50,0.2); }
.moon-crater-1 { top: 20%; left: 25%; width: 6px; height: 6px; }
.moon-crater-2 { top: 50%; right: 35%; width: 5px; height: 5px; }
.moon-crater-3 { bottom: 20%; left: 30%; width: 4px; height: 4px; }
.moon-crater-4 { top: 35%; left: 50%; width: 3px; height: 3px; }

/* Mini planets */
.mini-planet { position: absolute; border-radius: 50%; animation: floatPlanet 8s ease-in-out infinite; }
.mp-highlight { position: absolute; width: 35%; height: 35%; top: 15%; left: 20%; border-radius: 50%; background: rgba(255,255,255,0.35); box-shadow: 0 0 3px rgba(255,255,255,0.2); }
.mp-blue { width: 28px; height: 28px; bottom: 8%; left: 6%;
  background: radial-gradient(circle at 35% 35%, #8ab4d6, #5a8aad, #3a6a8a);
  box-shadow: 0 0 7px rgba(90,138,173,0.5), inset -3px -3px 6px rgba(20,40,60,0.35); animation-duration: 12s; }
.mp-cream { width: 16px; height: 16px; top: 5%; right: 10%;
  background: radial-gradient(circle at 35% 35%, #f5e6c8, #dcc8a0, #c4a878);
  box-shadow: 0 0 4px rgba(220,200,160,0.45), inset -2px -2px 4px rgba(80,60,30,0.3); animation-duration: 10s; animation-delay: -3s; }
.mp-gold { width: 14px; height: 14px; top: 28%; right: 6%;
  background: radial-gradient(circle at 35% 35%, #ffd966, #dab44a, #b8922e);
  box-shadow: 0 0 4px rgba(218,180,74,0.5), inset -2px -2px 3px rgba(60,40,10,0.35); animation-duration: 14s; animation-delay: -6s; }
.mp-mint { width: 11px; height: 11px; top: 18%; left: 4%;
  background: radial-gradient(circle at 35% 35%, #a8e6cf, #6cc4a1, #4a9e7e);
  box-shadow: 0 0 3px rgba(108,196,161,0.45), inset -2px -2px 3px rgba(20,60,40,0.3); animation-duration: 11s; animation-delay: -2s; }
.mp-rose { width: 13px; height: 13px; bottom: 15%; right: 14%;
  background: radial-gradient(circle at 35% 35%, #f5a0b8, #d47a96, #b05574);
  box-shadow: 0 0 4px rgba(212,122,150,0.45), inset -2px -2px 3px rgba(60,20,35,0.3); animation-duration: 13s; animation-delay: -5s; }
.mp-indigo { width: 10px; height: 10px; top: 8%; left: 42%;
  background: radial-gradient(circle at 35% 35%, #9da8e0, #7080c0, #5560a0);
  box-shadow: 0 0 3px rgba(112,128,192,0.45), inset -2px -2px 3px rgba(25,25,60,0.35); animation-duration: 15s; animation-delay: -8s; }
@keyframes floatPlanet {
  0%,100% { transform: translateY(0) translateX(0); opacity: 0.7; }
  25% { transform: translateY(-8px) translateX(4px); opacity: 0.85; }
  50% { transform: translateY(-4px) translateX(-6px); opacity: 0.6; }
  75% { transform: translateY(6px) translateX(3px); opacity: 0.75; }
}

/* Moon */
.moon-float { position: absolute; top: 6%; right: 4%; width: 40px; height: 40px; z-index: 10; animation: moonFloat 6s ease-in-out infinite; cursor: pointer; }
@keyframes moonFloat {
  0%,100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-8px) translateX(4px); }
  50% { transform: translateY(-3px) translateX(-5px); }
  75% { transform: translateY(-10px) translateX(2px); }
}
.moon-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, rgba(255,215,0,0.1) 40%, transparent 70%);
  animation: moonGlowPulse 3s ease-in-out infinite;
}
.moon-body {
  width: 40px; height: 40px; border-radius: 50%; position: relative; z-index: 1;
  background: radial-gradient(circle at 40% 38%, #fffde0 0%, #fffacd 30%, #f0e68c 55%, #daa520 80%, #b8860b 100%);
  box-shadow: 0 0 10px rgba(255,215,0,0.6);
}
@keyframes moonGlowPulse {
  0%,100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.15); }
}

.planet-title { font-size: 20px; font-weight: bold; color: #fff; margin-top: 15px; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.planet-subtitle { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 8px; }

/* Action buttons */
.actions-container { display: flex; justify-content: center; gap: 20px; margin-top: 30px; position: relative; z-index: 1; }
.action-btn {
  width: 140px; height: 50px; border-radius: 25px; display: flex; align-items: center;
  justify-content: center; gap: 8px; font-size: 14px; font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); cursor: pointer; transition: transform 0.15s, opacity 0.15s;
}
.action-btn:active { transform: scale(0.95); opacity: 0.8; }
.throw-btn { background: linear-gradient(135deg, #E6A23C 0%, #C08B5C 100%); color: #fff; }
.pick-btn { background: linear-gradient(135deg, #67C23A 0%, #409EFF 100%); color: #fff; }
.btn-icon { font-size: 18px; }
.btn-text { font-size: 14px; }

/* Square section on home */
.square-section {
  margin: 20px 15px 30px; padding: 12px;
  background: rgba(20,25,50,0.75); backdrop-filter: blur(5px);
  border-radius: 12px; border: 1px solid rgba(100,180,255,0.2);
  box-shadow: 0 0 15px rgba(80,150,240,0.1); position: relative; z-index: 1; cursor: pointer;
}
.square-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.square-title-wrap { display: flex; align-items: center; gap: 5px; }
.square-icon { font-size: 18px; }
.square-title { font-size: 16px; font-weight: bold; color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.3); }
.square-more { display: flex; align-items: center; padding: 3px 8px; background: rgba(100,180,255,0.15); border-radius: 10px; }
.square-more-text { font-size: 12px; color: rgba(180,210,255,0.9); }
.square-more-arrow { font-size: 14px; color: rgba(180,210,255,0.9); margin-left: 2px; font-weight: bold; }

/* Square empty state */
.square-empty { display: flex; flex-direction: column; align-items: center; padding: 20px 15px; }
.square-empty-planet { position: relative; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.square-empty-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(80,200,255,0.25) 0%, rgba(100,150,240,0.12) 40%, transparent 75%);
  animation: emptyGlowPulse 3s ease-in-out infinite;
}
@keyframes emptyGlowPulse {
  0%,100% { opacity: 0.7; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.1); }
}
.square-empty-emoji { font-size: 36px; position: relative; z-index: 1; animation: emptyPlanetFloat 4s ease-in-out infinite; }
@keyframes emptyPlanetFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.square-empty-title { font-size: 15px; font-weight: bold; color: #fff; text-shadow: 0 0 6px rgba(255,255,255,0.25); margin-bottom: 6px; }
.square-empty-desc { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.5; text-align: center; margin-bottom: 12px; }
.square-empty-btn { padding: 6px 18px; background: rgba(100,180,255,0.15); border: 1px solid rgba(100,180,255,0.35); border-radius: 15px; }
.square-empty-btn-text { font-size: 13px; color: rgba(150,200,255,0.9); font-weight: bold; }

/* ===== Bottle Modal (picked bottle popup) ===== */
.modal-mask {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  max-width: 480px; margin: 0 auto; background: rgba(0,0,0,0.75); z-index: 200;
  display: flex; align-items: center; justify-content: center; animation: maskFadeIn 0.3s ease;
}
@keyframes maskFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  width: 300px; max-height: 70vh;
  background: linear-gradient(160deg, rgba(26,26,46,0.98), rgba(16,16,38,0.98));
  border-radius: 14px; border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 30px rgba(0,100,200,0.15), 0 0 40px rgba(100,150,255,0.08);
  display: flex; flex-direction: column; overflow: hidden;
  animation: cardScaleIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes cardScaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.modal-scroll { max-height: 310px; padding: 20px 18px 12px; overflow-y: auto; }
.modal-content { font-size: 16px; color: rgba(255,255,255,0.92); line-height: 1.8; display: block; }
.modal-fortune-tag {
  display: inline-flex; align-items: center; margin-top: 8px; padding: 3px 10px;
  background: linear-gradient(135deg, rgba(255,200,50,0.2), rgba(255,150,50,0.15));
  border: 1px solid rgba(255,200,50,0.3); border-radius: 10px;
  font-size: 11px; color: rgba(255,220,100,0.9);
}
.modal-warmquote-tag { background: linear-gradient(135deg, rgba(255,150,100,0.2), rgba(255,120,80,0.15)); border-color: rgba(255,170,120,0.3); color: rgba(255,200,160,0.9); }
.modal-actions { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px 16px; border-top: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.modal-btn { display: flex; align-items: center; gap: 3px; padding: 7px 20px; border-radius: 18px; background: rgba(255,255,255,0.08); font-size: 13px; color: rgba(255,255,255,0.7); cursor: pointer; }
.modal-btn-active { background: rgba(255,200,50,0.15); color: #ffd700; }
.modal-count { font-size: 11px; color: rgba(255,255,255,0.5); }
.modal-comments { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); }
.modal-comments-title { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 10px; }
.modal-comment-list { display: flex; flex-direction: column; gap: 10px; }
.modal-comment-item { display: flex; gap: 8px; align-items: flex-start; }
.modal-comment-avatar { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; color: #fff; overflow: hidden; }
.modal-comment-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.modal-comment-author { font-size: 12px; color: rgba(200,220,255,0.85); font-weight: 500; }
.modal-comment-text { font-size: 13px; color: rgba(255,255,255,0.82); line-height: 1.5; }
.modal-comment-time { font-size: 10px; color: rgba(255,255,255,0.35); }
.modal-comment-empty { text-align: center; padding: 10px 0; font-size: 12px; color: rgba(255,255,255,0.35); }
.modal-comment-input-bar { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.modal-comment-input { flex: 1; height: 32px; background: rgba(255,255,255,0.06); border-radius: 16px; padding: 0 14px; font-size: 13px; color: rgba(255,255,255,0.9); }
.modal-comment-send { padding: 5px 14px; background: rgba(100,180,255,0.2); border-radius: 16px; font-size: 13px; color: rgba(140,200,255,0.95); cursor: pointer; }

/* ===== Mine Page (Login + Profile) ===== */
.page-container { min-height: 100vh; position: relative; padding-bottom: 80px; }
.z-relative { position: relative; z-index: 2; }

/* Login section */
.login-section { display: flex; flex-direction: column; align-items: center; padding: 0 30px; padding-top: 30px; }
.login-logo { display: flex; flex-direction: column; align-items: center; margin-top: 40px; margin-bottom: 30px; }
.logo-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(138,43,226,0.6), rgba(29,78,216,0.8));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(138,43,226,0.4), 0 0 40px rgba(0,200,255,0.2);
  margin-bottom: 15px; animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 20px rgba(138,43,226,0.4), 0 0 40px rgba(0,200,255,0.2); }
  50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(138,43,226,0.6), 0 0 50px rgba(0,200,255,0.3); }
}
.login-title { font-size: 22px; font-weight: bold; color: #fff; letter-spacing: 2px; }
.login-subtitle { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 6px; }

/* Login type switch */
.type-switch { display: flex; width: 100%; background: rgba(255,255,255,0.04); border-radius: 8px; padding: 3px; margin-bottom: 20px; }
.type-item { flex: 1; text-align: center; padding: 10px 0; border-radius: 6px; font-size: 13px; color: rgba(255,255,255,0.5); transition: all 0.3s; cursor: pointer; }
.type-active { background: linear-gradient(135deg, rgba(138,43,226,0.4), rgba(0,200,255,0.3)); color: #fff; font-weight: bold; box-shadow: 0 0 10px rgba(138,43,226,0.3); }

/* Form */
.form-section { width: 100%; }
.input-wrapper {
  display: flex; align-items: center; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  padding: 0 12px; height: 48px; margin-bottom: 12px; transition: all 0.3s;
}
.input-icon { font-size: 16px; margin-right: 8px; flex-shrink: 0; }
.form-input { flex: 1; height: 48px; color: #fff; font-size: 14px; }
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.register-hint { text-align: center; margin-bottom: 15px; }
.hint-text { font-size: 12px; color: rgba(0,245,255,0.7); cursor: pointer; }
.login-btn {
  width: 100%; height: 48px; line-height: 48px;
  background: linear-gradient(135deg, #E6A23C 0%, #C08B5C 100%);
  color: #fff; border-radius: 24px; font-size: 16px; font-weight: bold;
  letter-spacing: 2px; box-shadow: 0 4px 15px rgba(230,162,60,0.3); cursor: pointer;
}
.admin-login-btn { background: linear-gradient(135deg, rgba(138,43,226,0.7), rgba(0,200,255,0.6)); box-shadow: 0 4px 15px rgba(138,43,226,0.3); }
.admin-notice { display: flex; align-items: flex-start; gap: 5px; background: rgba(230,162,60,0.1); border: 1px solid rgba(230,162,60,0.2); border-radius: 6px; padding: 8px 10px; margin-bottom: 15px; }
.notice-icon { font-size: 12px; flex-shrink: 0; margin-top: 1px; }
.notice-text { font-size: 11px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.login-footer { margin-top: 40px; padding-bottom: 30px; }
.footer-text { font-size: 10px; color: rgba(255,255,255,0.25); }

/* Profile section */
.profile-section { padding: 20px 15px; background: linear-gradient(180deg, rgba(26,26,46,0.8), transparent); }
.profile-header { display: flex; align-items: center; margin-bottom: 15px; }
.profile-avatar { width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; color: #fff; overflow: hidden; }
.profile-info { flex: 1; margin-left: 10px; }
.profile-name { font-size: 17px; font-weight: bold; color: #fff; display: block; }
.profile-university { font-size: 12px; color: rgba(255,255,255,0.7); display: block; margin-top: 3px; }
.profile-detail { font-size: 12px; color: rgba(255,255,255,0.65); display: block; margin-top: 2px; }
.profile-signature { font-size: 12px; color: rgba(255,255,255,0.5); display: block; margin-top: 4px; }
.profile-edit { font-size: 12px; color: #E6A23C; padding: 6px 12px; border: 1px solid rgba(230,162,60,0.4); border-radius: 15px; cursor: pointer; }
.stats-row { display: flex; justify-content: space-around; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.stat-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.stat-num { font-size: 18px; font-weight: bold; color: #E6A23C; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* Menu */
.menu-section { margin: 0 15px; background: rgba(255,255,255,0.04); border-radius: 12px; overflow: hidden; }
.menu-item { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; }
.menu-item:last-child { border-bottom: none; }
.menu-icon { font-size: 18px; margin-right: 12px; }
.menu-text { flex: 1; font-size: 14px; color: #fff; }
.menu-arrow { font-size: 16px; color: rgba(255,255,255,0.3); }

/* Tab bar in mine */
.mine-tab-bar { display: flex; margin: 15px; background: rgba(255,255,255,0.04); border-radius: 10px; padding: 3px; }
.mine-tab-item { flex: 1; text-align: center; padding: 8px 0; border-radius: 8px; font-size: 13px; color: rgba(255,255,255,0.5); cursor: pointer; }
.mine-tab-active { background: rgba(100,180,255,0.2); color: #fff; font-weight: bold; }

/* Posts sub nav */
.posts-sub-nav { display: flex; gap: 4px; padding: 0 15px 12px; overflow-x: auto; }
.posts-sub-tab { padding: 6px 16px; border-radius: 15px; font-size: 12px; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); white-space: nowrap; cursor: pointer; }
.posts-sub-active { color: #E6A23C; background: rgba(230,162,60,0.15); font-weight: bold; }

/* My post card */
.my-post-card { background: rgba(20,25,50,0.6); border-radius: 10px; padding: 12px; margin: 0 15px 10px; }
.my-post-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.my-post-time { font-size: 12px; color: rgba(255,255,255,0.4); }
.my-post-stat { font-size: 12px; color: rgba(255,255,255,0.5); }
.my-post-content { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.6; }

/* Logout */
.logout-section { padding: 30px 15px 60px; }
.logout-btn { text-align: center; padding: 12px; background: rgba(245,108,108,0.1); border: 1px solid rgba(245,108,108,0.2); border-radius: 12px; color: #F56C6C; font-size: 14px; cursor: pointer; }

/* ===== Message Page ===== */
.msg-scroll { width: 100%; min-height: 100vh; background: #000; box-sizing: border-box; padding-bottom: 80px; }
.msg-item { display: flex; align-items: center; padding: 9px 12px; position: relative; cursor: pointer; }
.msg-avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; margin-right: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.msg-avatar-text { font-size: 18px; font-weight: bold; color: #fff; }
.msg-avatar-ai { background: linear-gradient(135deg, #667eea, #764ba2); }
.msg-avatar-system { background: linear-gradient(135deg, #ff2d55, #ff6b81); }
.msg-avatar-temp { display: flex; align-items: center; justify-content: center; }
.msg-avatar-img { display: block; width: 100%; height: 100%; }
.msg-avatar-icon { font-size: 22px; }
.msg-body { flex: 1; min-width: 0; padding-right: 8px; }
.msg-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.msg-name-row { display: flex; align-items: center; gap: 4px; }
.msg-name { font-size: 14px; color: #fff; font-weight: bold; }
.msg-temp-tag { font-size: 10px; color: rgba(0,245,255,0.7); background: rgba(0,245,255,0.1); padding: 2px 6px; border-radius: 4px; }
.msg-streak { font-size: 11px; color: #ff9f43; }
.msg-time { font-size: 11px; color: rgba(255,255,255,0.35); flex-shrink: 0; }
.msg-bottom { display: flex; justify-content: space-between; align-items: center; }
.msg-preview { font-size: 13px; color: rgba(255,255,255,0.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.msg-mute-icon { font-size: 12px; color: rgba(255,255,255,0.3); }
.msg-badge { min-width: 18px; height: 18px; background: #ff2d55; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; padding: 0 5px; }
.msg-divider { height: 1px; background: rgba(255,255,255,0.05); margin-left: 70px; }
.msg-section-header { display: flex; align-items: center; padding: 12px 15px 6px; gap: 8px; }
.msg-section-title { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: bold; }
.msg-section-sub { font-size: 11px; color: rgba(255,255,255,0.3); }
.msg-empty { display: flex; flex-direction: column; align-items: center; padding: 80px 0; }
.msg-empty-icon { font-size: 36px; margin-bottom: 12px; }
.msg-empty-text { font-size: 14px; color: rgba(255,255,255,0.5); }
.msg-empty-sub { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 6px; }

/* ===== Square Page ===== */
.campus-nav {
  display: flex; align-items: center; padding: 8px 10px;
  background: rgba(15,18,40,0.9); backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(100,160,240,0.15);
  position: sticky; top: 0; z-index: 10;
}
.nav-scroll { flex: 1; white-space: nowrap; overflow-x: auto; }
.nav-tabs { display: inline-flex; gap: 4px; padding: 0 2px; }
.nav-tab {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 5px 10px; border-radius: 8px; font-size: 12px; color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04); transition: all 0.2s; white-space: nowrap; cursor: pointer;
}
.nav-tab.active { color: #fff; background: rgba(100,180,255,0.25); box-shadow: 0 0 6px rgba(100,180,255,0.2); }
.nav-icon { font-size: 14px; margin-bottom: 2px; }
.nav-create {
  flex-shrink: 0; display: flex; align-items: center; gap: 2px;
  padding: 6px 10px; margin-left: 6px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 8px; color: #fff; font-size: 12px; font-weight: bold; cursor: pointer;
}
.create-icon { font-size: 14px; }
.sub-nav { display: flex; gap: 4px; padding: 8px 15px; }
.sub-tab { padding: 4px 12px; border-radius: 10px; font-size: 13px; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); cursor: pointer; }
.sub-active { color: #fff; background: rgba(100,180,255,0.2); }
.square-search, .campus-search { display: flex; align-items: center; gap: 8px; padding: 4px 15px 8px; }
.search-input-wrap {
  flex: 1; height: 32px; background: rgba(20,25,50,0.8);
  border: 1px solid rgba(100,160,240,0.2); border-radius: 16px; padding: 0 14px;
  display: flex; align-items: center; box-sizing: border-box;
}
.search-input { width: 100%; height: 32px; font-size: 13px; color: rgba(255,255,255,0.9); }
.search-input::placeholder { color: rgba(255,255,255,0.35); }
.search-btn {
  flex-shrink: 0; height: 32px; padding: 0 12px;
  background: rgba(100,180,255,0.2); border: 1px solid rgba(100,180,255,0.3);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(100,180,255,0.9); cursor: pointer;
}
.square-list { padding: 4px 15px; }
.campus-list { padding: 4px 15px; }

/* Post card */
.post-card {
  background: rgba(20,25,50,0.6); border: 1px solid rgba(100,160,240,0.1);
  border-radius: 10px; padding: 12px; margin-bottom: 8px; cursor: pointer;
}
.post-card-header { display: flex; align-items: center; margin-bottom: 8px; }
.post-card-avatar { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; color: #fff; overflow: hidden; margin-right: 7px; }
.post-card-name { font-size: 13px; color: rgba(255,255,255,0.9); font-weight: bold; }
.post-card-time { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 2px; }
.post-card-content { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.post-card-footer { display: flex; gap: 16px; }
.post-card-stat { font-size: 11px; color: rgba(255,255,255,0.5); }

/* Campus card */
.campus-card {
  background: rgba(20,25,50,0.75); border: 1px solid rgba(100,160,240,0.12);
  border-radius: 10px; padding: 12px; margin-bottom: 8px; cursor: pointer;
}
.card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.card-avatar { display: block; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: rgba(255,255,255,0.1); }
.card-user { flex: 1; display: flex; flex-direction: column; }
.card-name { font-size: 14px; color: #fff; font-weight: bold; }
.card-time { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.name-badge-row { display: flex; align-items: center; gap: 4px; }
.admin-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 10px; color: #fff; background: linear-gradient(135deg, #f5a623, #d0021b); }
.user-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 10px; color: rgba(255,255,255,0.7); background: rgba(100,160,240,0.2); }
.card-info { display: flex; flex-direction: column; gap: 4px; }
.card-title-row { display: flex; align-items: center; }
.card-title { font-size: 15px; color: #fff; font-weight: bold; flex: 1; }
.card-price { font-size: 15px; color: #ff9f43; font-weight: bold; flex-shrink: 0; margin-left: 8px; }
.card-sub-tag { padding: 2px 8px; border-radius: 6px; font-size: 11px; flex-shrink: 0; margin-right: 6px; }
.sub-tag-lost { background: rgba(255,80,80,0.15); color: #ff7777; }
.sub-tag-found { background: rgba(40,200,100,0.15); color: #28c864; }
.card-desc { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta-row { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.card-meta { font-size: 11px; color: rgba(255,255,255,0.5); }
.card-images { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.card-img { width: calc(33.33% - 4px); aspect-ratio: 1; border-radius: 6px; object-fit: cover; }
.card-footer { margin-top: 8px; }
.card-views { font-size: 11px; color: rgba(255,255,255,0.5); }

/* Tools section */
.tools-section { padding: 8px 15px; }
.tools-grid { display: flex; flex-direction: column; gap: 8px; }
.tool-card { display: flex; align-items: center; padding: 12px; background: rgba(20,25,50,0.6); border-radius: 10px; border: 1px solid rgba(100,160,240,0.1); cursor: pointer; }
.tool-card-icon { font-size: 20px; margin-right: 10px; flex-shrink: 0; }
.tool-card-info { flex: 1; }
.tool-card-name { font-size: 14px; color: #fff; font-weight: bold; }
.tool-card-desc { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.tool-card-arrow { font-size: 14px; color: rgba(255,255,255,0.3); }
.tools-hint { text-align: center; padding: 16px; font-size: 12px; color: rgba(255,255,255,0.3); }

/* Lost sub nav */
.lost-sub-nav { display: flex; padding: 0 15px 8px; gap: 6px; }
.lost-sub-tab { padding: 6px 16px; border-radius: 15px; font-size: 13px; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); cursor: pointer; }
.lost-sub-active { color: #E6A23C; background: rgba(230,162,60,0.15); border-color: rgba(230,162,60,0.4); font-weight: bold; }

/* ===== Empty State ===== */
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 60px 30px; }
.empty-icon { font-size: 36px; margin-bottom: 12px; }
.empty-title { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
.empty-subtitle { font-size: 12px; color: rgba(255,255,255,0.35); text-align: center; }
.empty-action { margin-top: 12px; padding: 6px 18px; background: rgba(100,180,255,0.15); border: 1px solid rgba(100,180,255,0.3); border-radius: 15px; font-size: 13px; color: rgba(150,200,255,0.9); cursor: pointer; }

/* ===== Toast ===== */
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: rgba(0,0,0,0.85); color: #fff; padding: 10px 20px;
  border-radius: 8px; font-size: 14px; z-index: 9999;
  opacity: 0; transition: opacity 0.3s; pointer-events: none; max-width: 300px; text-align: center;
}
.toast.show { opacity: 1; }

/* ===== Animations ===== */
.anim-fade-in { animation: animFadeIn 0.4s ease-out both; }
@keyframes animFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.load-more { text-align: center; padding: 12px; }
.loading-text { font-size: 12px; color: rgba(255,255,255,0.4); }
.no-more { text-align: center; padding: 12px; }
.no-more-text { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ===== Chat Page ===== */
.chat-container { display: flex; flex-direction: column; height: 100vh; max-width: 480px; margin: 0 auto; }
.chat-header { display: flex; align-items: center; padding: 12px 15px; background: rgba(15,18,40,0.9); border-bottom: 1px solid rgba(255,255,255,0.05); position: sticky; top: 0; z-index: 10; }
.chat-back { font-size: 18px; color: #fff; margin-right: 10px; cursor: pointer; }
.chat-title { font-size: 15px; color: #fff; font-weight: bold; flex: 1; }
.chat-messages { flex: 1; overflow-y: auto; padding: 15px; }
.chat-msg { display: flex; margin-bottom: 12px; }
.chat-msg-self { flex-direction: row-reverse; }
.chat-msg-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; color: #fff; overflow: hidden; }
.chat-msg-bubble { max-width: 70%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; margin: 0 8px; }
.chat-msg-other .chat-msg-bubble { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
.chat-msg-self .chat-msg-bubble { background: linear-gradient(135deg, #E6A23C, #C08B5C); color: #fff; }
.chat-input-bar { display: flex; align-items: center; padding: 8px 12px; background: rgba(15,18,40,0.9); border-top: 1px solid rgba(255,255,255,0.05); }
.chat-input { flex: 1; height: 36px; background: rgba(255,255,255,0.06); border-radius: 18px; padding: 0 14px; font-size: 14px; color: #fff; }
.chat-send { padding: 6px 14px; background: rgba(100,180,255,0.2); border-radius: 16px; font-size: 13px; color: rgba(140,200,255,0.95); margin-left: 8px; cursor: pointer; }
.chat-header-right { width: 20px; }
.chat-empty { display:flex; flex-direction:column; align-items:center; padding:80px 0; }
.chat-empty-icon { font-size:36px; margin-bottom:12px; }
.chat-empty-text { font-size:14px; color:rgba(255,255,255,0.4); }

/* Temp chat banner */
.temp-chat-banner { display:flex; align-items:center; justify-content:space-between; padding:6px 15px; background:rgba(255,193,7,0.08); border-bottom:1px solid rgba(255,193,7,0.1); }
.temp-chat-text { font-size:12px; color:rgba(255,193,7,0.8); }
.temp-chat-close { font-size:12px; color:#ff9f43; cursor:pointer; padding:4px 10px; border:1px solid rgba(255,159,67,0.3); border-radius:10px; }

/* Quick replies */
.chat-quick-replies { display:flex; flex-wrap:wrap; gap:6px; padding:6px 12px; background:rgba(15,18,40,0.6); border-top:1px solid rgba(255,255,255,0.03); }
.quick-reply-btn { padding:4px 12px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08); border-radius:14px; font-size:12px; color:rgba(255,255,255,0.7); cursor:pointer; white-space:nowrap; }
.quick-reply-btn:active { background:rgba(100,180,255,0.15); }

/* Chat message with avatar and time */
.chat-msg-avatar-wrap { width:32px; height:32px; flex-shrink:0; overflow:hidden; }
.chat-msg-self .chat-msg-avatar-wrap { margin-left:8px; margin-right:0; }
.chat-msg-other .chat-msg-avatar-wrap { margin-right:8px; margin-left:0; }
.chat-msg-content { display:flex; flex-direction:column; max-width:70%; }
.chat-msg-self .chat-msg-content { align-items:flex-end; }
.chat-msg-other .chat-msg-content { align-items:flex-start; }
.chat-msg-bubble { padding:10px 14px; border-radius:12px; font-size:14px; line-height:1.5; }
.chat-msg-other .chat-msg-bubble { background:rgba(255,255,255,0.08); color:rgba(255,255,255,0.9); }
.chat-msg-self .chat-msg-bubble { background:linear-gradient(135deg,#E6A23C,#C08B5C); color:#fff; }
.chat-msg-time { font-size:10px; color:rgba(255,255,255,0.3); margin-top:3px; padding:0 4px; }

/* Time divider */
.chat-time-divider { text-align:center; margin:12px 0; }
.chat-time-divider span { font-size:11px; color:rgba(255,255,255,0.3); background:rgba(255,255,255,0.04); padding:2px 10px; border-radius:8px; }

/* Friends page */
.friends-page { min-height:calc(100vh - 50px); padding:0 0 80px; }
.friends-tab-bar { display:flex; padding:10px 15px; gap:10px; border-bottom:1px solid rgba(255,255,255,0.05); }
.friends-tab { padding:6px 14px; border-radius:16px; font-size:13px; color:rgba(255,255,255,0.5); cursor:pointer; background:rgba(255,255,255,0.04); }
.friends-tab-active { color:#fff; background:rgba(100,180,255,0.15); border:1px solid rgba(100,180,255,0.2); }
.friends-search-bar { padding:10px 15px; }
.friends-search-input { width:100%; height:36px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08); border-radius:18px; padding:0 16px; font-size:14px; color:#fff; outline:none; box-sizing:border-box; }
.friends-list { padding:0 15px; }
.friend-card { display:flex; align-items:center; padding:10px 0; border-bottom:1px solid rgba(255,255,255,0.04); }
.friend-avatar-wrap { margin-right:10px; cursor:pointer; }
.friend-info { flex:1; cursor:pointer; }
.friend-name-row { display:flex; align-items:center; gap:6px; }
.friend-name { font-size:15px; color:#fff; font-weight:bold; }
.friend-last-msg { font-size:12px; color:rgba(255,255,255,0.4); margin-top:2px; display:block; }
.friend-chat-btn { width:36px; height:36px; border-radius:50%; background:rgba(100,180,255,0.1); display:flex; align-items:center; justify-content:center; font-size:16px; cursor:pointer; }
.request-card { display:flex; align-items:center; padding:10px 0; border-bottom:1px solid rgba(255,255,255,0.04); gap:10px; }
.request-info { flex:1; display:flex; flex-direction:column; gap:3px; }
.request-name { font-size:15px; color:#fff; font-weight:bold; }
.request-message { font-size:12px; color:rgba(255,255,255,0.5); }
.request-time { font-size:11px; color:rgba(255,255,255,0.3); }
.request-actions { display:flex; gap:8px; }
.accept-btn { padding:5px 14px; border-radius:14px; font-size:12px; color:#fff; background:linear-gradient(135deg,#43e97b,#38f9d7); cursor:pointer; }
.reject-btn { padding:5px 14px; border-radius:14px; font-size:12px; color:rgba(255,255,255,0.6); background:rgba(255,255,255,0.08); cursor:pointer; }

/* Message page avatar fixes */
.msg-avatar-friend { width:42px; height:42px; border-radius:50%; flex-shrink:0; margin-right:10px; overflow:hidden; }
.msg-avatar-temp { width:42px; height:42px; border-radius:50%; flex-shrink:0; margin-right:10px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#667eea,#764ba2); }
.msg-avatar-temp .profile-avatar, .msg-avatar-friend .profile-avatar { width:100% !important; height:100% !important; }

/* ===== Detail Pages ===== */
.detail-container { min-height: 100vh; padding-bottom: 80px; }
.detail-header { display: flex; align-items: center; padding: 12px 15px; background: rgba(15,18,40,0.9); border-bottom: 1px solid rgba(255,255,255,0.05); position: sticky; top: 0; z-index: 10; }
.detail-back { font-size: 18px; color: #fff; margin-right: 10px; cursor: pointer; }
.detail-title { font-size: 15px; color: #fff; font-weight: bold; flex: 1; }
.detail-content { padding: 15px; }
.detail-author { display: flex; align-items: center; margin-bottom: 12px; }
.detail-author-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; color: #fff; overflow: hidden; margin-right: 8px; }
.detail-author-name { font-size: 14px; color: #fff; font-weight: bold; }
.detail-author-time { font-size: 11px; color: rgba(255,255,255,0.4); }
.detail-text { font-size: 15px; color: rgba(255,255,255,0.9); line-height: 1.8; margin-bottom: 12px; }
.detail-images { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.detail-img { width: calc(33.33% - 4px); aspect-ratio: 1; border-radius: 6px; object-fit: cover; }
.detail-actions { display: flex; gap: 20px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.detail-action { display: flex; align-items: center; gap: 4px; font-size: 13px; color: rgba(255,255,255,0.6); cursor: pointer; }
.detail-action-active { color: #E6A23C; }
.detail-source-tag { display:inline-block; padding:3px 10px; background:rgba(230,162,60,0.15); color:#E6A23C; border-radius:12px; font-size:12px; margin-bottom:10px; }

/* Campus detail */
.campus-detail-author { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.campus-author-info { flex:1; }
.campus-author-name-row { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.campus-author-name { font-size:15px; font-weight:bold; color:#fff; }
.campus-author-real { font-size:11px; color:rgba(255,255,255,0.4); }
.campus-author-time { font-size:11px; color:rgba(255,255,255,0.35); }
.admin-badge { padding:2px 8px; border-radius:6px; font-size:10px; background:linear-gradient(135deg,#f5a623,#d0021b); color:#fff; }
.user-badge { padding:2px 8px; border-radius:6px; font-size:10px; background:rgba(100,160,240,0.2); color:rgba(255,255,255,0.7); }
.campus-sub-tag { padding:3px 10px; border-radius:10px; font-size:11px; }
.sub-tag-lost { background:rgba(255,80,80,0.15); color:#ff7777; }
.sub-tag-found { background:rgba(40,200,100,0.15); color:#28c864; }
.campus-cat-tag { padding:3px 10px; border-radius:10px; font-size:11px; background:rgba(100,180,255,0.15); color:rgba(100,180,255,0.9); }
.owner-tag { padding:4px 12px; background:rgba(255,193,7,0.15); border:1px solid rgba(255,193,7,0.3); border-radius:16px; font-size:11px; color:#ffc107; }

.status-banner { padding:10px 16px; border-radius:10px; margin-bottom:12px; text-align:center; font-size:13px; }
.status-0 { background:rgba(255,193,7,0.1); color:#ffc107; }
.status-1 { background:rgba(40,200,100,0.1); color:#28c864; }
.status-2 { background:rgba(255,80,80,0.1); color:#ff5050; }
.finished-banner { padding:10px 16px; border-radius:10px; margin-bottom:12px; text-align:center; background:rgba(100,100,100,0.15); border:1px solid rgba(150,150,150,0.2); font-size:13px; color:rgba(200,200,200,0.8); }

.campus-detail-card { background:rgba(20,25,50,0.75); border:1px solid rgba(100,160,240,0.12); border-radius:14px; padding:16px; margin-bottom:12px; }
.campus-detail-title-row { display:flex; align-items:center; margin-bottom:8px; }
.campus-detail-title { font-size:18px; font-weight:bold; color:#fff; flex:1; line-height:1.4; }
.campus-detail-price-row { display:flex; align-items:baseline; gap:8px; margin:8px 0; padding-bottom:8px; border-bottom:1px solid rgba(100,160,240,0.06); }
.price-label { font-size:13px; color:rgba(255,255,255,0.5); }
.price-value { font-size:20px; color:#ff9f43; font-weight:bold; }
.campus-detail-desc { font-size:14px; color:rgba(255,255,255,0.85); line-height:1.8; margin-top:10px; }
.campus-detail-images { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.campus-detail-img { width:100px; height:100px; border-radius:8px; object-fit:cover; }

.campus-info-card { background:rgba(20,25,50,0.6); border:1px solid rgba(100,160,240,0.08); border-radius:14px; padding:14px; margin-bottom:12px; }
.campus-info-row { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid rgba(100,160,240,0.04); }
.campus-info-row:last-child { border-bottom:none; }
.info-icon { font-size:14px; }
.info-label { font-size:13px; color:rgba(255,255,255,0.5); width:40px; }
.info-value { font-size:13px; color:rgba(255,255,255,0.9); flex:1; }

.campus-comment-section { background:rgba(20,25,50,0.6); border:1px solid rgba(100,160,240,0.08); border-radius:14px; padding:16px; margin-bottom:80px; }
.campus-comment-title { font-size:15px; color:#fff; font-weight:bold; margin-bottom:12px; }
.campus-comment-empty { padding:20px 0; text-align:center; font-size:13px; color:rgba(255,255,255,0.3); }
.campus-comment-item { display:flex; align-items:flex-start; gap:10px; margin-bottom:12px; }
.campus-comment-avatar { width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
.campus-comment-body { flex:1; }
.campus-comment-author { font-size:13px; color:rgba(100,180,255,0.9); font-weight:bold; }
.campus-comment-text { font-size:14px; color:rgba(255,255,255,0.85); line-height:1.6; }
.campus-comment-time { font-size:11px; color:rgba(255,255,255,0.35); }
.campus-comment-input-bar { display:flex; align-items:center; gap:10px; margin-top:12px; padding-top:12px; border-top:1px solid rgba(100,160,240,0.08); }
.campus-comment-input { flex:1; height:36px; background:rgba(255,255,255,0.08); border-radius:18px; padding:0 16px; color:#fff; font-size:13px; }
.campus-comment-send { padding:0 16px; height:36px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#667eea,#764ba2); border-radius:18px; font-size:13px; color:#fff; font-weight:bold; cursor:pointer; }

.campus-bottom-bar { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:480px; padding:10px 16px; background:rgba(10,12,30,0.95); border-top:1px solid rgba(100,160,240,0.1); display:flex; gap:10px; z-index:100; }
.campus-bottom-btn { flex:1; height:40px; border-radius:20px; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:bold; cursor:pointer; }
.campus-bottom-btn.like-btn { background:rgba(255,80,80,0.12); border:1px solid rgba(255,80,80,0.25); color:rgba(255,150,150,0.9); }
.campus-bottom-btn.temp-chat-btn { background:linear-gradient(135deg,#667eea,#764ba2); color:#fff; }
.campus-bottom-btn.report-btn { background:rgba(255,160,0,0.1); border:1px solid rgba(255,160,0,0.2); color:rgba(255,180,80,0.9); }
.campus-bottom-btn.btn-finish { background:rgba(100,180,100,0.15); border:1px solid rgba(100,180,100,0.3); color:#28c864; }
.campus-bottom-btn.btn-delete { background:rgba(255,80,80,0.15); border:1px solid rgba(255,80,80,0.3); color:#ff5050; }

/* Form items */
.form-item { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid rgba(100,160,240,0.06); }
.form-item-column { flex-direction:column; align-items:stretch; }
.form-label { font-size:14px; color:rgba(255,255,255,0.7); width:70px; flex-shrink:0; }
.form-input { flex:1; height:40px; background:rgba(255,255,255,0.08); border-radius:10px; padding:0 14px; color:#fff; font-size:14px; }
.form-textarea { width:100%; min-height:100px; background:rgba(255,255,255,0.08); border-radius:10px; padding:12px 14px; color:#fff; font-size:14px; line-height:1.6; resize:vertical; }
.char-count { font-size:11px; color:rgba(255,255,255,0.4); text-align:right; margin-top:4px; }
.tag-selector { display:flex; gap:10px; flex:1; }
.tag-option { padding:6px 20px; border-radius:20px; border:1px solid rgba(255,255,255,0.15); font-size:13px; color:rgba(255,255,255,0.6); cursor:pointer; }
.tag-active { background:rgba(230,162,60,0.2); border-color:#E6A23C; color:#E6A23C; }
.image-upload-area { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.image-preview-item { position:relative; width:80px; height:80px; }
.preview-img { width:80px; height:80px; border-radius:8px; object-fit:cover; }
.image-remove { position:absolute; top:-4px; right:-4px; width:20px; height:20px; background:rgba(255,80,80,0.9); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; color:#fff; cursor:pointer; }
.image-add-btn { width:80px; height:80px; border:1px dashed rgba(255,255,255,0.2); border-radius:8px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; font-size:12px; color:rgba(255,255,255,0.4); cursor:pointer; }
.tips-card { background:rgba(20,25,50,0.5); border:1px solid rgba(100,160,240,0.08); border-radius:10px; padding:14px; margin:12px 0; }
.tips-title { font-size:14px; color:#E6A23C; margin-bottom:8px; }
.tips-text { font-size:12px; color:rgba(255,255,255,0.5); line-height:1.6; }
.report-reason-item { padding:12px; border-bottom:1px solid rgba(255,255,255,0.1); cursor:pointer; transition:background 0.2s; }
.report-reason-item:hover { background:rgba(230,162,60,0.1); }
.report-reason-cancel { padding:12px; color:rgba(255,255,255,0.5); cursor:pointer; margin-top:5px; }

/* Comment section */
.comment-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.comment-title { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 10px; }
.comment-list { display: flex; flex-direction: column; gap: 10px; }
.comment-item { display: flex; gap: 8px; align-items: flex-start; }
.comment-avatar { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; color: #fff; overflow: hidden; }
.comment-body { flex: 1; }
.comment-author { font-size: 12px; color: rgba(200,220,255,0.85); font-weight: 500; }
.comment-text { font-size: 13px; color: rgba(255,255,255,0.82); line-height: 1.5; margin-top: 2px; }
.comment-time { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 2px; }
.comment-input-bar { display: flex; align-items: center; gap: 8px; padding: 8px 0; margin-top: 12px; position: sticky; bottom: 0; background: rgba(0,0,0,0.8); }
.comment-input { flex: 1; height: 36px; background: rgba(255,255,255,0.06); border-radius: 18px; padding: 0 14px; font-size: 14px; color: #fff; }
.comment-send { padding: 6px 14px; background: rgba(100,180,255,0.2); border-radius: 16px; font-size: 13px; color: rgba(140,200,255,0.95); cursor: pointer; }

/* ===== Create Pages ===== */
.create-container { min-height: 100vh; padding: 15px; padding-bottom: 80px; }
.create-header { display: flex; align-items: center; margin-bottom: 15px; }
.create-back { font-size: 18px; color: #fff; margin-right: 10px; cursor: pointer; }
.create-title { font-size: 16px; color: #fff; font-weight: bold; }
.create-textarea { width: 100%; min-height: 120px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 12px; font-size: 14px; color: #fff; resize: none; margin-bottom: 12px; }
.create-input { width: 100%; height: 44px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0 12px; font-size: 14px; color: #fff; margin-bottom: 12px; }
.create-select { width: 100%; height: 44px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0 12px; font-size: 14px; color: #fff; margin-bottom: 12px; }
.create-select option { background: #1a1a2e; color: #fff; }
.create-btn { width: 100%; height: 48px; background: linear-gradient(135deg, #E6A23C 0%, #C08B5C 100%); color: #fff; border-radius: 24px; font-size: 16px; font-weight: bold; cursor: pointer; }
.create-image-upload { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.create-image-item { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }
.create-image-add { width: 80px; height: 80px; border: 1px dashed rgba(255,255,255,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: rgba(255,255,255,0.3); cursor: pointer; }

/* ===== Admin Page ===== */
.admin-page { min-height: 100vh; background: #000; color: #fff; }
.admin-top-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; background: rgba(20,25,50,0.8); border-bottom: 1px solid rgba(255,255,255,0.06); }
.admin-top-title { font-size: 16px; color: #fff; font-weight: bold; }
.admin-logout { font-size: 13px; color: rgba(245,108,108,0.8); cursor: pointer; }
.admin-tab-bar { display: flex; overflow-x: auto; padding: 10px 15px; background: rgba(15,18,40,0.6); border-bottom: 1px solid rgba(255,255,255,0.03); -webkit-overflow-scrolling: touch; }
.admin-tab-bar::-webkit-scrollbar { display: none; }
.admin-nav-item { padding: 6px 12px; margin-right: 8px; border-radius: 12px; font-size: 13px; white-space: nowrap; cursor: pointer; color: rgba(255,255,255,0.5); }
.admin-nav-active { background: rgba(100,180,255,0.15); color: #fff; border: 1px solid rgba(100,180,255,0.2); }
.admin-subtitle { padding: 10px 15px; font-size: 12px; color: rgba(255,255,255,0.4); }
#admin-content { padding: 15px; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.admin-stat-card { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 15px; text-align: center; cursor: pointer; }
.admin-stat-icon { font-size: 24px; margin-bottom: 8px; display: block; }
.admin-stat-num { font-size: 22px; font-weight: bold; margin-bottom: 4px; display: block; }
.admin-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); }
.admin-search { width: 100%; height: 36px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 0 16px; font-size: 14px; color: #fff; outline: none; box-sizing: border-box; margin-bottom: 15px; }
.admin-filter-bar { display: flex; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.admin-filter { padding: 4px 12px; border-radius: 12px; font-size: 12px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); cursor: pointer; }
.admin-filter-active { background: rgba(100,180,255,0.15); color: #fff; border: 1px solid rgba(100,180,255,0.2); }
.admin-user-card { display: flex; align-items: center; padding: 12px; background: rgba(255,255,255,0.05); border-radius: 12px; margin-bottom: 10px; }
.admin-user-info { flex: 1; margin-left: 10px; }
.admin-user-name { font-size: 14px; font-weight: bold; }
.admin-user-meta { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.admin-user-actions { display: flex; gap: 8px; }
.admin-btn { padding: 4px 10px; border-radius: 8px; font-size: 12px; cursor: pointer; }
.admin-btn-danger { background: rgba(245,108,108,0.15); color: #f56c6c; }
.admin-btn-success { background: rgba(102,187,106,0.15); color: #67c23a; }
.admin-btn-warning { background: rgba(230,162,60,0.15); color: #e6a23c; }
.admin-btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.admin-tag { padding: 2px 6px; border-radius: 4px; font-size: 11px; margin-left: 6px; }
.admin-tag-danger { background: rgba(245,108,108,0.15); color: #f56c6c; }
.admin-tag-warning { background: rgba(230,162,60,0.15); color: #e6a23c; }
.admin-tag-ok { background: rgba(102,187,106,0.15); color: #67c23a; }
.admin-empty { text-align: center; padding: 40px 0; color: rgba(255,255,255,0.4); font-size: 14px; }
.admin-ann-form { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 15px; margin-bottom: 15px; }
.admin-input { width: 100%; height: 36px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 0 12px; font-size: 14px; color: #fff; outline: none; box-sizing: border-box; margin-bottom: 10px; }
.admin-textarea { width: 100%; min-height: 80px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 12px; font-size: 14px; color: #fff; outline: none; box-sizing: border-box; margin-bottom: 10px; resize: vertical; }
.admin-ann-list { margin-top: 10px; }
.admin-ann-card { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 15px; margin-bottom: 10px; }
.admin-ann-title { font-size: 15px; font-weight: bold; margin-bottom: 5px; }
.admin-ann-content { font-size: 13px; color: rgba(255,255,255,0.8); margin-bottom: 8px; }
.admin-ann-meta { font-size: 12px; color: rgba(255,255,255,0.5); display: flex; justify-content: space-between; }
.admin-word-input-bar { display: flex; gap: 10px; margin-bottom: 15px; }
.admin-word-input { flex: 1; height: 36px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 0 12px; font-size: 14px; color: #fff; outline: none; }
.admin-word-list { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-word-tag { background: rgba(255,255,255,0.06); border-radius: 8px; padding: 4px 8px; font-size: 13px; display: flex; align-items: center; }
.admin-word-remove { margin-left: 6px; cursor: pointer; color: rgba(255,255,255,0.5); }
.admin-content-list { display: flex; flex-direction: column; gap: 10px; }
.admin-content-card { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 12px; }
.admin-content-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.admin-content-author { font-size: 13px; color: rgba(255,255,255,0.8); flex: 1; }
.admin-content-time { font-size: 11px; color: rgba(255,255,255,0.35); }
.admin-content-text { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; margin-bottom: 8px; }
.admin-content-footer { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.4); gap: 10px; }
.admin-content-actions { display: flex; gap: 8px; }
.admin-report-list { display: flex; flex-direction: column; gap: 10px; }
.admin-report-card { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 12px; }
.admin-report-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.admin-report-title { font-size: 13px; color: rgba(255,255,255,0.8); flex: 1; }
.admin-report-time { font-size: 11px; color: rgba(255,255,255,0.35); }
.admin-report-content { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; margin-bottom: 8px; }
.admin-report-actions { display: flex; gap: 8px; }
.admin-admin-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.admin-admin-card { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.05); border-radius: 12px; padding: 12px; }
.admin-admin-info { display: flex; align-items: center; gap: 8px; }
.admin-admin-account { font-size: 14px; color: #fff; font-weight: bold; }
.admin-admin-uni { font-size: 12px; color: rgba(255,255,255,0.5); }
.admin-campus-list { margin-top: 10px; }
.admin-campus-card { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.admin-campus-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.admin-campus-name { font-size: 13px; color: rgba(255,255,255,0.8); flex: 1; }
.admin-campus-time { font-size: 11px; color: rgba(255,255,255,0.35); }
.admin-campus-title { font-size: 14px; color: #fff; font-weight: bold; margin-bottom: 4px; }
.admin-campus-desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; margin-bottom: 8px; }
.admin-campus-actions { display: flex; gap: 8px; }
.admin-map-list { display: flex; flex-direction: column; gap: 15px; }
.admin-map-card { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 15px; margin-bottom: 15px; }
.admin-map-img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; cursor: pointer; }
.admin-map-info { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.admin-map-uploader { color: rgba(255,255,255,0.8); }
.admin-map-actions { display: flex; gap: 10px; }

/* ===== Settings Page ===== */
.settings-container { min-height: 100vh; padding: 15px; padding-bottom: 80px; }
.settings-header { display: flex; align-items: center; margin-bottom: 15px; }
.settings-back { font-size: 18px; color: #fff; margin-right: 10px; cursor: pointer; }
.settings-title { font-size: 16px; color: #fff; font-weight: bold; }

/* ===== Fortune Page ===== */
.fortune-container { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.fortune-card { width: 280px; padding: 30px; background: linear-gradient(160deg, rgba(26,26,46,0.98), rgba(16,16,38,0.98)); border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); text-align: center; }
.fortune-icon { font-size: 48px; margin-bottom: 16px; }
.fortune-level { font-size: 14px; color: #ffd700; margin-bottom: 8px; }
.fortune-title { font-size: 18px; color: #fff; font-weight: bold; margin-bottom: 12px; }
.fortune-text { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.8; }
.fortune-draw-btn { width: 120px; height: 48px; background: linear-gradient(135deg, #E6A23C, #C08B5C); color: #fff; border-radius: 24px; font-size: 16px; font-weight: bold; cursor: pointer; margin-top: 20px; border: none; }
.fortune-publish-btn { width: 100%; height: 42px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border-radius: 21px; font-size: 14px; font-weight: bold; cursor: pointer; margin-top: 16px; border: none; }
.fortune-hint { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 10px; }
.fortune-level-top { color: #ffd700 !important; font-size: 16px !important; font-weight: bold; }
.fortune-level-good { color: #64b4ff !important; font-size: 16px !important; font-weight: bold; }
.fortune-level-mid { color: #67C23A !important; font-size: 16px !important; font-weight: bold; }
@keyframes fortuneShake { 0%,100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }

/* ===== Timer Page ===== */
.timer-container { min-height: 100vh; padding-bottom: 80px; }
.timer-mode-tabs { display: flex; padding: 8px 15px; gap: 8px; }
.timer-mode-tab { flex: 1; text-align: center; padding: 8px; border-radius: 10px; font-size: 14px; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); cursor: pointer; }
.timer-mode-tab.active { color: #E6A23C; background: rgba(230,162,60,0.15); font-weight: bold; }
.timer-presets { display: flex; gap: 8px; padding: 12px 15px; flex-wrap: wrap; }
.timer-preset { padding: 8px 16px; border-radius: 20px; font-size: 13px; color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); cursor: pointer; }
.timer-preset.active { color: #E6A23C; background: rgba(230,162,60,0.15); border-color: rgba(230,162,60,0.4); }
.timer-custom { display: flex; align-items: center; gap: 8px; padding: 0 15px 12px; }
.timer-custom-input { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0 10px; height: 36px; color: #fff; font-size: 14px; }
.timer-display { text-align: center; font-size: 48px; font-weight: bold; color: #fff; padding: 40px 0; font-variant-numeric: tabular-nums; }
.timer-display.running { color: #E6A23C; text-shadow: 0 0 20px rgba(230,162,60,0.3); }
.timer-display.paused { color: rgba(255,255,255,0.4); }
.timer-controls { display: flex; justify-content: center; gap: 12px; padding: 0 20px; }
.timer-start-btn { padding: 10px 36px; background: linear-gradient(135deg, #E6A23C, #C08B5C); color: #fff; border-radius: 24px; font-size: 16px; font-weight: bold; cursor: pointer; border: none; }
.timer-pause-btn { padding: 10px 28px; background: rgba(255,255,255,0.1); color: #fff; border-radius: 24px; font-size: 15px; cursor: pointer; border: 1px solid rgba(255,255,255,0.15); }
.timer-resume-btn { padding: 10px 28px; background: linear-gradient(135deg, #67C23A, #4a9e2e); color: #fff; border-radius: 24px; font-size: 15px; font-weight: bold; cursor: pointer; border: none; }
.timer-reset-btn { padding: 10px 28px; background: rgba(245,108,108,0.15); border: 1px solid rgba(245,108,108,0.3); color: #F56C6C; border-radius: 24px; font-size: 15px; cursor: pointer; }

/* ===== Personality Test Page ===== */
.pt-intro { text-align: center; padding: 40px 20px; }
.pt-intro-icon { font-size: 56px; margin-bottom: 16px; }
.pt-intro-title { font-size: 22px; color: #fff; font-weight: bold; margin-bottom: 8px; }
.pt-intro-badge { display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: 12px; color: rgba(230,162,60,0.9); background: rgba(230,162,60,0.1); border: 1px solid rgba(230,162,60,0.2); margin-bottom: 16px; }
.pt-intro-desc { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 20px; }
.pt-progress-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; margin-bottom: 8px; overflow: hidden; }
.pt-progress-fill { height: 100%; background: linear-gradient(90deg, #667eea, #764ba2); border-radius: 2px; transition: width 0.3s; }
.pt-progress-text { font-size: 12px; color: rgba(255,255,255,0.4); text-align: right; margin-bottom: 12px; }
.pt-question-card { background: rgba(20,25,50,0.6); border-radius: 12px; padding: 20px; border: 1px solid rgba(100,160,240,0.1); }
.pt-question-text { font-size: 16px; color: #fff; font-weight: bold; line-height: 1.6; margin-bottom: 16px; }
.pt-options { display: flex; flex-direction: column; gap: 10px; }
.pt-option { padding: 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; font-size: 14px; color: rgba(255,255,255,0.85); cursor: pointer; transition: all 0.2s; }
.pt-option:hover { background: rgba(100,180,255,0.1); border-color: rgba(100,180,255,0.3); }
.pt-option:active { background: rgba(100,180,255,0.15); transform: scale(0.98); }
.pt-result-card { text-align: center; padding: 30px 20px; }
.pt-result-code { font-size: 36px; font-weight: bold; color: #E6A23C; margin-bottom: 8px; text-shadow: 0 0 20px rgba(230,162,60,0.3); }
.pt-result-name { font-size: 20px; color: #fff; font-weight: bold; margin-bottom: 4px; }
.pt-result-tag { font-size: 13px; color: rgba(100,180,255,0.8); margin-bottom: 16px; }
.pt-result-desc { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 16px; }
.pt-result-highlight { font-size: 13px; color: rgba(255,215,0,0.8); margin-bottom: 8px; text-align: left; background: rgba(255,215,0,0.05); padding: 10px; border-radius: 8px; }
.pt-result-warning { font-size: 13px; color: rgba(255,150,150,0.8); text-align: left; background: rgba(255,150,150,0.05); padding: 10px; border-radius: 8px; margin-bottom: 16px; }

/* ===== Warm Quote Page ===== */
.warmquote-container { min-height: 100vh; }
.warmquote-body { padding: 30px 20px; display: flex; flex-direction: column; align-items: center; }
.warmquote-heart { text-align: center; cursor: pointer; padding: 40px; }
.warmquote-heart-icon { font-size: 56px; animation: heartBeat 1.5s ease-in-out infinite; }
@keyframes heartBeat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.warmquote-hint { font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 12px; }
.warmquote-card { width: 100%; max-width: 340px; background: linear-gradient(160deg, rgba(255,240,245,0.05), rgba(255,200,180,0.03)); border: 1px solid rgba(255,200,200,0.15); border-radius: 16px; padding: 24px; text-align: center; }
.warmquote-quote-mark { font-size: 40px; color: rgba(230,162,60,0.4); font-family: Georgia, serif; line-height: 1; }
.warmquote-text { font-size: 16px; color: rgba(255,255,255,0.9); line-height: 1.8; margin: 8px 0 16px; }
.warmquote-source { font-size: 13px; color: rgba(255,255,255,0.4); }
.warmquote-actions { width: 100%; max-width: 340px; margin-top: 20px; }
.anim-fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Campus Map Page ===== */
.campus-map-section { margin-bottom: 16px; }
.campus-map-title { font-size: 15px; color: #fff; font-weight: bold; margin-bottom: 10px; }
.campus-map-img-wrap { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.campus-map-img { width: 100%; display: block; cursor: pointer; }
.campus-map-time { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 6px; }
.campus-map-empty { text-align: center; padding: 40px 20px; }
.campus-map-empty-icon { font-size: 48px; margin-bottom: 12px; }
.campus-map-empty-text { font-size: 16px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.campus-map-empty-sub { font-size: 13px; color: rgba(255,255,255,0.3); }
.campus-map-pending { background: rgba(20,25,50,0.6); border-radius: 10px; padding: 12px; margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.08); }
.campus-map-pending-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.campus-map-pending-badge { padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.campus-map-pending-badge.pending { background: rgba(230,162,60,0.15); color: #E6A23C; }
.campus-map-pending-badge.approved { background: rgba(103,194,58,0.15); color: #67C23A; }
.campus-map-pending-badge.rejected { background: rgba(245,108,108,0.15); color: #F56C6C; }
.campus-map-pending-time { font-size: 11px; color: rgba(255,255,255,0.35); }
.campus-map-pending-img { width: 100%; border-radius: 8px; margin-bottom: 8px; }
.campus-map-pending-reason { font-size: 13px; color: rgba(245,108,108,0.8); margin-top: 6px; }
.campus-map-notice { font-size: 12px; color: rgba(255,255,255,0.35); text-align: center; margin-top: 12px; }

/* ===== Create Subtitle ===== */
.create-subtitle { display: block; font-size: 12px; color: rgba(230,162,60,0.7); margin-top: 4px; }

/* ===== Image Preview Modal ===== */
.image-preview-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.image-preview-img { max-width: 90%; max-height: 85%; object-fit: contain; border-radius: 4px; }
.image-preview-close { position: fixed; top: 15px; right: 15px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10001; }
.image-preview-counter { position: fixed; top: 15px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 14px; z-index: 10001; }
.image-preview-arrow { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10001; }
.image-preview-prev { left: 15px; }
.image-preview-next { right: 15px; }

/* ===== AI Chat Page ===== */
.ai-chat-page { display: flex; flex-direction: column; height: 100vh; background: #000; }
.ai-chat-header { display: flex; align-items: center; padding: 10px 12px; background: rgba(20,25,50,0.8); border-bottom: 1px solid rgba(255,255,255,0.06); position: sticky; top: 0; z-index: 10; }
.ai-chat-header-info { display: flex; align-items: center; flex: 1; gap: 8px; }
.ai-chat-avatar { font-size: 28px; }
.ai-chat-header-text { display: flex; flex-direction: column; }
.ai-chat-title { font-size: 15px; color: #fff; font-weight: bold; }
.ai-chat-status { font-size: 11px; color: rgba(255,255,255,0.4); }
.ai-chat-status.online { color: rgba(103,194,58,0.8); }
.ai-chat-status.offline { color: rgba(255,255,255,0.4); }
.ai-chat-settings-btn { font-size: 20px; cursor: pointer; padding: 4px 8px; }
.ai-chat-greeting { text-align: center; font-size: 12px; color: rgba(255,255,255,0.35); padding: 8px 0 4px; }
.ai-chat-messages { flex: 1; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { display: flex; align-items: flex-start; gap: 8px; max-width: 85%; }
.ai-msg-user { align-self: flex-end; }
.ai-msg-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; }
.ai-msg-avatar-ai { background: linear-gradient(135deg, #667eea, #764ba2); font-size: 16px; }
.ai-msg-avatar-user { background: linear-gradient(135deg, #4facfe, #00f2fe); color: #fff; }
.ai-msg-bubble { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.6; word-break: break-word; white-space: pre-wrap; }
.ai-msg-bubble-ai { background: rgba(20,25,50,0.8); color: rgba(255,255,255,0.9); border: 1px solid rgba(100,160,240,0.08); border-top-left-radius: 4px; }
.ai-msg-bubble-user { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border-top-right-radius: 4px; }
.ai-typing { display: flex; align-items: center; gap: 4px; padding: 8px 14px; background: rgba(20,25,50,0.8); border-radius: 14px; border-top-left-radius: 4px; align-self: flex-start; border: 1px solid rgba(100,160,240,0.08); }
.ai-typing-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4); animation: aiTypingBounce 1.4s infinite; }
.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiTypingBounce { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }
.ai-quick-questions { display: flex; gap: 8px; padding: 6px 12px; overflow-x: auto; flex-shrink: 0; }
.ai-quick-tag { white-space: nowrap; padding: 5px 14px; border-radius: 16px; font-size: 12px; color: rgba(200,210,255,0.8); background: rgba(100,130,240,0.08); border: 1px solid rgba(100,130,240,0.15); cursor: pointer; transition: all 0.2s; }
.ai-quick-tag:hover { background: rgba(100,130,240,0.15); border-color: rgba(100,130,240,0.3); }
.ai-quick-tag:active { transform: scale(0.96); }
.ai-chat-input-area { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(20,25,50,0.8); border-top: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.ai-chat-input { flex: 1; height: 38px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 19px; padding: 0 16px; color: #fff; font-size: 14px; outline: none; }
.ai-chat-input:focus { border-color: rgba(102,126,234,0.4); }
.ai-chat-input::placeholder { color: rgba(255,255,255,0.3); }
.ai-chat-send { height: 38px; padding: 0 20px; border: none; border-radius: 19px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; font-size: 14px; font-weight: bold; cursor: pointer; flex-shrink: 0; transition: all 0.2s; }
.ai-chat-send:active { transform: scale(0.96); }

/* AI Settings Modal */
.ai-modal-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.ai-modal { width: 300px; background: linear-gradient(160deg, #1a1a2e, #16213e); border-radius: 16px; padding: 20px; border: 1px solid rgba(100,160,240,0.15); }
.ai-modal-title { font-size: 16px; color: #fff; font-weight: bold; text-align: center; margin-bottom: 20px; }
.ai-modal-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ai-modal-label { font-size: 14px; color: rgba(255,255,255,0.8); }
.ai-modal-input { width: 160px; height: 34px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0 10px; color: #fff; font-size: 13px; outline: none; }
.ai-modal-input:focus { border-color: rgba(102,126,234,0.4); }
.ai-modal-status { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.ai-status-badge { padding: 2px 8px; border-radius: 8px; font-size: 12px; }
.ai-status-badge.online { background: rgba(103,194,58,0.15); color: #67C23A; }
.ai-status-badge.offline { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }
.ai-modal-actions { display: flex; gap: 10px; margin-bottom: 12px; }
.ai-modal-btn { flex: 1; height: 36px; border: none; border-radius: 8px; font-size: 14px; font-weight: bold; cursor: pointer; }
.ai-modal-cancel { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }
.ai-modal-save { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.ai-modal-clear { text-align: center; }
.ai-modal-btn-clear { background: none; border: 1px solid rgba(245,108,108,0.2); color: rgba(245,108,108,0.7); padding: 6px 16px; border-radius: 8px; font-size: 13px; cursor: pointer; }

/* AI Switch Toggle */
.ai-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.ai-switch input { opacity: 0; width: 0; height: 0; }
.ai-switch-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.15); border-radius: 12px; transition: 0.3s; }
.ai-switch-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
.ai-switch input:checked + .ai-switch-slider { background: linear-gradient(135deg, #667eea, #764ba2); }
.ai-switch input:checked + .ai-switch-slider::before { transform: translateX(20px); }

/* ===== Interactions Page ===== */
.interact-page { min-height: 100vh; background: #000; }
.interact-clear-all { font-size: 13px; color: rgba(245,108,108,0.7); cursor: pointer; }
.interact-tabs { display: flex; gap: 8px; padding: 8px 12px; overflow-x: auto; }
.interact-tab { white-space: nowrap; padding: 6px 14px; border-radius: 16px; font-size: 13px; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.04); cursor: pointer; transition: all 0.2s; }
.interact-tab-active { color: #fff; background: linear-gradient(135deg, #667eea, #764ba2); }
.interact-actions { display: flex; justify-content: flex-end; padding: 0 12px 6px; }
.interact-read-all { font-size: 12px; color: rgba(102,126,234,0.8); cursor: pointer; }
.interact-list { padding-bottom: 20px; }
.interact-item { display: flex; align-items: flex-start; padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.04); cursor: pointer; position: relative; transition: background 0.2s; }
.interact-item:active { background: rgba(255,255,255,0.02); }
.interact-unread { background: rgba(102,126,234,0.03); }
.interact-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; margin-right: 10px; }
.interact-body { flex: 1; min-width: 0; }
.interact-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.interact-name { font-size: 14px; color: #fff; font-weight: bold; }
.interact-time { font-size: 11px; color: rgba(255,255,255,0.3); flex-shrink: 0; }
.interact-content { font-size: 13px; color: rgba(255,255,255,0.5); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.interact-dot { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; background: #ff2d55; }
