/* 共享样式 /shared/style.css */
:root {
  --color-gold: #FFD700;
  --color-blue: #8BDAFF;
  --color-pink: #FF69B4;
  --color-green: #90EE90;
  --color-dark: #2F3E46;
  --color-white: #FFFFFF;
  --font-family: 'Comic Sans MS', 'Chalkboard SE', 'Microsoft YaHei', sans-serif;
  --shadow-card: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.15);
  --border-radius: 20px;
}

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

body {
  font-family: var(--font-family);
  background: linear-gradient(135deg, #E0F7FA 0%, var(--color-blue) 100%);
  color: var(--color-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* 顶部导航栏 */
.nav-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid var(--color-pink);
}

.nav-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-pink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 1px 1px 0px var(--color-gold);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-btn {
  background: var(--color-white);
  color: var(--color-dark);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 15px;
  font-weight: bold;
  border: 3px solid var(--color-dark);
  box-shadow: 0 4px 0 var(--color-dark);
  transition: all 0.2s ease;
  display: inline-block;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--color-dark);
  background: var(--color-gold);
}

.nav-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--color-dark);
}

/* 主容器 */
.container {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  width: 100%;
}

/* 标题渐变文字 */
.gradient-title {
  font-size: 42px;
  text-align: center;
  background: linear-gradient(45deg, var(--color-pink), #FF1493, var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
  animation: titlePulse 3s infinite ease-in-out;
}

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

/* 卡片样式 */
.card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  border: 4px solid var(--color-dark);
  box-shadow: 8px 8px 0 var(--color-dark);
  padding: 25px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--color-dark);
}

/* 按钮样式 */
.btn-fun {
  background: var(--color-pink);
  color: var(--color-white);
  border: 4px solid var(--color-dark);
  padding: 12px 28px;
  font-size: 18px;
  font-weight: bold;
  border-radius: var(--border-radius);
  cursor: pointer;
  box-shadow: 0 6px 0 var(--color-dark);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.btn-fun:hover {
  background: var(--color-gold);
  color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--color-dark);
}

.btn-fun:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--color-dark);
}

/* 状态条 */
.bar-container {
  background: #E0E0E0;
  border: 3px solid var(--color-dark);
  border-radius: 10px;
  height: 24px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  width: 100%;
  transition: width 0.3s ease;
}

.bar-text {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  line-height: 18px;
  color: var(--color-dark);
  text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
}

/* 底部页脚 */
footer {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-top: 3px dashed var(--color-dark);
  font-size: 14px;
  color: var(--color-dark);
  margin-top: auto;
}
