* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* 首页专用样式 */
body.index-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    position: relative;
}
.container {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}
.logo {
    width: 120px;
    margin-bottom: 20px;
    animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}
.title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(0,120,255,0.2);
}
.subtitle {
    font-size: 16px;
    margin-bottom: 30px;
}
.swiper {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}
.swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    animation: slide 15s linear infinite;
    display: block;
}
.swiper img.logo-slide {
    object-fit: contain;
    width: auto;
    max-width: 90%;
}
.swiper img:nth-child(1) { animation-delay: 0s; }
.swiper img:nth-child(2) { animation-delay: 5s; }
.swiper img:nth-child(3) { animation-delay: 10s; }
@keyframes slide {
    0% { opacity: 0; }
    10% { opacity: 1; }
    40% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}
.data-box {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.data-item {
    padding: 16px 24px;
    border-radius: 12px;
    min-width: 140px;
    backdrop-filter: blur(10px);
}
.data-num {
    font-size: 28px;
    font-weight: bold;
}
.data-text {
    font-size: 13px;
    margin-top: 4px;
}
.btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    padding: 16px 40px;
    border-radius: 14px;
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn:hover {
    transform: translateY(-5px);
}
.theme-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 220px;
    justify-content: flex-end;
}
.theme-btn {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

/* ========== show.php 专用样式（独立布局，不影响首页） ========== */
body.show-body {
    min-height: 100vh;
    overflow-x: hidden;
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    text-align: left !important;
    padding: 0 !important;
}
.bg-line {
    position: fixed;
    width: 1px;
    height: 100%;
    top: 0;
    opacity: 0.1;
    z-index: -1;
    animation: bgLine 8s infinite linear;
}
.l1 { left: 10%; }
.l2 { left: 30%; animation-delay: -2s; }
.l3 { left: 50%; animation-delay: -4s; }
.l4 { left: 70%; animation-delay: -6s; }
.l5 { left: 90%; animation-delay: -1s; }
@keyframes bgLine {
    0% { opacity: 0; height: 0; }
    50% { opacity: 0.15; height: 100%; }
    100% { opacity: 0; height: 0; }
}
.header {
    background-size: 300% 100%;
    animation: headerFlow 8s infinite linear;
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 6px 30px rgba(0,82,217,0.2);
}
@keyframes headerFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.logout-btn {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}
.logout-btn:hover {
    transform: translateY(-50%) scale(1.05);
}
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    z-index: 99;
}
.back-top.show {
    opacity: 1;
    visibility: visible;
}
.back-top:hover {
    transform: translateY(-5px) scale(1.1);
}
.filter {
    max-width: 1200px;
    margin: 30px auto;
    padding: 26px;
    border-radius: 14px;
    backdrop-filter: blur(15px);
    position: relative;
}
.filter-reset {
    position: absolute;
    top: 20px;
    right: 26px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-title {
    font-size:14px; margin:16px 0 8px;
}
.check-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
}
.check-group label {
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.check-group label:hover {
    transform: translateY(-2px);
}
.check-group input { display: none; }
.case-grid {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 26px;
}
.card {
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}
.card:hover {
    transform: translateY(-12px) scale(1.02);
}
.year-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 2;
    font-weight: bold;
}
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-img {
    transform: scale(1.12);
}
.card-info {
    padding: 20px;
    position: relative;
    z-index: 2;
}
.card-title {
    font-size: 17px;
    margin-bottom: 10px;
}
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.modal.show {
    display: flex;
    opacity: 1;
}
.modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    padding: 30px;
    border-radius: 14px;
    position: relative;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}
.modal.show .modal-content {
    transform: scale(1);
}
.close {
    position: absolute;
    right: 20px; top: 20px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close:hover {
    background: #ff4d4f;
    color:#fff;
    transform: rotate(90deg);
}
.modal-imgs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}
.modal-imgs img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.modal-imgs img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(0,0,0,0.2);
}
.img-view {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.img-view.show { display: flex; }
.img-view img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
}
.img-close {
    position: absolute;
    right: 30px; top: 30px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    transition: all .3s;
}
.img-close:hover { color: #ff4d4f; transform: rotate(90deg); }
.modal-info {
    line-height: 1.75;
    font-size: 15px;
    letter-spacing: 0.3px;
}
.modal-info p {
    padding: 14px 18px;
    margin: 12px 0;
    border-radius: 10px;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.08);
}
.modal-info strong {
    font-size: 15px;
    margin-right: 6px;
}
#modalDetail h2 {
    line-height: 1.4;
    margin-bottom: 20px !important;
    font-weight: 600;
}
/* 分页组件样式 适配全主题 */
.page-box {
    max-width: 1200px;
    margin: 40px auto 60px;
    text-align: center;
    padding: 0 20px;
}
.page-btn, .page-num {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid;
    transition: all 0.3s ease;
}
.page-num {
    padding: 8px 14px;
    margin: 0 3px;
}
.page-btn.disabled,
.page-num.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

