/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

div.main {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* body */
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial,
        sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    min-height: 100vh;
}

div.main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
div.main .navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

div.main .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

div.main .nav-logo img {
    height: 40px;
    border-radius: 5px;
}

div.main .nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

div.main .nav-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

div.main .nav-link:hover,
div.main .nav-link.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: translateY(-2px);
}

div.main .nav-link.user-center {
    background: linear-gradient(45deg, #4caf50, #45a049);
    border-radius: 20px;
}

/* 主内容区域 */
div.main .main-content {
    margin-top: 70px;
    padding: 40px 0;
    min-height: calc(100vh - 140px);
}

/* 页面标题区域 */
div.main .page-header {
    text-align: center;
    margin-bottom: 40px;
    color: #000;
}

div.main .page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

div.main .page-header p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

div.main .mycraftgo {
    display: inline-block;
    background: #004cff;
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 1.1rem;
}

div.main .cloud-server-card {
    display: inline-block;
    background: #004cff;
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 1.1rem;
}

div.main .cloud-server-card:hover {
    background: #6b97fd;
}

/* 搜索区域 */
div.main .search-section {
    margin-bottom: 40px;
}

div.main .search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

div.main .search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    outline: none;
    transition: all 0.3s ease;
}

div.main .search-input:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

div.main .search-btn {
    padding: 12px 25px;
    background: linear-gradient(45deg, #004cff, #004cff);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

div.main .search-btn:hover {
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    background: #6b97fd;
}

/* 游戏列表区域 */
div.main .games-section {
    margin-bottom: 60px;
}

div.main .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* 游戏卡片样式 */
div.main .game-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 350px;
    cursor: pointer;
}

div.main .game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

div.main .game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: blur(0px);
    transform: scale(1);
}

div.main .game-card:hover .game-image {
    filter: blur(3px);
    transform: scale(1.1);
}

div.main .game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    backdrop-filter: blur(10px);
    padding: 20px;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

div.main .game-card:hover .game-overlay {
    transform: translateY(0);
    opacity: 1;
}

div.main .game-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

div.main .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

div.main .btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

div.main .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(45deg, #7c8ef0, #8a5bb8);
}

@media (max-width: 480px) {
    div.main .games-grid {
        grid-template-columns: 1fr;
    }

    div.main .page-header h1 {
        font-size: 1.8rem;
    }

    div.main .container {
        padding: 0 15px;
    }

    div.main .game-card {
        height: 220px;
    }
}

/* 加载动画 */
div.main .loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #fff;
    font-size: 1.2rem;
}

div.main .loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 无结果提示 */
div.main .no-results {
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* --- 轮播容器 --- */
div.main .slider-container {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
}

/* --- 单个轮播页 --- */
div.main .slide {
    /* 默认隐藏，通过JS控制显示 */
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* 背景图设置 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Flexbox用于内容垂直居中 */
    display: flex;

    align-items: center;
    text-align: center;

    /* 渐入渐出效果 */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* --- 当前激活的轮播页 --- */
div.main .slide.active {
    display: flex; /* 覆盖默认的display:none */
    opacity: 1;
    z-index: 1; /* 确保激活的在最上层 */
}

div.main .slide-bg {
    max-width: 100%;
}

/* --- 内容区域 --- */
div.main .sllide-content {
    padding: 40px;
    border-radius: 12px;
    max-width: 100%;
    margin-left: 20%;
}

div.main .sllide-content h1 {
    font-size: 3rem;
    margin-top: 0;
    width: 50%;
    margin-bottom: 20px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

div.main .sllide-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* --- 按钮容器和样式 --- */
div.main .buttons {
    display: flex;

    gap: 20px; /* 按钮之间的间距 */
}

div.main .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    color: white;
    background: #004cff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

div.main .btn:hover {
    transform: translateY(-3px); /* 悬停时轻微上移 */
    box-shadow: 0 8px 15px rgba(0, 122, 255, 0.3);
}

div.main .btn.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
}

div.main .btn.btn-secondary:hover {
    background-color: white;
    color: black;
    box-shadow: 0 8px 15px rgba(255, 255, 255, 0.2);
}

/* --- 左右切换箭头 --- */
div.main .arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 28px;
    transition: 0.4s ease;
    border-radius: 50%;
    user-select: none; /* 防止选中文本 */
    z-index: 2; /* 确保箭头在最上层 */
}

div.main .arrow.prev {
    left: 30px;
}

div.main .arrow.next {
    right: 30px;
}

div.main .arrow:hover {
    color: #a6b4f1;
}

/* 响应式设计：小屏幕设备 */
@media (max-width: 768px) {
    div.main .btn {
        padding: 8px 15px;
        font-size: 0.8rem;
        color: white;
        background: #004cff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        font-weight: bold;
        letter-spacing: 1px;
    }

    div.main .slide {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    div.main .sllide-content {
        margin: auto 8%;
    }

    div.main .sllide-content h1 {
        font-size: 2.5rem;
    }
    div.main .sllide-content p {
        font-size: 1.2rem;
    }

    div.main .arrow {
        font-size: 20px;
        padding: 12px;
    }
    div.main .arrow.prev {
        left: 15px;
    }
    div.main .arrow.next {
        right: 15px;
    }
}

/*底部*/
/* 默认隐藏内容区域，并设置过渡效果 */

div.main bottom-body {
    /* 使用系统默认的无衬线字体 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    /* 设置背景图片 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

div.main .main-container {
    /* 使用 Flexbox 将内容居中 */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.4); /* 背景遮罩 */
}

div.main .accordion-list {
    width: 100%;
    max-width: 48rem; /* 对应 Tailwind 的 max-w-2xl */
}

/* --- 折叠项样式 --- */

div.main .accordion-item {
    border: 2px solid white;
    border-radius: 0.5rem; /* 圆角 */
    overflow: hidden; /* 隐藏超出部分，以保持圆角效果 */
    transition: all 0.3s ease-in-out;
}

/* 为除第一个之外的所有项目添加上边距，以创建间距 */
div.main .accordion-item + div.main .accordion-item {
    margin-top: 1rem;
}

div.main .accordion-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* 鼠标悬停在按钮上时的样式 */
div.main .accordion-button:hover {
    background-color: white;
    color: #1f2937; /* 深灰色 */
}

div.main .icon {
    font-size: 1.875rem; /* 更大的图标 */
    font-weight: 300; /* 更细的字体 */
    transition: opacity 0.3s ease-in-out;
}

/* 当鼠标悬停在非激活状态的 .accordion-item 上时，隐藏其内部的 .icon 元素。*/
div.main .accordion-item:not(.active):hover .icon {
    opacity: 0;
}

/* 当 .accordion-item 是激活状态时，即使鼠标悬停，图标也保持可见。*/
div.main .accordion-item.active .icon {
    opacity: 1;
}

/* 激活状态下的按钮样式 */
div.main .accordion-item.active .accordion-button {
    background-color: white;
    color: #1f2937; /* 深灰色 */
}

div.main .accordion-content {
    /* 默认隐藏内容区域，并设置过渡效果 */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
    color: #1f2937; /* 深灰色 */
}

div.main .content-inner {
    padding: 1.5rem;
}

/*bottom info*/

div.main .info-container {
    padding: 60px 20px;
    max-width: 1000px;
    text-align: center;
    margin: auto;
}
div.main h1 {
    font-size: 32px;
    margin-bottom: 10px;
}
div.main .subheading {
    font-size: 16px;
    color: #666;
    margin-bottom: 50px;
}
div.main .features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
div.main .feature {
    width: 260px;
    margin-bottom: 40px;
}
div.main .feature img {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}
div.main .feature-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
div.main .feature-description {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/*
新闻版块
*/

div.main .news-section-container {
    /* 使用 Flexbox 将内容居中 */
    display: flex;
    justify-content: center;
    justify-items: center;
    width: 100%;
    padding: 1.5rem;
    background: #f8f9fa;
}

div.main .news-container {
    background-color: #ffffff; /* 白色背景 */
    border-radius: 1rem; /* 圆角 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05); /* 阴影 */
    width: 100%;
    max-width: 1600px; /* 最大宽度 */
    padding: 1.5rem; /* 内边距 */
    box-sizing: border-box;
}
div.main .header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem; /* pb-4 */
    border-bottom: 1px solid #e5e7eb; /* border-b border-gray-200 */
    margin-bottom: 1rem; /* mb-4 */
}
div.main .header-left {
    display: flex;
    align-items: center;
}
div.main .header-icon {
    height: 1.5rem; /* h-6 */
    width: 1.5rem; /* w-6 */
    color: #3b82f6; /* text-blue-500 */
    margin-right: 0.5rem; /* mr-2 */
}
div.main .header-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    color: #1f2937; /* text-gray-800 */
}
div.main .view-more-link {
    color: #3b82f6; /* text-blue-500 */
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    border-radius: 9999px; /* rounded-full */
    padding: 0.25rem 0.75rem; /* px-3 py-1 */
    background-color: #eff6ff; /* bg-blue-50 */
    transition-property: background-color, color;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
}
div.main .view-more-link:hover {
    color: #2563eb; /* hover:text-blue-600 */
    background-color: #dbeafe; /* hover:bg-blue-100 */
}
div.main .view-more-icon {
    height: 1rem; /* h-4 */
    width: 1rem; /* w-4 */
    margin-left: 0.25rem; /* ml-1 */
}

/* 新闻项样式 */
div.main .news-item {
    display: flex;
    flex-direction: column; /* 默认垂直堆叠 */
    align-items: flex-start; /* 默认左对齐 */
    padding: 0.75rem 0; /* 垂直内边距 */
    border-bottom: 1px solid #e5e7eb; /* 底部边框 */
}
div.main .news-item:last-child {
    /*border-bottom: none;*/ /* 最后一个新闻项没有底部边框 */
}
div.main .news-date {
    min-width: 120px; /* 日期最小宽度 */
    color: #6b7280; /* 灰色日期文本 */
    font-size: 0.875rem; /* 字体大小 */
    margin-bottom: 0.25rem; /* mb-1 */
    margin-right: 0; /* mr-0 */
}
div.main .news-title a {
    color: #1f2937; /* 深灰色标题文本 */
    text-decoration: none; /* 无下划线 */
    transition: color 0.2s ease-in-out; /* 颜色过渡 */
    font-size: 0.9375rem; /* 稍微大一点的标题字体 */
    flex: 1; /* flex-1 */
}
div.main .news-title a:hover {
    color: #3b82f6; /* 悬停时蓝色 */
}

/* 响应式网格布局 */
div.main .news-grid {
    display: grid;
    grid-template-columns: 1fr; /* 默认一列 */
    gap: 1rem; /* 网格间距 */
}

@media (min-width: 640px) {
    /* 对应 Tailwind sm breakpoint */
    div.main .news-item {
        flex-direction: row; /* sm 屏幕变为水平排列 */
        align-items: center; /* sm 屏幕居中对齐 */
    }
    div.main .news-date {
        margin-bottom: 0; /* sm 屏幕移除底部外边距 */
        margin-right: 1rem; /* sm 屏幕右侧外边距 mr-4 */
    }
    div.main .news-grid {
        grid-template-columns: repeat(2, 1fr); /* 小屏幕两列 */
    }
}

@media (min-width: 1024px) {
    /* 对应 Tailwind lg breakpoint */
    div.main .news-grid {
        grid-template-columns: repeat(3, 1fr); /* 大屏幕三列 */
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    div.main .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }

    div.main .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
    }

    div.main .main-content {
        margin-top: 120px;
        padding: 20px 0;
    }

    div.main .page-header h1 {
        font-size: 2rem;
    }

    div.main .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    div.main .search-container {
        flex-direction: column;
        gap: 15px;
    }

    div.main .game-card {
        height: 250px;
    }

    div.main .game-title {
        font-size: 1.2rem;
    }

    div.main .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    div.main .sllide-content h1 {
        font-size: 2rem;
        margin-top: 0;
        width: 100%;
        margin-bottom: 30px;
        color: white;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    }

    div.main .sllide-content .buttons {
        flex-direction: column;
    }
}



/* 页脚样式 */
/* .footer {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
} */