/* ============================================
   尊龙凯时·天空之城 - 浮空岛屿网格布局主题样式
   Sky Castle Theme - Floating Islands Grid Layout
   ============================================ */

/* --- 字体引入（本地化） --- */
@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Comfortaa Regular'), local('Comfortaa-Regular');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Mulish Regular'), local('Mulish-Regular');
}

/* --- CSS变量定义 --- */
:root {
  --sky-blue: #4fc3f7;
  --gear-copper: #bf8040;
  --cloud-white: #f5f5f5;
  --island-green: #66bb6a;
  --sunset-purple: #7b1fa2;
  --sky-blue-light: #b3e5fc;
  --gear-copper-light: #d4a76a;
  --gear-copper-dark: #8c5e2a;
  --text-dark: #2c2c2c;
  --text-light: #f0f0f0;
  --shadow-cloud: rgba(79, 195, 247, 0.18);
  --shadow-gear: rgba(191, 128, 64, 0.25);
  --font-title: 'Comfortaa', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Mulish', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max-width: 1200px;
  --radius-island: 18px;
  --transition-float: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- 全局重置 --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: linear-gradient(180deg, #87ceeb 0%, var(--sky-blue) 30%, #b3e5fc 60%, var(--cloud-white) 100%);
  background-attachment: fixed;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gear-copper);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gear-copper-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--gear-copper);
  line-height: 1.3;
}

/* --- 云海背景动画 --- */
#sky-castle-world {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.cloud-layer {
  position: absolute;
  width: 200%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.3" d="M0,160L48,170.7C96,181,192,203,288,197.3C384,192,480,160,576,165.3C672,171,768,213,864,213.3C960,213,1056,171,1152,149.3C1248,128,1344,128,1392,128L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') repeat-x;
  background-size: 50% auto;
  animation: cloudDrift 60s linear infinite;
  opacity: 0.5;
}

.cloud-layer:nth-child(2) {
  animation-duration: 90s;
  animation-direction: reverse;
  opacity: 0.3;
  top: 20%;
}

@keyframes cloudDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- 云海拨开加载动画 --- */
#cloud-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  pointer-events: none;
}

#cloud-curtain .cloud-left,
#cloud-curtain .cloud-right {
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0 0%, #ffffff 50%, #f0f0f0 100%);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

#cloud-curtain.opened .cloud-left {
  transform: translateX(-100%);
}

#cloud-curtain.opened .cloud-right {
  transform: translateX(100%);
}

/* --- 顶部导航栏 --- */
#sky-castle-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gear-copper-light);
  box-shadow: 0 2px 20px var(--shadow-cloud);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--gear-copper);
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-menu li a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-title);
  font-size: 0.88rem;
  color: var(--text-dark);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--gear-copper);
  background: rgba(191, 128, 64, 0.1);
}

.nav-menu li a::after {
  content: '⚙';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  font-size: 0.6rem;
  transition: transform 0.3s ease;
  color: var(--gear-copper);
}

.nav-menu li a:hover::after {
  transform: translateX(-50%) scale(1) rotate(360deg);
}

/* 移动端汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--gear-copper);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* --- Hero视频模块 --- */
#hero-sky-voyage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 16px;
  animation: heroFadeIn 1.5s ease-out;
}

.hero-content .hero-slogan {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
  margin-bottom: 32px;
  animation: heroFadeIn 2s ease-out;
}

.gear-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--gear-copper), var(--gear-copper-dark));
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.1rem;
  border: 2px solid var(--gear-copper-light);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--shadow-gear);
  position: relative;
  overflow: hidden;
}

.gear-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--shadow-gear);
  color: #fff;
}

.gear-button .gear-icon {
  display: inline-block;
  transition: transform 1s ease;
}

.gear-button:hover .gear-icon {
  transform: rotate(360deg);
}

@keyframes heroFadeIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- 浮空岛模块通用样式 --- */
.floating-island {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-island);
  padding: 40px 30px;
  margin-bottom: 40px;
  box-shadow: 0 8px 40px var(--shadow-cloud), 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid rgba(191, 128, 64, 0.15);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.floating-island.visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-island::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 4px;
  background: linear-gradient(90deg, var(--sky-blue), var(--gear-copper), var(--island-green), var(--sunset-purple));
  border-radius: var(--radius-island) var(--radius-island) 0 0;
}

.cloud-effect {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.6));
  pointer-events: none;
}

/* --- 区块标题 --- */
.island-section-title {
  text-align: center;
  margin-bottom: 36px;
}

.island-section-title h2 {
  font-size: 2rem;
  color: var(--gear-copper);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.island-section-title h2::before,
.island-section-title h2::after {
  content: '⚙';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--gear-copper-light);
}

.island-section-title h2::before {
  left: -30px;
}

.island-section-title h2::after {
  right: -30px;
}

.island-section-title p {
  color: #666;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- 主内容区域 --- */
#sky-castle-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px 60px;
}

/* --- 赔率对比模块（飞艇观测台） --- */
#observatory-module {
  background: linear-gradient(135deg, #1a1a3e 0%, #0d1b2a 100%);
  color: var(--text-light);
  border: 1px solid rgba(79, 195, 247, 0.3);
}

#observatory-module .island-section-title h2 {
  color: var(--sky-blue);
}

#observatory-module .island-section-title p {
  color: rgba(255,255,255,0.7);
}

.odds-star-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.star-card {
  background: rgba(79, 195, 247, 0.08);
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.star-card:hover {
  background: rgba(79, 195, 247, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(79, 195, 247, 0.2);
}

.star-card .match-title {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--sky-blue);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(79, 195, 247, 0.2);
}

.odds-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
}

.odds-row .platform-name {
  color: rgba(255,255,255,0.8);
}

.odds-row .odds-value {
  font-family: var(--font-title);
  color: var(--sky-blue);
  font-weight: 700;
}

.odds-row .odds-value.best {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.odds-row .direct-link {
  font-size: 0.8rem;
  color: var(--gear-copper-light);
  border: 1px solid var(--gear-copper-light);
  padding: 2px 10px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.odds-row .direct-link:hover {
  background: var(--gear-copper);
  color: #fff;
}

/* --- 飞艇通行证（注册）模块 --- */
#boarding-pass-module {
  background: linear-gradient(135deg, rgba(191, 128, 64, 0.05) 0%, rgba(255,255,255,0.95) 100%);
  border: 2px solid var(--gear-copper-light);
}

.boarding-pass-form {
  max-width: 500px;
  margin: 0 auto;
  background: linear-gradient(135deg, #fdf6e3, #fff8e7);
  border: 2px solid var(--gear-copper);
  border-radius: 16px;
  padding: 30px;
  position: relative;
}

.boarding-pass-form::before {
  content: '🎫 飞艇通行证';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gear-copper);
  color: #fff;
  padding: 4px 20px;
  border-radius: 20px;
  font-family: var(--font-title);
  font-size: 0.85rem;
}

.form-field {
  margin-bottom: 16px;
}

.form-field input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gear-copper-light);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.9);
  transition: border-color 0.3s ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--gear-copper);
  box-shadow: 0 0 10px var(--shadow-gear);
}

.lever-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-title);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.lever-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(231, 76, 60, 0.4);
}

/* --- 六大浮空岛平台展示 --- */
.floating-islands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.platform-island {
  background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(191, 128, 64, 0.15);
  transition: all 0.4s ease;
  position: relative;
}

.platform-island:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--shadow-cloud);
  border-color: var(--gear-copper);
}

.platform-island .platform-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--sky-blue), var(--gear-copper));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.platform-island h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.platform-island .platform-desc {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 12px;
}

.platform-island .star-rating {
  color: #ffd700;
  font-size: 1rem;
  margin-bottom: 12px;
}

.platform-island .island-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-review,
.btn-visit {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-family: var(--font-title);
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-review {
  background: transparent;
  border: 1px solid var(--gear-copper);
  color: var(--gear-copper);
}

.btn-review:hover {
  background: var(--gear-copper);
  color: #fff;
}

.btn-visit {
  background: var(--gear-copper);
  border: 1px solid var(--gear-copper);
  color: #fff;
}

.btn-visit:hover {
  background: var(--gear-copper-dark);
}

/* --- VIP天空骑士团 --- */
.knight-ranks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.rank-card {
  text-align: center;
  padding: 20px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fdf6e3 100%);
  border: 1px solid rgba(191, 128, 64, 0.2);
  transition: all 0.3s ease;
}

.rank-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px var(--shadow-gear);
}

.rank-card .rank-badge {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.rank-card h4 {
  font-size: 0.95rem;
  color: var(--gear-copper);
  margin-bottom: 6px;
}

.rank-card p {
  font-size: 0.8rem;
  color: #666;
}

/* --- 空中花园优惠模块 --- */
.garden-flowers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.flower-card {
  background: linear-gradient(135deg, #fff 0%, #f0fff0 100%);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid rgba(102, 187, 106, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.flower-card::before {
  content: '🌸';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 3rem;
  opacity: 0.15;
  transition: all 0.4s ease;
}

.flower-card:hover::before {
  opacity: 0.4;
  transform: scale(1.3) rotate(15deg);
}

.flower-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(102, 187, 106, 0.2);
}

.flower-card .promo-platform {
  font-size: 0.8rem;
  color: var(--island-green);
  font-weight: 700;
  margin-bottom: 6px;
}

.flower-card h4 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.flower-card p {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 12px;
}

.flower-card .promo-tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--sunset-purple);
  color: #fff;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* --- 编年史时间轴 --- */
.chronicle-timeline {
  position: relative;
  padding-left: 40px;
}

.chronicle-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gear-copper), var(--sky-blue), var(--island-green));
}

.timeline-event {
  position: relative;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  border: 1px solid rgba(191, 128, 64, 0.15);
}

.timeline-event::before {
  content: '⚙';
  position: absolute;
  left: -34px;
  top: 20px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--gear-copper);
}

.timeline-event .event-year {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--gear-copper);
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-event p {
  font-size: 0.92rem;
  color: #555;
}

/* --- 牌照模块 --- */
#license-archive-module {
  background: linear-gradient(135deg, #fdf6e3 0%, #fff8e7 100%);
  border: 2px solid var(--gear-copper-light);
}

.license-document {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.license-seal {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  background: radial-gradient(circle, #8b0000 0%, #5c0000 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  font-size: 2.5rem;
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3);
}

.license-number {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--gear-copper);
  margin-bottom: 16px;
}

.license-text {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.8;
}

/* --- 补给站模块 --- */
.supply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.supply-item {
  text-align: center;
  padding: 20px;
  background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
  border-radius: 12px;
  border: 1px solid rgba(191, 128, 64, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.supply-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow-gear);
  border-color: var(--gear-copper);
}

.supply-item .supply-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.supply-item h4 {
  font-size: 0.95rem;
  color: var(--gear-copper);
}

/* --- 负责任博弈 --- */
#responsible-gaming-stone {
  background: linear-gradient(135deg, #f5f0e8 0%, #ede8df 100%);
  border: 2px solid #c9b99a;
  text-align: center;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.responsible-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
}

.responsible-links {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.responsible-links a {
  padding: 6px 18px;
  border: 1px solid #999;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #666;
  transition: all 0.3s ease;
}

.responsible-links a:hover {
  border-color: var(--gear-copper);
  color: var(--gear-copper);
}

/* --- FAQ模块 --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 12px;
  border: 1px solid rgba(191, 128, 64, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--gear-copper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(191, 128, 64, 0.05);
}

.faq-question .faq-toggle {
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 20px 16px;
}

.faq-item.open .faq-toggle {
  transform: rotate(180deg);
}

/* --- 页脚 --- */
#sky-castle-footer {
  background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
  color: rgba(255,255,255,0.7);
  padding: 50px 20px 30px;
  margin-top: 40px;
  position: relative;
}

#sky-castle-footer::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(180deg, transparent, #2c2c2c);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-family: var(--font-title);
  color: var(--gear-copper-light);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--sky-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom .copyright {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}

.footer-bottom .compliance-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.partner-logos {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
  opacity: 0.5;
}

.partner-logos span {
  font-size: 0.8rem;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
}

/* --- 面包屑导航 --- */
.breadcrumb-trail {
  padding: 12px 0;
  font-size: 0.85rem;
  color: #888;
}

.breadcrumb-trail a {
  color: var(--gear-copper);
}

.breadcrumb-trail span {
  margin: 0 6px;
  color: #ccc;
}

/* --- 内页通用样式 --- */
.inner-page-hero {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  margin-top: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner-page-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inner-page-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

.inner-page-hero .hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.inner-page-hero .hero-text h1 {
  font-size: 2.4rem;
  color: #fff;
  text-shadow: 0 2px 15px rgba(0,0,0,0.5);
  margin-bottom: 10px;
}

.inner-page-hero .hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.inner-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.inner-content h2 {
  font-size: 1.6rem;
  margin: 30px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(191, 128, 64, 0.2);
}

.inner-content h3 {
  font-size: 1.3rem;
  margin: 24px 0 12px;
}

.inner-content p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}

.inner-content .content-image {
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* --- 评分表格 --- */
.rating-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
}

.rating-table th,
.rating-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(191, 128, 64, 0.15);
}

.rating-table th {
  background: linear-gradient(135deg, var(--gear-copper), var(--gear-copper-dark));
  color: #fff;
  font-family: var(--font-title);
  font-size: 0.9rem;
}

.rating-table td {
  font-size: 0.9rem;
  background: rgba(255,255,255,0.9);
}

.rating-table tr:hover td {
  background: rgba(191, 128, 64, 0.05);
}

/* --- 响应式设计 --- */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .hero-slogan {
    font-size: 1rem;
  }

  .floating-islands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .knight-ranks {
    grid-template-columns: repeat(3, 1fr);
  }

  .island-section-title h2 {
    font-size: 1.5rem;
  }

  .island-section-title h2::before,
  .island-section-title h2::after {
    display: none;
  }

  .floating-island {
    padding: 24px 16px;
    margin-bottom: 24px;
  }

  .inner-page-hero {
    height: 240px;
  }

  .inner-page-hero .hero-text h1 {
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .floating-islands-grid {
    grid-template-columns: 1fr;
  }

  .knight-ranks {
    grid-template-columns: repeat(2, 1fr);
  }

  .odds-star-map {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 干扰标签隐藏 --- */
.jammer-block {
  opacity: 0.01;
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: -9999px;
}

/* --- 动态时间戳 --- */
.live-timestamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--island-green);
  padding: 4px 12px;
  background: rgba(102, 187, 106, 0.1);
  border-radius: 20px;
  margin-bottom: 16px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--island-green);
  border-radius: 50%;
  animation: livePulse 1.5s ease infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- 滚动到顶部按钮 --- */
#scroll-to-sky {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gear-copper);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px var(--shadow-gear);
}

#scroll-to-sky.visible {
  opacity: 1;
  transform: translateY(0);
}

#scroll-to-sky:hover {
  background: var(--gear-copper-dark);
  transform: translateY(-2px);
}
