.navbar.content-mode {
  background: rgba(207, 222, 243, 0.95) !important;
  box-shadow: 0 2px 16px rgba(180,200,230,0.10);
}
.navbar.content-mode .navbar-links a {
  color: #3a5a8c !important;
  background: rgba(255,255,255,0.0);
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}
.navbar.content-mode .navbar-links a.active, .navbar.content-mode .navbar-links a:hover {
  background: rgba(224,234,252,0.7);
  color: #1e3c72 !important;
  border-radius: 6px;
}
.navbar.content-mode .toggle-mode {
  color: #3a5a8c !important;
}
/* Content Page Sky/Cloud Flowing Background */
.content-bg-sky {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, #b3d8f6 0%, #e0eafc 40%, #cfdef3 70%, #f5fafd 100%);
  background-image: url('https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/sky/clouds.png'), linear-gradient(120deg, #b3d8f6 0%, #e0eafc 40%, #cfdef3 70%, #f5fafd 100%);
  background-repeat: repeat-x, no-repeat;
  background-size: 1200px 300px, 200% 200%;
  background-position: 0 40px, 0% 50%;
  animation: skyCloudFlow 18s linear infinite, cloudMove 60s linear infinite;
  opacity: 1;
  filter: brightness(1.08) saturate(1.08);
}
@keyframes skyCloudFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes cloudMove {
  0% { background-position: 0 40px, 0% 50%; }
  100% { background-position: 1200px 40px, 100% 50%; }
}
/* Content section sky/cloud flowing background */
.content-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(120deg, #e0eafc 0%, #cfdef3 100%);
  animation: skyFlow 12s linear infinite;
  opacity: 0.95;
}
@keyframes skyFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.content-rect {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  background: rgba(255,255,255,0.85);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(100,150,200,0.18);
  padding: 2.5em 2em;
  max-width: 520px;
  min-width: 320px;
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  font-weight: 600;
  font-size: 1.15em;
  color: #2d3a4a;
  text-align: left;
  margin-top: 8vh;
}
.content#contentPage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}
/* 验证界面马来西亚时间字体 Apple 风格加粗 */
#preVerifyDatetime,
#mainWelcome,
#mainDatetime {
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  font-weight: 700;
  font-size: 1.25em;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.10);
}

#mainIP {
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  font-weight: 500;
  font-size: 1.1em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.10);
}
/* 验证界面马来西亚时间字体 Apple 风格加粗 */
#preVerifyDatetime {
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  font-weight: 700;
  font-size: 1.25em;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.10);
}
 :root {
  --primary: #6B597F;
  --secondary: #BD6C73;
  --accent: #A2869C;
  --bg-light: linear-gradient(135deg, #92A1C2, #6B597F, #A2869C, #BD6C73, #3F5B8D, #2265AA);
  --text-light: #ffffff;
  --bg-dark: #121212;
  --text-dark: #eeeeee;
}

body.after-verify-bg {
  background: var(--bg-light) !important;
  background-size: 600% 600%;
  animation: gradientFlow 15s ease infinite;
}

#preVerifyMask {
  position: fixed;
  z-index: 99999;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  transition: background 1.2s cubic-bezier(.4,2,.6,1);
}

#preVerifyBox {
  background: rgba(255,255,255,0.13);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.37);
  padding: 40px 32px 32px 32px;
  min-width: 340px;
  max-width: 95vw;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.18);
  font-size: 1.1em;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg-light);
  background-size: 600% 600%;
  animation: gradientFlow 15s ease infinite;
  color: var(--text-light);
  scroll-behavior: smooth;
}

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

body.dark-mode {
  background: var(--bg-dark);
  color: var(--text-dark);
}

.navbar {
  background-color: rgba(107, 89, 127, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-links {
  display: flex;
  gap: 24px;
}

.navbar a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
}

.navbar a:hover {
  background: var(--secondary);
  border-radius: 6px;
  padding: 8px 12px;
}

.toggle-mode {
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  padding: 8px;
}

.content {
  margin-top: 100px;
  padding: 60px 20px;
  text-align: center;
}

h1 {
  font-size: 3em;
  font-weight: 800;
  color: var(--secondary);
}

p {
  font-size: 1.2em;
}

button {
  margin-top: 24px;
  padding: 14px 30px;
  font-size: 18px;
  font-weight: bold;
  background-color: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}

button:hover {
  background-color: var(--accent);
}

.character-wrapper {
  position: relative;
  width: 300px;
  margin: 40px auto;
}

.character-wrapper img {
  width: 100%;
  border-radius: 12px;
}

.eyes-container {
  position: absolute;
  top: 17%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.eye {
  width: 40px;
  height: 40px;
  background: white;
  border: 3px solid #333;
  border-radius: 50%;
  margin: 0 3px;
  position: relative;
  overflow: hidden;
}

.pupil {
  width: 16px;
  height: 16px;
  background: #333;
  border-radius: 50%;
  position: absolute;
  top: 12px;
  left: 12px;
  transition: all 0.05s ease;
}

.eye.blinking {
  animation: blink-eye 0.25s ease-in-out;
}

.pupil.blinking {
  animation: blink-pupil 0.25s ease-in-out;
}

@keyframes blink-eye {
  0% { height: 40px; }
  50% { height: 4px; }
  100% { height: 40px; }
}

@keyframes blink-pupil {
  0% { transform: scaleY(1); }
  50% { transform: scaleY(0.1); }
  100% { transform: scaleY(1); }
}

.section {
  padding: 80px 20px;
}

#about { background: #6B597F; }
#contact { background: #3F5B8D; }

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
}

/* 安全验证相关样式 */
#captchaForm {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

#securityStatus {
  margin-bottom: 20px;
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

#ipInfo {
  font-size: 14px;
  color: #ccc;
  margin-top: 10px;
}

#riskLevel {
  margin: 10px 0;
  font-weight: bold;
  font-size: 16px;
}

#verifyBtn {
  margin-top: 15px;
  padding: 12px 24px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

#verifyBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#verifyBtn:hover:not(:disabled) {
  background: var(--accent);
}

#verificationResult {
  margin-top: 15px;
  font-size: 14px;
  font-weight: bold;
}

.cf-turnstile {
  margin: 20px auto;
  display: flex;
  justify-content: center;
}

/* 安全仪表板样式 */
#securityDashboard {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 300px;
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 15px;
  border-radius: 8px;
  font-size: 12px;
  z-index: 10000;
  display: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#securityDashboard h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #fff;
}

#dashboardContent div {
  margin: 5px 0;
  padding: 2px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

#securityDashboard button {
  margin-top: 10px;
  padding: 5px 10px;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

#securityDashboard button:hover {
  background: #555;
}

/* Content Page 全屏样式 */
.content-page {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.content-sky-message {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
  margin-top: 120px;
}

.content-rect {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  background: rgba(255,255,255,0.95);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(100,150,200,0.18);
  padding: 2.5em 2em;
  max-width: 600px;
  min-width: 320px;
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  font-weight: 600;
  font-size: 1.15em;
  color: #2d3a4a;
  text-align: left;
  margin-top: 0;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.10);
}

/* 优化content模式下的导航栏 */
body.content-mode .navbar {
  background: rgba(207, 222, 243, 0.95);
  box-shadow: 0 2px 16px rgba(180,200,230,0.10);
}

body.content-mode .navbar-links a {
  color: #3a5a8c;
  background: rgba(255,255,255,0.0);
  transition: all 0.3s ease;
}

body.content-mode .navbar-links a:hover,
body.content-mode .navbar-links a.active {
  background: rgba(224,234,252,0.7);
  color: #1e3c72;
  padding: 8px 16px;
  border-radius: 6px;
}

body.content-mode .toggle-mode {
  color: #3a5a8c;
}
