:root{
    --bg-color: #eaecf0;
    --main-color: #5080ee;
    --nav-item-width: 100px;
    --nav-item-height: 32px;
    --nav-item-border-width: 4px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,
body{
    width: 100%;
}
body {
    background-color: #fefefe;
    line-height: 1.8;
    font-family: "Smiley Sans", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, "Microsoft YaHei", sans-serif;
}
.slide-nav{
    margin: 30px 0;
    display: flex;
    justify-content: center;
}
.nav{
    position: relative;
    background: #fff;
    border-radius: 24px;
    font-size: 0;
    padding: var(--nav-item-border-width);
    z-index: 1;
    overflow: hidden;
}
.nav-item{
    width: var(--nav-item-width);
    height: var(--nav-item-height);
    font-size: 14px;
    color: var(--main-color);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: color .3s ease-in-out;
    font-family: "Noto Serif SC", "WenYuan Rounded SC", sans-serif;
}
.nav>input[type="radio"]{
    width: 0;
    height: 0;
    opacity: 0;
    position: absolute;
}
.nav>input[type="radio"]:checked + label{
    color: #fff;
}
.tracker{
    width: var(--nav-item-width);
    height: var(--nav-item-height);
    background: var(--main-color);
    z-index: -1;
    position: absolute;
    left: var(--nav-item-border-width);
    top: var(--nav-item-border-width);
    border-radius: 24px;
    transition: transform .3s cubic-bezier(0.4,0,0.2,1);
}
#nav-item-opt-2:checked ~ .tracker{
    transform: translateX(calc(var(--nav-item-width)));
}
#nav-item-opt-3:checked ~ .tracker{
    transform: translateX(calc(var(--nav-item-width) * 2));
}
/* .navbar 相关样式已移至 index2.html 内联 <style>，避免冲突 */
.slideshow-container {
    position: relative;
    height: 620px;
    max-width: 1200px;
    margin: 0 auto 40px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.1);
}
.slideshow-images {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.2s ease-in-out, transform 4s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}
.slideshow-images.active {
    opacity: 1;
    transform: scale(1);
}
.slideshow-mask {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
    pointer-events: none;
}
.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s;
}
.dot.active {
    background: #fff;
    width: 26px;
    border-radius: 5px;
}
.notice-box {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 16px 22px;
    background: #fff8e6;
    border-left: 6px solid #ffb800;
    border-radius: 10px;
}
.notice-title {
    font-weight: bold;
    font-size: 20px;
    color: #d88c00;
    margin: 0 0 8px;
}
.notice-text {
    margin: 0;
    color: #444;
    font-size: 16px;
}
.content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
}
.welcome-title {
    margin-bottom: 18px;
    letter-spacing: 3px;
    font-size: 36px;
    color: #d82fc0;
}
.welcome-desc {
    font-size: 19px;
    margin: 10px 0;
    color: #0099cc;
}
.content-img {
    margin-top: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    max-width: 90%;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0 40px;
}
.box {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}
.box:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.25);
}
.img-box {
    width: 100%;
    height: 100%;
}
.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.box:hover .img-box img {
    transform: scale(1.08);
}
.text-box {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 30px 20px;
    display: flex;
    align-items: flex-end;
    transform: translateY(60%);
    transition: transform 0.35s ease;
}
.box:hover .text-box {
    transform: translateY(0);
}
.text-box h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
}
.text-box p {
    color: #eee;
    font-size: 14px;
    line-height: 1.6;
}
.tab-panel {
    margin: 40px 0;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
@media (max-width: 1024px) {
    .slideshow-container {
        height: 480px;
        max-width: 94%;
    }
    .welcome-title {
        font-size: 30px;
    }
}
@media (max-width: 768px) {
    /* navbar 移动端样式已移至 index2.html 内联 */
    .slideshow-container {
        height: 340px;
        margin-bottom: 24px;
        border-radius: 12px;
        max-width: 96%;
    }
    .slide-dots {
        bottom: 14px;
    }
    .notice-box {
        margin: 0 12px 24px;
    }
    .welcome-title {
        letter-spacing: 1px;
        font-size: 26px;
    }
    .welcome-desc {
        font-size: 17px;
    }
}
@media (max-width: 480px) {
    /* navbar 移动端样式已移至 index2.html 内联 */
    .slideshow-container {
        height: 240px;
        border-radius: 10px;
    }
    .welcome-title {
        font-size: 24px;
    }
    .notice-title {
        font-size: 18px;
    }
    .notice-text {
        font-size: 15px;
    }
}