* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --main-color: #7c3aed;
    --main-light: #a78bfa;
    --main-dark: #5b21b6;
    --feedback-color: #10b981;
    --feedback-dark: #059669;
    --dark-color: #1e1b4b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --card-bg: #ffffff;
}
html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
/* 导航栏 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    z-index: 999;
}
.nav-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--main-color);
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}
.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
    cursor: pointer;
}
.nav-links a.active {
    color: var(--main-color);
    font-weight: 600;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--main-color);
    border-radius: 2px;
    animation: activeSlide 0.3s ease forwards;
}
@keyframes activeSlide {
    from { width: 0; }
    to { width: 100%; }
}
.download-btn-nav {
    padding: 0.4rem 0.8rem;
    background-color: var(--main-color);
    color: white !important;
    border-radius: 6px;
    font-size: 0.85rem !important;
}
/* 通用模块布局 */
section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}
/* 首页模块 */
.hero {
    margin-top: 60px;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}
.hero-container {
    width: 100%;
    text-align: center;
}
.avatar-box {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--main-color);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.25);
    background-color: var(--main-light);
}
.avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    color: var(--dark-color);
}
.hero p {
    font-size: 0.95rem;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.feedback-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--feedback-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease;
}
.feedback-btn:hover {
    background-color: var(--feedback-dark);
}
/* 模块标题统一 */
.module-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    color: var(--dark-color);
}
.module-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
/* 相册轮播模块 */
.album-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: transparent;
}
.album-swiper {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f5f9;
}
.swiper-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.swiper-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: none;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
.swiper-btn:hover {
    background: rgba(255, 255, 255, 1);
}
.swiper-prev {
    left: 1rem;
}
.swiper-next {
    right: 1rem;
}
.swiper-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}
.indicator.active {
    background: var(--main-color);
    width: 24px;
    border-radius: 5px;
}
/* 照片网格列表 */
.photo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
}
.photo-item {
    background: var(--light-color);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}
.photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.15);
    border-color: var(--main-light);
}
.photo-item.active {
    border-color: var(--main-color);
    background: #f5f3ff;
}
.photo-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
}
.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 折叠展开容器 */
.collapse-container {
    width: 100%;
    margin-top: 1.2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    background: var(--card-bg);
}
.collapse-header {
    padding: 1rem 1.5rem;
    background: var(--main-color);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}
.collapse-header:hover {
    background: var(--main-dark);
}
.collapse-header .collapse-icon {
    transition: transform 0.3s ease;
}
.collapse-header.active .collapse-icon {
    transform: rotate(180deg);
}
.collapse-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.collapse-content.active {
    max-height: 800px;
    overflow-y: auto;
}
.collapse-inner {
    padding: 1.5rem;
}
/* 下载区 */
.file-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}
.file-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    width: 100%;
    display: flex;
    flex-direction: column;
}
.file-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    text-align: center;
}
.file-desc {
    color: var(--gray-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.file-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray-color);
    gap: 0.5rem;
    flex-wrap: wrap;
}
/* 统一下载按钮样式 */
.file-download-btn, .download-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    text-align: center;
    background-color: var(--main-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}
.file-download-btn:hover, .download-btn:hover {
    background-color: var(--main-dark);
}
/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 1.5rem 1rem;
    margin-top: 1rem;
}
.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.copyright {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.visit-count {
    color: #94a3b8;
    font-size: 0.85rem;
}
/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: var(--main-light);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--main-color);
}
/* 响应式适配 */
@media (min-width: 768px) {
    .nav-container {
        padding: 1rem 2rem;
    }
    .logo {
        font-size: 1.4rem;
    }
    .nav-links {
        gap: 2rem;
    }
    .nav-links a {
        font-size: 1rem;
    }
    .download-btn-nav {
        padding: 0.5rem 1rem;
        font-size: 0.95rem !important;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .module-title {
        font-size: 2.2rem;
    }
    section {
        padding: 2.5rem 2rem;
    }
    .photo-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
@media (max-width: 576px) {
    .nav-container {
        justify-content: center;
    }
    .nav-links {
        gap: 0.8rem;
        width: 100%;
        justify-content: center;
    }
    .nav-links a {
        font-size: 0.8rem;
    }
    .download-btn-nav {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem !important;
    }
    .swiper-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .hero {
        margin-top: 80px;
    }
    .feedback-btn {
        width: 100%;
    }
}
/* TShock筛选面板样式 */
.resource-card {
    margin-bottom: 20px;
    width: 100%;
}
.tshock-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #7c3aed;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    margin: 12px 0;
    font-weight: 600;
    font-size: 18px;
    user-select: none;
}
.tshock-filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 10px;
}
.tshock-filter-content.active {
    max-height: 220px;
    padding: 10px;
}
.tshock-version-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tshock-version-tags .version-tag {
    padding: 8px 16px;
    background: #f3f1ff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}
.tshock-version-tags .version-tag.active {
    background: #7c3aed;
    color: white;
}
.tshock-tab-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tshock-tab-group .tab-btn {
    padding: 8px 20px;
    background: #f3f1ff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}
.tshock-tab-group .tab-btn.active {
    background: #7c3aed;
    color: white;
}
.tshock-collapse-icon {
    transition: transform 0.3s ease;
}
.tshock-filter-header.active .tshock-collapse-icon {
    transform: rotate(180deg);
}
.resource-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.3;
}
/* 复制成功Toast样式 */
.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 25%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.78);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 15px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}
.copy-toast.show {
    opacity: 1;
    visibility: visible;
}
