/* 首页独立样式文件 - 从 Index_index.html 提取的内联样式 */
/* 创建日期: 2026-06-08 | 用途: 首页专用样式，与现有样式无冲突 */

/* ===== 设计变量系统 ===== */
:root {
  /* 品牌色 */
  --brand-primary: #fe6601;
  --brand-primary-light: #ff9547;
  --brand-primary-bg: #fff5f0;
  --brand-primary-bg-hover: #ffd0b0;

  /* 文字色 */
  --text-primary: #1a1a1a;
  --text-secondary: #333333;
  --text-muted: #bbbbbb;
  --text-white: #ffffff;

  /* 背景色 */
  --bg-white: #ffffff;
  --bg-light: #f3f2f6;
  --bg-border: #f0f0f0;

  /* 卡片色 */
  --card-orange-bg: linear-gradient(135deg, #fff8f0 0%, #ffefe5 100%);
  --card-orange-icon: #f59e0b;
  --card-orange-text: #d97706;
  --card-green-bg: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  --card-green-icon: #22c55e;
  --card-green-text: #15803d;
  --card-blue-bg: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  --card-blue-icon: #3b82f6;
  --card-blue-text: #1d4ed8;
  --card-pink-bg: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  --card-pink-icon: #ec4899;
  --card-pink-text: #db2777;
  --card-purple-bg: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  --card-purple-icon: #a855f7;
  --card-purple-text: #7e22ce;

  /* 字体 */
  --font-family-base: "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-size-xs: 13px;
  --font-size-sm: 14px;
  --font-size-base: 15px;
  --font-size-md: 19px;
  --font-size-lg: 22px;
  --font-size-xl: 28px;

  /* 间距 */
  --spacing-unit: 8px;

  /* 圆角 */
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* 阴影 */
  --shadow-card: 0 5px 20px rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);

  /* 过渡 */
  --transition-fast: 0.25s ease;
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* 容器宽度 */
  --container-width: 1200px;

  /* 响应式断点 */
  --breakpoint-desktop: 1200px;
  --breakpoint-tablet: 1199px;
  --breakpoint-mobile: 768px;
}

/*
 * 响应式断点使用说明:
 * 
 * 大屏桌面端: > 1200px (默认样式)
 * 平板端:     max-width: 1199px
 * 移动端:     max-width: 768px
 * 
 * 示例:
 * @media screen and (max-width: 1199px) { 平板端样式 }
 * @media screen and (max-width: 768px)  { 移动端样式 }
 */

/* ===== 资讯中心与快速导航模块 ===== */
.news-quicknav-section {
  padding: 20px 0;
  background: var(--bg-white);
}

.w1200 {
  width: var(--container-width) !important;
  max-width: var(--container-width) !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.news-card {
  background: transparent;
  border-radius: 0;
  padding: 24px 32px 28px;
  box-shadow: none;
  display: flex !important;
  gap: 0;
  height: auto !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.news-main {
  width: 880px !important;
  flex: none !important;
  display: flex !important;
  flex-direction: column !important;
  border-right: 1px solid var(--bg-border);
  padding-right: 24px;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.news-tab-bar {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-end !important;
  padding-bottom: 8px;
  margin-bottom: 6px;
  flex-shrink: 0;
  white-space: nowrap !important;
}

.news-tab-left {
  display: flex !important;
  align-items: flex-end !important;
  gap: 28px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.news-main-title {
  font-family: var(--font-family-base);
  font-size: var(--font-size-xl) !important;
  font-weight: bold !important;
  color: var(--text-primary);
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  margin-bottom: 4px !important;
  position: relative !important;
}

.news-main-title::after {
  content: "" !important;
  display: block !important;
  width: 40px !important;
  height: 4px !important;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-light)) !important;
  border-radius: 2px !important;
  margin-top: 10px !important;
}

.news-tabs {
  display: flex !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 28px !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
  align-items: baseline !important;
}

.news-tab-item {
  position: relative;
  cursor: pointer;
  padding: 2px 0;
  transition: all var(--transition-base);
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.news-tab-item .tab-text {
  font-family: var(--font-family-base);
  font-size: var(--font-size-md) !important;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-weight: 700;
  white-space: nowrap !important;
  display: inline-block !important;
  max-width: 120px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.news-tab-item:hover .tab-text {
  color: var(--brand-primary);
}

.news-tab-item.active .tab-text {
  font-weight: 800 !important;
  color: var(--brand-primary);
}

.news-tab-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  transform: none;
  width: 100%;
  height: 3px;
  background: var(--brand-primary);
  border-radius: 1.5px;
}

.news-more-link {
  font-size: 14px !important;
  color: var(--brand-primary) !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
  font-family: var(--font-family-base) !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  font-weight: 400 !important;
  padding-bottom: 0 !important;
  align-self: flex-end !important;
  margin-bottom: 2px !important;
}

.news-more-link:hover {
  color: var(--brand-primary-light) !important;
}

.news-more-link::after {
  content: "" !important;
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  border-top: 1px solid currentColor !important;
  border-right: 1px solid currentColor !important;
  transform: rotate(45deg) !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
}

.news-content {
  display: none !important;
  flex: 1 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.news-content.active {
  display: flex !important;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.news-list {
  display: flex !important;
  gap: 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.news-column {
  width: 418px !important;
  flex: none !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.news-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 0 !important;
  border-bottom: 1px dashed var(--bg-border);
  transition: all var(--transition-fast);
  flex-shrink: 0 !important;
  line-height: 1.5 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  height: 44px !important;
}

.news-column .news-item:last-child {
  border-bottom: none;
}

.news-date {
  width: 100px !important;
  min-width: 100px !important;
  height: 30px !important;
  line-height: 30px;
  text-align: center;
  background: linear-gradient(135deg, var(--brand-primary-bg) 0%, #ffe8dc 100%);
  border-radius: var(--radius-sm);
  font-family: var(--font-family-base);
  font-size: var(--font-size-xs);
  color: #e64a19;
  flex-shrink: 0 !important;
  font-weight: 700;
  padding: 0 12px;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  text-align: center !important;
  letter-spacing: 0.3px;
}

.news-item:hover .news-date {
  background: linear-gradient(135deg, var(--brand-primary-bg-hover) 0%, var(--brand-primary-bg-hover) 100%);
}

.news-title {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base) !important;
  color: var(--text-secondary);
  text-decoration: none;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  transition: color var(--transition-fast);
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 300px !important;
  margin-right: 12px !important;
  display: block !important;
  box-sizing: border-box !important;
  font-weight: 500;
}

.news-item:hover .news-title {
  color: var(--brand-primary);
}

.news-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--font-family-base);
}

.news-sidebar {
  width: 272px !important;
  flex: none !important;
  display: flex !important;
  flex-direction: column !important;
  padding-left: 16px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  padding-top: 0 !important;
}

.sidebar-title {
  font-family: var(--font-family-base);
  font-size: var(--font-size-lg) !important;
  font-weight: 700 !important;
  color: #222222;
  margin-bottom: 0 !important;
  padding-left: 0;
  white-space: nowrap !important;
  letter-spacing: 0.5px;
  line-height: 1.4 !important;
  flex-shrink: 0 !important;
  padding-top: 12px !important;
}

.sidebar-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  flex: 1 !important;
  box-sizing: border-box !important;
  padding-top: 14px !important;
}

.sidebar-card {
  display: flex !important;
  align-items: center !important;
  padding: 15px 16px !important;
  border-radius: var(--radius-md) !important;
  text-decoration: none !important;
  transition: all var(--transition-base) !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 54px !important;
  flex-shrink: 0 !important;
}

.sidebar-card::before {
  content: "" !important;
  position: absolute !important;
  left: 0;
  top: 0;
  width: 3px !important;
  height: 100%;
  background: currentColor;
  opacity: 0.3;
  border-radius: 0 3px 3px 0;
  transition: all 0.3s ease;
}

.sidebar-card:hover::before {
  opacity: 1;
  width: 4px;
}

.sidebar-card:hover {
  transform: translateX(6px) !important;
  box-shadow: var(--shadow-card) !important;
}

.sidebar-icon {
  font-size: 22px !important;
  margin-right: 12px !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s ease;
}

.sidebar-card:hover .sidebar-icon {
  transform: scale(1.1) rotate(-3deg);
}

.sidebar-text {
  font-family: var(--font-family-base);
  font-size: 14px !important;
  color: var(--text-secondary);
  flex: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-weight: 600 !important;
}

.sidebar-arrow {
  font-size: 15px !important;
  color: #cccccc;
  flex-shrink: 0 !important;
  transition: all 0.3s ease;
}

.sidebar-card:hover .sidebar-arrow {
  color: var(--brand-primary);
  transform: translateX(2px);
}

.card-orange {
  background: var(--card-orange-bg);
}
.card-orange .sidebar-icon {
  color: var(--card-orange-icon);
}
.card-orange::before {
  color: var(--card-orange-icon);
}
.card-orange .sidebar-text {
  color: var(--card-orange-text) !important;
}

.card-green {
  background: var(--card-green-bg);
}
.card-green .sidebar-icon {
  color: var(--card-green-icon);
}
.card-green::before {
  color: var(--card-green-icon);
}
.card-green .sidebar-text {
  color: var(--card-green-text) !important;
}

.card-blue {
  background: var(--card-blue-bg);
}
.card-blue .sidebar-icon {
  color: var(--card-blue-icon);
}
.card-blue::before {
  color: var(--card-blue-icon);
}
.card-blue .sidebar-text {
  color: var(--card-blue-text) !important;
}

.card-pink {
  background: var(--card-pink-bg);
}
.card-pink .sidebar-icon {
  color: var(--card-pink-icon);
}
.card-pink::before {
  color: var(--card-pink-icon);
}
.card-pink .sidebar-text {
  color: var(--card-pink-text) !important;
}

.card-purple {
  background: var(--card-purple-bg);
}
.card-purple .sidebar-icon {
  color: var(--card-purple-icon);
}
.card-purple::before {
  color: var(--card-purple-icon);
}
.card-purple .sidebar-text {
  color: var(--card-purple-text) !important;
}

.sidebar-card {
  overflow: visible !important;
  z-index: 20;
}

.sidebar-card .qrcode-panel {
  position: absolute !important;
  right: 0;
  top: 100%;
  margin-top: 10px;
  width: 240px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  padding: 24px;
  z-index: 9999 !important;
  display: none;
  text-align: center;
  border: 1px solid rgba(168, 85, 247, 0.1);
}

.sidebar-card .qrcode-panel::before {
  content: "";
  position: absolute;
  right: 24px;
  top: -10px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #ffffff;
  filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, 0.06));
}

.sidebar-card .qrcode-wrap {
  width: 192px;
  height: 192px;
  margin: 0 auto 16px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  padding: 8px;
  box-sizing: border-box;
  border: 2px solid rgba(168, 85, 247, 0.15);
}

.sidebar-card .qrcode-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
}

.sidebar-card .qrcode-desc {
  font-size: 15px;
  color: var(--card-purple-text);
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sidebar-card:hover .qrcode-panel {
  display: block !important;
  animation: fadeInUp 0.25s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 好课推荐模块 ===== */
/* 注意: 课程卡片样式已在 home.css 中定义，此处仅定义模块容器样式 */

.course-recommend-section {
  padding: 60px 0;
  background: var(--bg-light);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-title {
  font-size: var(--font-size-xl);
  font-weight: bold;
  color: var(--text-primary);
  margin: 0;
}

.view-more {
  color: var(--brand-primary);
  text-decoration: none;
  font-size: 14px;
}

.view-more:hover {
  color: var(--brand-primary-light);
}

/* ===== 测试工具模块 ===== */
.test-tools-section {
  padding: 80px 0 100px;
  background: var(--bg-white);
}

.tools-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tools-carousel-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.tools-grid {
  display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-item {
  flex: 0 0 calc((100% - 30px) / 2);
  min-width: 0;
}

.tools-carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  background: #fafafa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #666;
  padding: 0;
  outline: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.tools-carousel-btn:hover:not(:disabled) {
  background: #fe6601;
  border-color: #fe6601;
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(254,102,1,0.25);
}

.tools-carousel-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.tools-carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #f5f5f5;
  border-color: #eee;
  color: #bbb;
  transform: none;
  box-shadow: none;
}

.tools-carousel-btn svg {
  display: block;
}

.tool-card {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  z-index: 1;
  transition: transform 0.5s ease;
}

.tool-card:hover .card-bg {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  z-index: 2;
  pointer-events: none;
}

.card-text {
  position: absolute;
  bottom: 35px;
  left: 35px;
  z-index: 3;
}

.card-text h3 {
  font-size: 28px !important;
  font-weight: bold;
  color: var(--text-white) !important;
  margin-bottom: 8px;
}

.card-text p {
  font-size: 16px !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.card-icon {
  position: absolute;
  bottom: 35px;
  right: 35px;
  z-index: 3;
  color: var(--text-white);
  font-size: 28px !important;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* ===== 响应式 ===== */
@media screen and (max-width: 1199px) {
  .news-card {
    flex-direction: column !important;
    height: auto !important;
    padding: 24px !important;
  }

  .news-main,
  .news-sidebar {
    width: 100% !important;
    flex: none !important;
    border-right: none !important;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 20px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .news-sidebar {
    padding-top: 20px !important;
    padding-left: 0 !important;
  }

  .news-list {
    flex-direction: column !important;
    gap: 0 !important;
    padding-right: 0 !important;
  }

  .news-column {
    width: 100% !important;
  }

  .sidebar-list {
    padding-top: 0 !important;
  }
}

@media screen and (max-width: 768px) {
  .news-quicknav-section {
    padding: 40px 0;
  }

  .news-card {
    padding: 16px !important;
  }

  .news-tabs {
    gap: 18px !important;
  }

  .news-tab-item .tab-text {
    font-size: 15px !important;
    max-width: 80px !important;
  }

  .news-item {
    padding: 9px 0 !important;
    height: auto !important;
  }

  .news-title {
    font-size: 13px !important;
    max-width: 180px !important;
  }

  .news-date {
    font-size: 11px !important;
    width: 85px !important;
    min-width: 85px !important;
    height: 26px !important;
    line-height: 26px !important;
    padding: 0 10px !important;
  }

  .sidebar-card {
    padding: 12px 13px !important;
    height: auto !important;
    flex-shrink: 1 !important;
  }

  .sidebar-icon {
    font-size: 17px !important;
    margin-right: 9px !important;
  }

  .sidebar-text {
    font-size: 12px !important;
  }

  .sidebar-list {
    padding-top: 0 !important;
    gap: 11px !important;
  }

  .sidebar-title {
    font-size: 16px !important;
    height: auto !important;
  }

  .test-tools-section {
    padding: 60px 0;
  }

  .tools-carousel-wrapper {
    gap: 10px;
  }

  .tools-carousel-btn {
    width: 36px;
    height: 36px;
  }

  .tool-item {
    flex: 0 0 100%;
  }

  .card-text {
    bottom: 25px;
    left: 25px;
  }

  .card-text h3 {
    font-size: 24px !important;
  }

  .card-text p {
    font-size: 14px !important;
  }

  .card-icon {
    bottom: 25px;
    right: 25px;
    font-size: 24px !important;
  }
}

/* ===== 学员专属中心悬浮入口 ===== */
.student-portal-wrapper {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  /* 关键：增加 hover 连接区域，防止鼠标移动时菜单消失 */
  padding-right: 100px;
  margin-right: -100px;
}

/* 触发按钮 */
.student-portal-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #fe6601 0%, #ff9547 50%, #ffb366 100%);
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(254, 102, 1, 0.35), 0 4px 12px rgba(254, 102, 1, 0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

/* 脉冲动画背景 */
.student-portal-trigger::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  z-index: 1;
}

/* 外圈光环动画 */
.student-portal-trigger::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border: 2px solid rgba(254, 102, 1, 0.4);
  border-radius: 50%;
  animation: ring-pulse 2.5s ease-in-out infinite;
  z-index: 0;
}

/* 脉冲动画 */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.6;
  }
}

/* 光环动画 */
@keyframes ring-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* hover 效果 */
.student-portal-wrapper:hover .student-portal-trigger {
  transform: scale(1.15);
  box-shadow: 0 12px 35px rgba(254, 102, 1, 0.5), 0 6px 18px rgba(254, 102, 1, 0.3);
}

.student-portal-wrapper:hover .student-portal-trigger::before {
  animation: pulse-fast 1s ease-in-out infinite;
}

.student-portal-wrapper:hover .student-portal-trigger::after {
  animation: ring-pulse-fast 1.2s ease-in-out infinite;
  border-color: rgba(254, 102, 1, 0.6);
}

/* hover 加速动画 */
@keyframes pulse-fast {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

@keyframes ring-pulse-fast {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* 图标样式 */
.student-portal-icon {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}

.student-portal-wrapper:hover .student-portal-icon {
  transform: rotate(10deg) scale(1.1);
}

/* 文字样式 */
.student-portal-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-family-base);
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.student-portal-wrapper:hover .student-portal-text {
  font-size: 13px;
}

/* ===== 菜单列表（整体卡片样式） ===== */
.student-portal-menu {
  position: absolute;
  right: 90px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease 0.2s;
  pointer-events: none;
  /* 整体卡片容器 */
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(254, 102, 1, 0.08);
  border: 1px solid rgba(254, 102, 1, 0.15);
  padding: 8px;
  min-width: 200px;
  overflow: hidden;
}

/* 展开状态 */
.student-portal-wrapper:hover .student-portal-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s ease 0s;
}

/* 菜单标题 */
.student-portal-menu::before {
  content: "学员服务";
  display: block;
  padding: 10px 16px 8px;
  font-family: var(--font-family-base);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-primary);
  border-bottom: 1px solid rgba(254, 102, 1, 0.1);
  margin-bottom: 4px;
}

/* 菜单项 */
.student-portal-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(15px);
  margin: 2px 0;
}

/* 菜单项逐个展开动画 */
.student-portal-wrapper:hover .student-portal-menu-item {
  opacity: 1;
  transform: translateX(0);
}

.student-portal-wrapper:hover .student-portal-menu-item:nth-child(1) {
  transition-delay: 0.08s;
}

.student-portal-wrapper:hover .student-portal-menu-item:nth-child(2) {
  transition-delay: 0.12s;
}

.student-portal-wrapper:hover .student-portal-menu-item:nth-child(3) {
  transition-delay: 0.16s;
}

.student-portal-wrapper:hover .student-portal-menu-item:nth-child(4) {
  transition-delay: 0.20s;
}

.student-portal-wrapper:hover .student-portal-menu-item:nth-child(5) {
  transition-delay: 0.24s;
}

/* 菜单项 hover */
.student-portal-menu-item:hover {
  background: linear-gradient(135deg, #fff8f0 0%, #ffefe5 100%);
  transform: translateX(-3px);
}

/* 菜单项图标 */
.student-portal-menu-item .layui-icon {
  font-size: 18px;
  color: var(--brand-primary);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.student-portal-menu-item:hover .layui-icon {
  transform: scale(1.1);
  color: #e64a19;
}

/* 菜单项文字 */
.menu-item-text {
  font-family: var(--font-family-base);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  flex: 1;
}

.student-portal-menu-item:hover .menu-item-text {
  color: var(--brand-primary);
}

/* 菜单项箭头 */
.menu-item-arrow {
  width: 14px;
  height: 14px;
  color: #cccccc;
  transition: all 0.25s ease;
  opacity: 0.5;
  flex-shrink: 0;
}

.student-portal-menu-item:hover .menu-item-arrow {
  color: var(--brand-primary);
  opacity: 1;
  transform: translateX(2px);
}

/* 移动端响应式 */
@media screen and (max-width: 768px) {
  .student-portal-wrapper {
    right: 15px;
    top: 45%;
    padding-right: 80px;
    margin-right: -80px;
  }

  .student-portal-trigger {
    width: 60px;
    height: 60px;
  }

  .student-portal-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
  }

  .student-portal-text {
    font-size: 11px;
  }

  .student-portal-menu {
    right: 75px;
    min-width: 170px;
    padding: 6px;
  }

  .student-portal-menu::before {
    padding: 8px 12px 6px;
    font-size: 12px;
  }

  .student-portal-menu-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .student-portal-menu-item .layui-icon {
    font-size: 16px;
  }

  .menu-item-text {
    font-size: 13px;
  }

  .menu-item-arrow {
    width: 12px;
    height: 12px;
  }
}
