/* Tailwind CSS v4 基础样式 */
/* 自定义工具类 */
.content-auto {
  content-visibility: auto;
}

/* 文字竖排样式 */
.vertical-text {
  writing-mode: vertical-rl !important;
  -webkit-writing-mode: vertical-rl !important;
  -ms-writing-mode: vertical-rl !important;
  text-orientation: upright !important;
  -webkit-text-orientation: upright !important;
  letter-spacing: 0.5em !important;
  display: inline-block !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  width: auto !important;
  height: auto !important;
}

/* 自定义样式以匹配网站主题 */
a {
    color: #555555;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #5F2467;
}

.header-bg {
    background: linear-gradient(90deg, #F6F5FB 0%, #EEECF7 37%, #EBF1FD 69%, #FEF9FF 100%);
    box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.12);
}

.nav-item {
    color: #555555;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover {
    color: #5F2467;
}

.mobile-nav-item {
    color: #555555;
    transition: all 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.mobile-nav-item:hover {
    color: #ffffff;
    background-color: #5F2467;
}

/* 汉堡菜单按钮优化 */
.menu-button {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 调整面包栏图标和关闭按钮颜色 */
#mobile-menu-button i {
    color: #5F2467 !important;
}

/* Logo样式 */
.logo-img {
    height: 40px;
}

/* 轮播图样式 */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.5s ease-out;
}

.carousel-slide {
    flex-shrink: 0;
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-indicators {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.carousel-indicators button {
    width: 8px;
    height: 12px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-indicators button.active {
    width: 8px;
    height: 16px;
    background-color: white;
}

/* 移动端菜单动画 */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* 优化小屏幕显示 */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 分隔线 */
.divider {
    height: 1px;
    background-color: #d2d4d8;
}

/* 阴影类定义 */
.header-shadow {
    box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.12);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 自定义样式以匹配网站主题 */
.footer-bg {
    background: linear-gradient(90deg, #F6F5FB 0%, #EEECF7 37%, #EBF1FD 69%, #FEF9FF 100%);
    border-top: 1px solid #b6b6b8;
}

.footer-link {
    color: #555555;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: #5F2467;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #555555;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #5F2467;
    color: white;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.contact-icon {
    width: 24px;
    margin-right: 0.75rem;
    color: #5F2467;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .footer-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .footer-section {
        padding: 1rem 0;
    }
}

/* 截图容器样式 */
.screenshot-container {
    margin: 2rem 0;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.screenshot-container h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* 截图项样式 */
.screenshot-item {
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    transition: box-shadow 0.3s ease;
}

.screenshot-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.25rem;
    transition: transform 0.3s ease;
}

.screenshot-item:hover img {
    transform: scale(1.02);
}

.screenshot-item p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    text-align: center;
}

/* 相关资讯卡片样式 */
.news-card {
    display: block;
    transition: all 0.3s ease;
}

.news-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.375rem;
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.news-card:hover h3 {
    color: #5F2467;
}

/* 面包屑导航样式 */
nav.text-sm a {
    color: #6b7280;
    text-decoration: none;
}

nav.text-sm a:hover {
    color: #5F2467;
}

/* 分享按钮样式 */
.flex.justify-between button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #eceff5;
    transition: color 0.3s ease;
}

.flex.justify-between button:hover {
    color: #f8f5f8;
}

/* 分享图标样式 */
.flex.space-x-3 a {
    color: #6b7280;
    transition: color 0.3s ease;
}

.flex.space-x-3 a:hover {
    color: #5F2467;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .screenshot-container {
        padding: 1rem;
    }
    
    .screenshot-item {
        margin-bottom: 1rem;
    }
}

/* 侧边栏样式 */
.lg\:w-1\/3 {
    width: 100%;
}

@media (min-width: 1024px) {
    .lg\:w-1\/3 {
        width: 33.333333%;
    }
}

/* 侧边栏卡片通用样式 */
.lg\:w-1\/3 > div {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    
    margin-bottom: 1.5rem;
}

.lg\:w-1\/3 > div:last-child {
    margin-bottom: 0;
}

/* 侧边栏标题样式 */
.lg\:w-1\/3 h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.lg\:w-1\/3 h3 i {
    color: #5F2467;
    margin-right: 0.5rem;
}

/* 侧边栏样式优化 */
.w-full.md\:w-1\/4 {
    transition: all 0.3s ease;
}

.sidebar-module {
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-module h3 {
    position: relative;
}

.sidebar-module h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #5F2467;
    border-radius: 3px;
}

/* 热门院校列表样式 */
.popular-schools li {
    transition: all 0.2s ease;
}

.popular-schools li:hover {
    transform: translateX(5px);
}

.popular-schools a {
    display: flex;
    align-items: center;
}

.popular-schools .school-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    font-size: 0.875rem;
    font-weight: bold;
    color: white;
    background-color: #5F2467;
    border-radius: 4px;
}

/* 常见问题样式 */
.faq-item {
    border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.875rem;
    color: #555555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-item button:hover {
    color: #5F2467;
}

.faq-item button i {
    transition: all 0.3s ease;
}

/* 联系咨询样式 */
.contact-info p {
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: #555555;
}

.contact-info a {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: bold;
    color: white;
    background-color: #5F2467;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.contact-info a:hover {
    background-color: #4a1c52;
    transform: translateY(-1px);
}

/* 咨询卡片样式 */
.bg-purple-50 {
    background-color: #faf5ff;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.bg-purple-50 p {
    color: #4b5563;
    margin-bottom: 0.75rem;
}

/* 按钮样式 */
.consultation-btn {
    background-color: #5F2467;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.consultation-btn:hover {
    background-color: #7c3aed;
}

/* 时间轴样式 */
.space-y-4 div {
    display: flex;
    align-items: flex-start;
}

.w-2.h-2.rounded-full {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    margin-top: 0.5rem;
    margin-right: 0.75rem;
}

.timeline-dot-active {
    background-color: #5F2467;
}

.bg-gray-300 {
    background-color: #d1d5db;
}

.space-y-4 div div p:first-child {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.space-y-4 div div p:last-child {
    font-size: 0.875rem;
    color: #6b7280;
}

/* 侧边栏移动端适配 */
@media (max-width: 1023px) {
    .lg\:w-1\/3 {
        order: 2;
        margin-top: 2rem;
    }
    
    .lg\:w-2\/3 {
        order: 1;
    }
}

/* 院校和专业模块样式 */
/* 统一所有vertical-text类的竖排样式 */
.vertical-text {
    writing-mode: vertical-rl !important;
    text-orientation: upright !important;
    letter-spacing: 0.5em !important;
    display: inline-block !important;
}

.title-container {
    width: 30px;
    height: 60px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.university-item {
    min-width: 96px;
}

.major-item {
    min-width: 112px;
}

.content-gradient {
    background: linear-gradient(180deg, #FFF8F3 0%, #FFFFFF 100%);
}

/* Banner容器样式 */
.banner-container {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.left-container, .right-container {
    flex: 1;
}

/* 轮播图样式 */
.carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carousel-content {
    text-align: center;
    width: 100%;
}

/* 轮播图样式调整 - 改为垂直方向 */
.carousel-track {
    display: flex;
    flex-direction: column;
}

.carousel-container {
    overflow: hidden;
}

/* 修复可能导致白色线条的背景透明度问题 */
.carousel-slide {
    overflow: hidden;
}

/* 确保渐变覆盖层平滑过渡且没有边界线 */
.carousel-slide .bg-gradient-to-t {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
    border: none;
    outline: none;
}

/* 移动端响应式 */
@media (max-width: 1023px) {
    /* 移除移动端所有虚线边框 */
    #major-container > div.major-item {
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
    }
    
    /* Banner移动端布局 */
    .banner-container {
        flex-direction: column;
    }
}

/* ========== 左侧固定按钮样式 ========== */
/* 固定按钮容器样式 */
.left-fixed-buttons {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 30;
    transition: transform 0.3s ease;
}

/* 固定按钮通用样式 */
.fixed-button {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4B5563;
    border: none;
}

/* 固定按钮悬停效果 */
.fixed-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 点赞按钮激活状态 */
.fixed-button.liked {
    background-color: #5F2467;
    color: white;
}

/* 微信按钮 */
.fixed-button-wechat:hover {
    color: #07C160;
}

/* 小红书按钮 */
.fixed-button-xhs:hover {
    color: #FE2C55;
}

/* 分享按钮 */
.fixed-button-share:hover {
    color: #1DA1F2;
}

/* 按钮图标大小 */
.fixed-button i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* 按钮文字样式 */
.fixed-button span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* 移动端隐藏 */
@media (max-width: 1023px) {
    .left-fixed-buttons {
        display: none !important;
    }
}

/* FAQ 区域新样式 */
.faq-container {
    background: linear-gradient(145deg, #ffffff, #f5f3f9);
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(95, 36, 103, 0.05), 0 8px 10px -6px rgba(95, 36, 103, 0.02);
    overflow: hidden;
}

.faq-container h2 {
    color: #5F2467;
    font-size: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(95, 36, 103, 0.1);
}

.faq-item {
    border: none;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-toggle {
    background-color: white;
    padding: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-toggle:hover {
    background-color: #f9f5fb;
    color: #5F2467;
}

.faq-toggle[aria-expanded="true"] {
    background-color: #f5f0f7;
    border-left: 4px solid #5F2467;
}

.faq-toggle[aria-expanded="true"] .fas-chevron-down {
    color: #5F2467;
}

.faq-content {
    padding: 0 1.25rem;
    color: #4b5563;
    line-height: 1.7;
}

.faq-item .fas-chevron-down {
    color: #a78bfa;
    transition: all 0.3s ease;
}

/* 响应式设计断点 */
@media (max-width: 767px) {
  /* 移动端样式 */
  .md\:hidden {
    display: block;
  }
  
  .hidden.md\:flex {
    display: none;
  }
}

@media (min-width: 768px) {
  /* 桌面端样式 */
  .md\:hidden {
    display: none;
  }
  
  .hidden.md\:flex {
    display: flex;
  }
}

.footer-section {
  width: 100%;
}

.footer-container {
  padding-left: 1rem;
  padding-right: 1rem;
}

.menu-button:focus {
  outline: none;
}

/* 点赞按钮激活状态样式 */
.liked .liked-bg,
  .liked-bg.liked {
    background-color: #5F2467 !important;
    color: white !important;
}
  
  .favorited .favorited-bg,
  .favorited-bg.favorited {
    background-color: #5F2467 !important;
    color: white !important;
}

/* ========== 推荐院校网格布局 ========== */
/* 自定义响应式网格，确保PC端一排6个 */
.school-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* 小屏幕 (>=640px): 3列 */
@media (min-width: 640px) {
    .school-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 中等屏幕 (>=768px): 4列 */
@media (min-width: 768px) {
    .school-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 大屏幕 (>=1024px): 6列 */
@media (min-width: 1024px) {
    .school-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* 院校卡片样式 */
.school-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.school-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}