/* 全局样式 - 移除滚动条 */
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* 美化滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 1), rgba(118, 75, 162, 1));
    background-clip: padding-box;
}

/* Firefox 滚动条样式 */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.8) rgba(255, 255, 255, 0.1);
}

/* 主体容器 - 柔和渐变背景 */
.body-content {
    margin: 0 !important;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.9) 0%, 
        rgba(118, 75, 162, 0.85) 20%, 
        rgba(240, 147, 251, 0.9) 40%, 
        rgba(79, 172, 254, 0.85) 60%, 
        rgba(0, 242, 254, 0.9) 80%, 
        rgba(102, 126, 234, 0.9) 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease-in-out infinite;
    position: relative;
    background-attachment: fixed;
    padding: 60px 0 0 0;
    display: flex;
    flex-direction: column;
}

/* 动态渐变背景动画 - 更柔和的过渡 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 浮动光球容器 */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* 渐变光球 - 更柔和动感 */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    will-change: transform, opacity;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.6) 0%, rgba(102, 126, 234, 0.2) 50%, rgba(102, 126, 234, 0) 80%);
    top: 10%;
    left: 10%;
    animation: float 25s ease-in-out infinite, pulse 8s ease-in-out infinite;
    animation-delay: 0s, 0s;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.6) 0%, rgba(118, 75, 162, 0.2) 50%, rgba(118, 75, 162, 0) 80%);
    top: 60%;
    right: 15%;
    animation: float 28s ease-in-out infinite, pulse 10s ease-in-out infinite;
    animation-delay: -6s, -2s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.6) 0%, rgba(240, 147, 251, 0.2) 50%, rgba(240, 147, 251, 0) 80%);
    bottom: 20%;
    left: 20%;
    animation: float 30s ease-in-out infinite, pulse 12s ease-in-out infinite;
    animation-delay: -12s, -4s;
}

.orb-4 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.6) 0%, rgba(79, 172, 254, 0.2) 50%, rgba(79, 172, 254, 0) 80%);
    top: 30%;
    right: 30%;
    animation: float 26s ease-in-out infinite, pulse 9s ease-in-out infinite;
    animation-delay: -18s, -3s;
}

/* 光球浮动动画 - 更流畅的路径 */
@keyframes float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    20% {
        transform: translate(60px, -80px) scale(1.15) rotate(72deg);
    }
    40% {
        transform: translate(-40px, 50px) scale(0.85) rotate(144deg);
    }
    60% {
        transform: translate(80px, 60px) scale(1.1) rotate(216deg);
    }
    80% {
        transform: translate(-50px, -40px) scale(0.95) rotate(288deg);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}

/* 光球呼吸动画 - 增加柔和感 */
@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.7;
    }
}

/* 顶部区域 */
.guide-top {
    width: 1200px;
    max-width: 90%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    z-index: 1;
    padding-top: 0;
    padding-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Logo 容器 */
.logo-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInDown 1s ease-out;
    flex-shrink: 0;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
}

/* 欢迎文字 */
.welcome-text {
    animation: fadeInUp 1s ease-out 0.3s both;
    flex-shrink: 0;
}

.welcome-text h1 {
    font-size: 42px;
    color: #ffffff;
    margin: 0 0 10px 0;
    font-weight: 300;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

.welcome-text h2 {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 300;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
}

/* 文字淡入动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 预览卡片样式 - 固定在底部，在卡片上方 */
.preview-card {
    width: 50%;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1),
                0 -2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px 24px;
    position: fixed;
    bottom: 310px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    z-index: 100;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.preview-card.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.15),
                0 -4px 16px rgba(0, 0, 0, 0.1);
}

.preview-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.preview-card-header i {
    font-size: 18px;
    color: #667eea;
}

.preview-card-header span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.preview-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.preview-label {
    color: #666;
    font-weight: 500;
    min-width: 80px;
    flex-shrink: 0;
}

.preview-value {
    color: #333;
    word-break: break-all;
    flex: 1;
}

.preview-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.preview-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.preview-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.preview-btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.preview-btn-secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.preview-btn-secondary:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.preview-btn i {
    font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 1400px) {
    .preview-card {
        bottom: 290px;
    }
    
    .guide-links {
        grid-template-columns: repeat(7, 1fr);
        gap: 15px;
        bottom: 50px;
        padding: 0 30px 0 30px;
    }
    
    .guide-card {
        max-width: 140px;
        height: 180px;
    }
    
    .icon-wrapper {
        width: 55px;
        height: 55px;
    }
    
    .card-content p {
        font-size: 13px;
    }
}

@media (max-width: 1200px) {
    .preview-card {
        width: 60%;
        bottom: 270px;
    }
    
    .guide-links {
        grid-template-columns: repeat(7, 1fr);
        gap: 12px;
        bottom: 45px;
        padding: 0 20px 0 20px;
    }
    
    .guide-card {
        max-width: 120px;
        height: 160px;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .card-content {
        padding: 15px 10px;
    }
    
    .card-content p {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .preview-card {
        width: 90%;
        padding: 16px 20px;
        bottom: 250px;
    }
    
    .preview-info-item {
        flex-direction: column;
        gap: 4px;
    }
    
    .preview-label {
        min-width: auto;
    }
    
    .preview-actions {
        flex-direction: column;
    }
    
    .guide-links {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        bottom: 40px;
        padding: 0 15px 0 15px;
    }
    
    .guide-card {
        max-width: 100%;
        height: 150px;
    }
}

/* 链接卡片容器 - 悬浮固定在底部 */
.guide-links {
    width: calc(100% - 80px);
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 0 40px 0 40px;
    box-sizing: border-box;
    justify-items: center;
}

/* 确保卡片之间没有额外的margin干扰 */
.guide-links > * {
    margin: 0 !important;
    padding: 0 !important;
}

/* 卡片样式 */
.guide-card {
    cursor: pointer;
    display: block;
    width: 100%;
    max-width: 160px;
    height: 200px;
    text-decoration: none;
    position: relative;
    animation: fadeInUp 1s ease-out 0.6s both;
    transition: transform 0.3s ease;
    margin: 0;
}

.guide-card:nth-child(2) {
    animation-delay: 0.8s;
}

.guide-card:nth-child(3) {
    animation-delay: 1s;
}

.guide-card:nth-child(4) {
    animation-delay: 1.2s;
}

.guide-card:nth-child(5) {
    animation-delay: 1.4s;
}

.guide-card:nth-child(6) {
    animation-delay: 1.6s;
}

.guide-card:nth-child(7) {
    animation-delay: 1.8s;
}

.guide-card:hover {
    transform: translateY(-10px);
}

/* 选中状态的卡片 */
.guide-card.selected {
    transform: translateY(-10px);
}

.guide-card.selected .card-content {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.25),
                0 4px 16px rgba(102, 126, 234, 0.15);
    border: 2px solid rgba(102, 126, 234, 0.4);
    transform: scale(1.02);
}

/* 选中标记 - 右上角 */
.card-selected-mark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    z-index: 10;
    animation: markAppear 0.3s ease-out;
}

.card-selected-mark i {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
}

@keyframes markAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 卡片内容 */
.card-content {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.guide-card:hover .card-content {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15),
                0 4px 16px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

/* 图标容器 */
.icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

/* 卡片图标图片样式 */
.card-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.guide-card:hover .card-icon {
    transform: scale(1.1);
}

.guide-card:hover .icon-wrapper {
    transform: scale(1.05);
}

/* 卡片文字 */
.card-content p {
    text-align: center;
    font-size: 14px;
    color: #333;
    margin: 0;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.guide-card:hover .card-content p {
    color: #667eea;
}

/* 悬停光效 */
.card-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 24px;
    pointer-events: none;
}

.guide-card:hover .card-hover-effect {
    opacity: 1;
}

/* 底部区域（保留原有样式） */
.guide-forter {
    width: 1200px;
    max-width: 90%;
    margin: 0 auto;
    margin-top: 95px;
    position: relative;
    z-index: 1;
}

.guide-forter > a {
    display: block;
}

.guide-forter p {
    text-align: center;
    padding: 3px 0px;
}

.guide-forter p a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: color 0.3s ease;
}

.guide-forter p a:hover {
    color: #ffffff;
}

.guide-forter div {
    width: 150px;
    height: 50px;
    margin: 0 auto;
    line-height: 50px;
    text-align: center;
}

.guide-forter img {
    height: auto;
    width: auto;
    max-width: 150px;
    max-height: 50px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .guide-links {
        width: calc(100% - 60px);
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        row-gap: 35px !important;
        column-gap: 18px;
        padding: 30px 0 70px 0;
    }
}

@media (max-width: 768px) {
    .body-content {
        padding: 40px 0 60px 0;
    }
    
    .guide-top {
        width: 100%;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .logo-container {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }
    
    .welcome-text {
        margin-bottom: 30px;
    }
    
    .welcome-text h1 {
        font-size: 28px;
    }
    
    .welcome-text h2 {
        font-size: 20px;
    }
    
    .guide-links {
        width: calc(100% - 40px);
        grid-template-columns: 1fr;
        row-gap: 30px !important;
        column-gap: 20px;
        padding: 30px 0 60px 0;
    }
    
    .guide-card {
        max-width: 100%;
        height: 180px;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .card-content p {
        font-size: 13px;
    }
}

@media (min-width: 1400px) {
    .guide-links {
        width: calc(100% - 100px);
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        row-gap: 40px !important;
        column-gap: 20px;
    }
}

/* 兼容旧版选择状态（保留） */
.guide-links li.li-selected {
    background: #667eea;
}

.guide-links li.li-selected .no-select {
    display: none;
}

.guide-links li.li-selected .selected {
    display: block;
}

.guide-links li.li-selected p {
    color: #fff;
}
