* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  background: #F7F9FC;
  color: #2C3E50;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.nav-bar {
  position: fixed;
  width: 100%;
  z-index: 50;
  padding: 16px;
  pointer-events: none;
}

.nav-content {
  max-width: 1280px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid #f3f4f6;
  border-radius: 24px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
}

.logo-icon {
  background: #FF6B6B;
  padding: 8px;
  border-radius: 12px;
  color: white;
  transform: rotate(-6deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 24px;
  font-weight: 900;
  color: #2C3E50;
  letter-spacing: -0.5px;
}

.nav-links {
  display: none;
  gap: 32px;
}

.nav-links a {
  font-weight: 700;
  color: #6b7280;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #FF6B6B;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 4px;
  background: #FFD93D;
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

.mobile-menu-btn {
  display: block;
  padding: 8px;
  color: #2C3E50;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 96px;
  left: 16px;
  right: 16px;
  background: white;
  border-radius: 24px;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  border-bottom: 4px solid #e5e7eb;
  pointer-events: auto;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  color: #6b7280;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
}

.mobile-menu a:last-of-type {
  border-bottom: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  
  .nav-cta {
    display: block;
  }
  
  .mobile-menu-btn {
    display: none;
  }
}

/* 按钮 */
.btn {
  position: relative;
  border-radius: 16px;
  border: none;
  border-bottom: 6px solid;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.btn:active {
  border-bottom-width: 0;
  transform: translateY(6px);
}

.btn-pink {
  background: #FF6B6B;
  border-color: #c92a2a;
  color: white;
}

.btn-pink:hover {
  background: #FF8787;
}

.btn-blue {
  background: #4D96FF;
  border-color: #1864ab;
  color: white;
}

.btn-blue:hover {
  background: #6FA8FF;
}

.btn-yellow {
  background: #FFD93D;
  border-color: #d97706;
  color: #2C3E50;
}

.btn-yellow:hover {
  background: #FFE066;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-md {
  padding: 12px 24px;
  font-size: 16px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 20px;
}

/* Hero 区域 */
.hero {
  padding-top: 128px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(#4D96FF 1px, transparent 1px), radial-gradient(#FF6B6B 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.1;
  z-index: -1;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-text {
  text-align: center;
  z-index: 10;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  border: 2px solid white;
  padding: 4px 16px;
  border-radius: 20px;
  color: #6BCB77;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  color: #2C3E50;
  line-height: 1.2;
  margin-bottom: 32px;
}

.gradient-text {
  background: linear-gradient(to right, #FF6B6B, #FFD93D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-bg-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: linear-gradient(to top right, #4D96FF, #FF6B6B);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.6; }
}

.hero-card {
  position: relative;
  width: 550px;
  height: 980px;
  background: linear-gradient(to bottom, #e5e7eb, #d1d5db);
  border-radius: 50px;
  box-shadow: 0 6px 0 0 rgba(0,0,0,0.2);
  transform: rotate(-3deg);
  border: 4px solid white;
  overflow: hidden;
  transition: transform 0.5s;
  cursor: pointer;
}

.hero-card:hover {
  transform: rotate(0deg);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.hero-card:hover img {
  transform: scale(1.1);
}

.hero-card-info {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.info-icon {
  background: #FF6B6B;
  border-radius: 50%;
  padding: 8px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-title {
  font-weight: 700;
  color: #2C3E50;
}

.info-subtitle {
  font-size: 12px;
  color: #6b7280;
}

.float-icon {
  position: absolute;
  background: white;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 8px 8px 0 0 rgba(0,0,0,0.1);
  animation: bounce 2s infinite;
}

.float-icon-1 {
  top: 40px;
  right: 40px;
  transform: rotate(12deg);
  animation-delay: 0.075s;
}

.float-icon-2 {
  bottom: 80px;
  left: 0;
  transform: rotate(-12deg);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-10px) rotate(12deg); }
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-text {
    text-align: left;
  }
  
  .hero-title {
    font-size: 72px;
  }
  
  .hero-desc {
    margin-left: 0;
    margin-right: 0;
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: flex-start;
  }
}

/* 统计数据 */
.stats {
  background: white;
  border-top: 4px solid #f3f4f6;
  border-bottom: 4px solid #f3f4f6;
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-size: 40px;
  font-weight: 900;
}

.stat-label {
  font-weight: 700;
  color: #9ca3af;
  font-size: 14px;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .stat-number {
    font-size: 48px;
  }
}

/* 新闻区域 */
.news-section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.section-title {
  font-size: 40px;
  font-weight: 900;
  color: #2C3E50;
  margin-bottom: 12px;
}

.section-subtitle {
  color: #6b7280;
  font-weight: 500;
}

.news-grid {
  display: grid;
  gap: 32px;
}

.news-card {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 8px 8px 0 0 rgba(0,0,0,0.1);
  border: 2px solid #f9fafb;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #2C3E50;
}

.news-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.news-title {
  font-size: 20px;
  font-weight: 700;
  color: #2C3E50;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-summary {
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 24px;
  flex-grow: 1;
  line-height: 1.6;
  font-size: 14px;
}

.news-link {
  color: #FF6B6B;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s;
}

.news-link:hover {
  color: #2C3E50;
}

.news-link span {
  transition: transform 0.3s;
}

.news-link:hover span {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .section-title {
    font-size: 48px;
  }
  
  .news-title {
    font-size: 24px;
  }
  
  .news-summary {
    font-size: 16px;
  }
}

/* 角色区域 */
.characters-section {
  padding: 80px 0;
  background: #2C3E50;
  color: white;
  position: relative;
  overflow: hidden;
}

.characters-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #ffffff 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.1;
}

.characters-grid {
  display: grid;
  gap: 32px;
  padding-top: 40px;
  position: relative;
  z-index: 10;
}

.character-card {
  position: relative;
  margin-top: 40px;
}

.character-bg {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  transform: rotate(3deg);
  opacity: 0.8;
  transition: transform 0.3s;
}

.character-card:hover .character-bg {
  transform: rotate(6deg);
}

.character-content {
  position: relative;
  background: white;
  color: #2C3E50;
  border-radius: 40px;
  padding: 24px;
  padding-top: 96px;
  border: 4px solid white;
}

.character-avatar {
  position: absolute;
  top: -64px;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 8px solid white;
  background: #e5e7eb;
  overflow: hidden;
  transition: transform 0.3s;
}

.character-card:hover .character-avatar {
  transform: translateX(-50%) scale(1.1);
}

.character-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-info {
  text-align: center;
}

.character-name {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}

.character-role {
  display: inline-block;
  padding: 4px 12px;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 16px;
}

.character-desc {
  color: #6b7280;
  font-weight: 500;
  line-height: 1.6;
  font-size: 14px;
}

@media (min-width: 768px) {
  .characters-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .character-card {
    margin-top: 0;
  }
  
  .character-name {
    font-size: 28px;
  }
  
  .character-desc {
    font-size: 16px;
  }
}

/* 页脚 */
.footer {
  background: white;
  border-top: 4px solid #f3f4f6;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  grid-column: span 2;
}

.footer-desc {
  color: #6b7280;
  font-weight: 500;
  max-width: 400px;
  margin-bottom: 24px;
  line-height: 1.6;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: all 0.3s;
  text-decoration: none;
}

.social-icon:hover {
  background: #FF6B6B;
  color: white;
}

.footer-links h4 {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
  color: #2C3E50;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #6b7280;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #FF6B6B;
}

.footer-bottom {
  border-top: 2px solid #f3f4f6;
  padding-top: 32px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-desc {
    font-size: 16px;
  }
  
  .footer-links h4 {
    font-size: 18px;
  }
}

/* 聊天机器人 */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-window {
  display: none;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 4px solid #2C3E50;
  overflow: hidden;
  flex-direction: column;
  margin-bottom: 16px;
}

.chat-window.active {
  display: flex;
}

.chat-header {
  background: #6BCB77;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid #2C3E50;
}

.chat-header h3 {
  font-weight: 700;
  color: white;
  font-size: 18px;
}

.chat-avatar {
  background: white;
  padding: 4px;
  border-radius: 50%;
  border: 2px solid black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-close {
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: background 0.3s;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  display: flex;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.bot {
  justify-content: flex-start;
}

.message-bubble {
  max-width: 80%;
  padding: 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
}

.message-bubble.user {
  background: #4D96FF;
  color: white;
  border-bottom-right-radius: 4px;
}

.message-bubble.bot {
  background: white;
  color: #2C3E50;
  border: 2px solid #f3f4f6;
  border-bottom-left-radius: 4px;
}

.chat-loading {
  display: flex;
  gap: 4px;
  padding: 12px;
  background: white;
  border: 2px solid #f3f4f6;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  max-width: 80px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) {
  background: #FF6B6B;
  animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
  background: #4D96FF;
  animation-delay: -0.16s;
}

.loading-dot:nth-child(3) {
  background: #FFD93D;
}

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.chat-input-area {
  padding: 12px;
  background: white;
  border-top: 2px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  background: #f3f4f6;
  color: #2C3E50;
  border-radius: 12px;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-weight: 600;
  font-size: 14px;
}

.chat-input-area input:focus {
  outline: 2px solid #6BCB77;
}

.chat-send {
  padding: 8px;
  background: #2C3E50;
  color: white;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send:hover {
  background: #1f2937;
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-toggle {
  padding: 16px;
  border-radius: 50%;
  box-shadow: 0 6px 0 0 rgba(0,0,0,0.2);
  background: #FFD93D;
  border: 2px solid #d97706;
  color: #2C3E50;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-toggle:hover {
  box-shadow: 0 3px 0 0 rgba(0,0,0,0.2);
  transform: translateY(3px);
}

@media (min-width: 768px) {
  .chat-window {
    width: 400px;
  }
}

/* 工具类 */
.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: block;
  }
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #FF6B6B;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff5252;
}
