/**
 * 冰橙说衣首页样式 - 全新设计
 *
 * 设计风格：现代、清新、精致
 * 主色调：薄荷绿系列 + 亮色点缀
 * 创建日期：2026-02-11
 */

/* ==================== 全局变量 ==================== */
:root {
  /* 主色调 - 薄荷绿系列 */
  --primary-light: #E8F8F5;      /* 极浅薄荷绿 */
  --primary: #98DBC6;              /* 薄荷绿 */
  --primary-medium: #7CCCB6;       /* 中绿 */
  --primary-dark: #5FB8A8;         /* 深绿 */
  --primary-darker: #4A90E2;       /* 亮蓝（深色） */

  /* 亮色点缀 */
  --accent-orange: #FFB84D;        /* 橙黄 */
  --accent-red: #FF6B6B;           /* 珊瑚红 */
  --accent-blue: #4A90E2;          /* 亮蓝 */
  --accent-purple: #9B59B6;        /* 紫色 */

  /* 背景色 */
  --bg-gradient-start: #F0F9F7;
  --bg-gradient-end: #E8F8F5;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;

  /* 文字色 */
  --text-primary: #2C3E50;
  --text-secondary: #546E7A;
  --text-light: #7F8C8D;
  --text-white: #FFFFFF;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-primary: 0 4px 16px rgba(152, 219, 198, 0.3);
  --shadow-accent: 0 4px 16px rgba(255, 184, 77, 0.3);
}

/* ==================== 全局重置 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "微软雅黑", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==================== 背景装饰圆圈 ==================== */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* ==================== 顶部导航栏 ==================== */
.top-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(152, 219, 198, 0.2);
}

.nav-container {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.5px;
  -webkit-text-fill-color: initial;
  fill-color: initial;
}

/* 导航链接 */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-link i {
  font-size: 16px;
}

.nav-link:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: rgba(152, 219, 198, 0.3);
}

.nav-link.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(152, 219, 198, 0.3);
}

/* 已废弃样式 - 保留以便兼容 */
.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-dark);
  background: var(--primary-light);
}

.nav-links a.active {
  color: var(--text-white);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-primary);
}

.auth-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-login,
.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  text-decoration: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-primary);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-login:hover,
.btn-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(152, 219, 198, 0.4);
}

.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: transparent;
  color: var(--primary-dark);
  text-decoration: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-register:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.user-greeting {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 15px;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 15px;
}

.user-greeting i {
  font-size: 18px;
}

/* ==================== 英雄轮播区 ==================== */
.hero-carousel {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
}

.carousel-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
  height: 240px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.15) 100%);
  z-index: 1;
}

/* 轮播图不同背景 - 统一薄荷绿风格 */
.carousel-slide-2 {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent-blue) 100%);
}

.carousel-slide-2::after {
  background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, transparent 70%);
}

.carousel-slide-3 {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--primary) 100%);
}

.carousel-slide-3::after {
  background: radial-gradient(circle, rgba(255, 184, 77, 0.15) 0%, transparent 70%);
}

/* 装饰圆圈 */
.carousel-slide::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  z-index: 1;
}

.carousel-badge {
  display: none;
  animation: fadeInUp 0.6s ease;
}

/* 不同轮播图的徽章样式 */
.carousel-slide-2 .carousel-badge {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-blue);
}

.carousel-slide-3 .carousel-badge {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-orange);
}

.carousel-content {
  text-align: center;
  color: var(--text-primary);
  padding: 0 30px;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

.carousel-content h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  animation: fadeInUp 0.6s ease 0.1s both;
}

/* 不同轮播图的标题颜色 - 统一白色风格 */
.carousel-slide-2 .carousel-content h1,
.carousel-slide-3 .carousel-content h1 {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carousel-content p {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  animation: fadeInUp 0.6s ease 0.2s both;
  display: none;
}

/* 不同轮播图的描述文字颜色 */
.carousel-slide-2 .carousel-content p,
.carousel-slide-3 .carousel-content p {
  color: rgba(255, 255, 255, 0.95);
}

.carousel-features {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.carousel-features span {
  background: var(--bg-white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

/* 不同轮播图的标签样式 */
.carousel-slide-2 .carousel-features span,
.carousel-slide-3 .carousel-features span {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.carousel-features span:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.carousel-features i {
  color: var(--accent-orange);
}

.banner-btn {
  display: none;
  animation: fadeInUp 0.6s ease 0.4s both;
}

/* 不同轮播图的按钮样式 */
.carousel-slide-2 .banner-btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-blue);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-slide-2 .banner-btn:hover {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.35);
}

.carousel-slide-3 .banner-btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-orange);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-slide-3 .banner-btn:hover {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 184, 77, 0.35);
}

.banner-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(152, 219, 198, 0.4);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dots .dot.active {
  background: var(--text-white);
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-dots .dot:hover {
  background: var(--accent-orange);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: var(--primary-dark);
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 3;
}

.carousel-btn:hover {
  background: var(--text-white);
  color: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.carousel-prev {
  left: 40px;
}

.carousel-next {
  right: 40px;
}

/* ==================== 核心功能区 ==================== */
.features-section {
  padding: 15px 0 30px;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.features-container {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* 模块分组容器 - 横向排布 */
.modules-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 模块分组 */
.module-group {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(152, 219, 198, 0.15);
  position: relative;
}

/* 第一个模块组左边距调整，为小球留出空间 */
.module-group:first-child {
  margin-left: 45px;
}

.module-group:last-child {
  margin-bottom: 0;
}

.module-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--primary-light);
}

.module-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.module-title i {
  color: var(--primary);
  font-size: 14px;
}

/* 工具网格 - 小卡片 */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* 工具卡片 - 小而紧凑 */
.tool-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(152, 219, 198, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tool-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tool-card.tool-online {
  cursor: pointer;
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(152, 219, 198, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.tool-card.tool-online::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.tool-card.tool-online:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(152, 219, 198, 0.2);
  border-color: var(--primary-dark);
}

.tool-card.tool-coming {
  cursor: not-allowed;
  background: linear-gradient(135deg, rgba(127, 140, 141, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-color: rgba(127, 140, 141, 0.2);
}

.tool-card.tool-coming::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #BDC3C7 0%, #95A5A6 100%);
}

.tool-card.tool-coming:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(127, 140, 141, 0.15);
  border-color: rgba(127, 140, 141, 0.3);
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.tool-online .tool-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 2px 6px rgba(152, 219, 198, 0.3);
}

.tool-coming .tool-icon {
  background: linear-gradient(135deg, #BDC3C7 0%, #95A5A6 100%);
  color: white;
  box-shadow: 0 2px 6px rgba(127, 140, 141, 0.3);
}

.tool-card.tool-online:hover .tool-icon {
  transform: scale(1.1);
}

.tool-card.tool-coming:hover .tool-icon {
  transform: scale(1.05);
}

.tool-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.tool-desc {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.4;
  margin-bottom: 8px;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

/* 工具状态 */
.tool-status {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

.status-badge.online {
  background: rgba(152, 219, 198, 0.15);
  color: var(--primary-dark);
  border: 1px solid rgba(152, 219, 198, 0.25);
}

.status-badge.coming {
  background: rgba(127, 140, 141, 0.15);
  color: #7F8C8D;
  border: 1px solid rgba(127, 140, 141, 0.25);
}

/* 删除按钮样式 - 不再使用 */
.tool-btn {
  display: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .modules-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-section {
    padding: 12px 0 20px;
  }

  .modules-wrapper {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .module-group {
    padding: 12px;
  }

  .module-header {
    margin-bottom: 10px;
  }

  .module-title {
    font-size: 13px;
  }

  .module-title i {
    font-size: 13px;
  }

  .tool-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .tool-card {
    padding: 10px;
  }

  .tool-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
    margin-bottom: 6px;
  }

  .tool-title {
    font-size: 12px;
    margin-bottom: 3px;
  }

  .tool-desc {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .status-badge {
    padding: 2px 6px;
    font-size: 9px;
  }
}

/* 已废弃样式 - 保留以便兼容 */
.tool-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.tool-tag {
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 15px;
  font-size: 13px;
  font-weight: 600;
}

.tool-price {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-red) 100%);
  color: var(--text-white);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-accent);
  z-index: 2;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: var(--shadow-accent);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 184, 77, 0.5);
  }
}

/* ==================== 主内容区 ==================== */
.main-content {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 60px;
  display: flex;
  justify-content: center;
}

/* ==================== 公告栏 ==================== */
.notice-board {
  display: none; /* 隐藏原有公告栏 */
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-light);
}

.header-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-red) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 20px;
  box-shadow: var(--shadow-accent);
}

.notice-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.notice-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--primary-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-item:hover {
  padding-left: 10px;
  background: var(--primary-light);
}

.notice-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.notice-date {
  font-size: 13px;
  color: var(--text-light);
}

/* ==================== 快捷入口 ==================== */
.quick-links {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(152, 219, 198, 0.2);
}

.links-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-light);
}

.links-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 25px 20px;
  background: var(--primary-light);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.quick-link-card:hover {
  background: var(--bg-white);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.link-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 26px;
  box-shadow: var(--shadow-sm);
}

.quick-link-card span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==================== 弹窗样式 ==================== */
.activity-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
}

.activity-modal.show {
  display: block;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  border-radius: 24px;
  padding: 0;
  box-shadow: var(--shadow-lg);
  z-index: 2001;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.4s ease;
  border: 1px solid rgba(152, 219, 198, 0.3);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  border: none;
  color: var(--primary-dark);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--accent-red);
  color: var(--text-white);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  padding: 40px 40px 20px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-white) 100%);
}

.modal-title-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-red) 100%);
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--text-white);
  box-shadow: var(--shadow-accent);
}

.modal-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 16px;
  color: var(--text-light);
}

.modal-body {
  padding: 30px 40px;
  min-height: 200px;
}

.modal-footer {
  padding: 20px 40px 30px;
  text-align: center;
  border-top: 2px solid var(--primary-light);
}

.modal-btn-close {
  padding: 12px 30px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 2px solid var(--primary);
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn-close:hover {
  background: var(--primary);
  color: var(--text-white);
}

/* ==================== 活动弹窗内容样式 ==================== */
.activity-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.activity-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.activity-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  min-height: 60px;
}

.activity-actions {
  margin-top: 20px;
  text-align: center;
}

.activity-btn {
  padding: 12px 35px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.activity-btn.primary {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-red) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(255, 184, 77, 0.3);
}

.activity-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 184, 77, 0.4);
}

.activity-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-red) 100%);
  color: var(--text-white);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 15px;
}

.activity-badge-hot {
  background: linear-gradient(135deg, var(--accent-red) 0%, #ff4757 100%);
  animation: pulse 2s infinite;
}

.activity-badge-invite {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ==================== 模块工具弹窗 ==================== */
.module-tools-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.module-tools-modal.active {
  display: flex;
}

.module-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
}

.module-modal-content {
  position: relative;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 0;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 2001;
  border: 1px solid rgba(152, 219, 198, 0.3);
}

.module-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  border: none;
  color: var(--primary-dark);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  z-index: 10;
}

.module-modal-close:hover {
  background: var(--accent-red);
  color: var(--text-white);
  transform: rotate(90deg);
}

.module-modal-header {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.module-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  font-size: 36px;
}

.module-modal-header h2 {
  color: var(--text-white);
  font-size: 24px;
  margin: 0;
}

.module-modal-body {
  padding: 30px;
}

.module-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.tools-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}

.module-empty-tip {
  text-align: center;
  padding: 40px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-text {
  color: var(--text-light);
  font-size: 14px;
}

/* 模块工具卡片 */
.module-tool-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.module-tool-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.module-tool-card.completed {
  background: linear-gradient(135deg, rgba(152, 219, 198, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.module-tool-card.developing {
  background: rgba(127, 140, 141, 0.05);
  cursor: not-allowed;
}

.module-tool-card-icon {
  font-size: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary-light);
}

.module-tool-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.module-tool-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.module-tool-card-desc {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}

.module-tool-card-btn {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
}

.module-tool-card-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(152, 219, 198, 0.4);
}

.module-tool-card.developing .module-tool-card-btn {
  background: #BDC3C7;
  cursor: not-allowed;
}

/* ==================== 公告列表弹窗 ==================== */
.notice-list-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notice-list-modal .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.notice-list-content {
  position: relative;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 0;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 2001;
  border: 1px solid rgba(152, 219, 198, 0.3);
}

.notice-list-content .modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  border: none;
  color: var(--primary-dark);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  z-index: 10;
}

.notice-list-content .modal-close:hover {
  background: var(--accent-red);
  color: var(--text-white);
  transform: rotate(90deg);
}

.notice-list-header {
  text-align: center;
  padding: 30px 30px 20px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-white) 100%);
}

.notice-list-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 26px;
}

.notice-list-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.notice-list-subtitle {
  font-size: 14px;
  color: var(--text-light);
}

.notice-list-body {
  padding: 20px 30px 30px;
}

.notice-list-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(152, 219, 198, 0.15);
}

.notice-list-item:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.notice-list-item:last-child {
  margin-bottom: 0;
}

.notice-list-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.notice-list-item-content {
  flex: 1;
  min-width: 0;
}

.notice-list-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-list-item-subtitle {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-list-item-arrow {
  color: var(--primary);
  font-size: 14px;
  flex-shrink: 0;
}

.notice-list-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.notice-list-empty i {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--primary);
  opacity: 0.5;
}

/* ==================== 公告详情弹窗 ==================== */
.notice-detail-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.notice-detail-modal.show {
  display: flex;
}

.notice-detail-modal .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
}

.notice-detail-content {
  position: relative;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 0;
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 2001;
  border: 1px solid rgba(152, 219, 198, 0.3);
}

.notice-detail-content .modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  border: none;
  color: var(--primary-dark);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  z-index: 10;
}

.notice-detail-content .modal-close:hover {
  background: var(--accent-red);
  color: var(--text-white);
  transform: rotate(90deg);
}

.notice-detail-header {
  text-align: center;
  padding: 35px 40px 25px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-white) 100%);
}

.notice-detail-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 26px;
}

.notice-detail-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.notice-detail-subtitle {
  font-size: 14px;
  color: var(--text-light);
}

.notice-detail-body {
  padding: 30px 40px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ==================== 返回顶部按钮 ==================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  border: none;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
  .tool-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .carousel-content h1 {
    font-size: 40px;
  }
}

@media (max-width: 992px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-content {
    grid-template-columns: 1fr;
  }

  .links-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-links {
    display: none;
  }

  .logo-text {
    font-size: 18px;
  }

  .carousel-container {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .carousel-container {
    height: 350px;
  }

  .carousel-content {
    padding: 0 20px;
    width: 95%;
  }

  .carousel-content h1 {
    font-size: 28px;
  }

  .carousel-content p {
    font-size: 15px;
  }

  .carousel-features {
    gap: 8px;
  }

  .carousel-features span {
    font-size: 12px;
    padding: 8px 14px;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .carousel-prev {
    left: 15px;
  }

  .carousel-next {
    right: 15px;
  }

  .features-section {
    margin-top: -30px;
    padding: 40px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .modal-content {
    max-width: 95%;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .auth-buttons {
    gap: 8px;
  }

  .btn-login,
  .btn-logout,
  .btn-register {
    padding: 8px 16px;
    font-size: 13px;
  }

  .logo-img {
    width: 38px;
    height: 38px;
  }

  .logo-text {
    font-size: 15px;
  }

  .logo-subtitle {
    font-size: 11px;
  }
}
