* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent scrolling if we want a single screen app look */
}

.page-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
    padding: 10px;
}

/* Header Styles */
header {
    padding: 15px 60px; /* Increased side padding */
    z-index: 10;
}

.top-nav {
    width: 100%;
}

.top-nav ul {
    display: flex;
    list-style: none;
    justify-content: space-between; /* Equal spacing across width */
    width: 100%;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 0;
}

.top-nav a {
    text-decoration: none;
    color: #aaa;
    transition: color 0.3s;
}

.top-nav a:hover {
    color: #fff;
}

/* Main Content & Image */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}

.image-container {
    width: 100%;
    height: 100%;
    border-radius: 20px; /* Rounded corners for the image container */
    overflow: hidden;
    position: relative; /* ensure other elements are positioned relative to this */
}

.image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
}

.corner-svg {
    position: absolute;
    fill: #e6e6e6;
    opacity: 0.9;
    z-index: 6;
    pointer-events: none;
}
.corner-svg text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    letter-spacing: 6px;
}
.corner-svg.top-left {
    top: 8px;
    left: 20px;
}
.corner-svg.bottom-right {
    bottom: -80px;
    right: 20px;
}
/* Central Logo Area */
.center-logo-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: auto;
}

.logo-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.logo-icon-wrap {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.logo-image {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

@keyframes scale-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.animate-in {
    animation: scale-bounce 520ms ease-out forwards;
}

.animate-out {
    animation: scale-bounce 420ms ease-in reverse forwards;
}

@keyframes fade-in-scale {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* Hover info card near center circle */
.hover-card{
    position:absolute;
    top:calc(50% - 100px);
    left:50%;
    transform: translateX(-50%) scale(0.9); /* 修改这里 */
    width:440px;
    background:#0d0d0d;
    border:1px solid #1f1f1f;
    border-radius:12px;
    padding:16px;
    display:none;
    z-index:7;
    box-shadow:0 12px 30px rgba(0,0,0,.4);
    opacity: 0; /* 添加透明度 */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* 添加过渡 */
}
.hover-card.show{
    display:block;
    opacity: 1;
    transform: translateX(-50%) scale(1); /* 修改这里 */
    animation: cardAppear 0.4s ease-out; /* 可选：添加动画 */
}

/* 可选的关键帧动画 */
@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.hover-icon{width:72px;height:72px;margin:0 auto 8px;border-radius:50%;background:#151515;display:flex;align-items:center;justify-content:center;overflow:hidden}
.hover-icon img{width:100%;height:100%;object-fit:contain}
.hover-title{font-weight:700;text-align:center;margin:6px 0}
.hover-tags{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.hover-tags .tag{font-size:11px;color:#ddd;background:#1a1a1a;border:1px solid #333;border-radius:999px;padding:2px 8px}
.hover-desc{color:#aaa;font-size:12px;line-height:1.5;text-align:center;margin-top:6px}
.hover-actions{display:flex;gap:8px;justify-content:center;margin-top:10px;flex-wrap:wrap}
.hover-actions .btn{font-size:12px;padding:6px 10px;border-radius:6px;border:1px solid #444;background:#222;color:#fff;text-decoration:none}
.hover-actions .btn:hover{background:#333}
.btn{font-size:12px;padding:6px 10px;border-radius:6px;border:1px solid #444;background:#222;color:#fff;text-decoration:none;display:inline-flex;align-items:center;gap:4px}
.btn:hover{background:#333}
.btn.disabled{background:#111;color:#666;border-color:#222;cursor:not-allowed}
.btn.disabled::before{content:'无';color:#666}

/* Modal for Baidu download */
.modal-backdrop{
    position:fixed;inset:0;background:rgba(0,0,0,.55);
    backdrop-filter:blur(6px);
    display:none;z-index:100;
}
.modal-backdrop.show{display:block}
.modal-dialog{
    position:relative;
    width:720px;max-width:92vw;margin:30vh auto;background:#f7f7f7;color:#222;
    border-radius:16px;padding:18px;box-shadow:0 20px 60px rgba(0,0,0,.5);
}
.modal-close{position:absolute;right:22px;top:16px;border:none;background:#333;color:#fff;width:28px;height:28px;border-radius:50%;cursor:pointer}
.modal-section{display:flex;flex-direction:column;gap:14px;margin-top:20px}
.modal-row{display:flex;justify-content:space-between;align-items:center;background:#eee;border-radius:10px;padding:12px 14px}
.modal-label{color:#555}
.modal-note{margin-top:14px;color:#444}
.modal-image img{width:100%;height:auto;border-radius:10px;margin-top:10px}

/* Bottom Carousel */
.bottom-carousel-container {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    padding: 20px 60px 100px 60px;
}

.carousel-nav {
    width: 80px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.2s;
}

.carousel-nav:hover {
    opacity: 1;
    transform: scale(1.2);
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
    margin: 0 20px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    height: 48px;
}

.carousel-track {
    display: flex;
    justify-content: center; /* Start centered */
    align-items: center;
    gap: 40px;
    transition: transform 0.5s ease;
    /* We will manipulate this with JS */
}

.carousel-item {
    font-size: 20px;
    color: #888;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.5s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    /* 添加描边效果 */
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 1);
    text-stroke: 0.5px rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    height: 48px;
}

.carousel-item.active {
    font-size: 30px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    transform: scale(1.1);
}

/* Right Sidebar Buttons */
.right-sidebar {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
    padding-right: 0; /* Remove padding to stick to edge */
    align-items: flex-end; /* Align buttons to the right */
}

.sidebar-btn {
    background-color: #444; /* Gray buttons */
    color: #fff;
    border: none;
    padding: 15px 10px;
    width: 40px;
    border-radius: 5px 0 0 5px; /* Rounded left side */
    cursor: pointer;
    font-size: 14px;
    writing-mode: vertical-lr; /* Vertical text */
    text-orientation: upright;
    letter-spacing: 4px; /* Increased letter spacing */
    transition: background-color 0.3s, width 0.3s;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.5);
    display: flex; /* Ensure centering */
    align-items: center;
    justify-content: center;
}

.sidebar-btn:hover {
    background-color: #666;
    width: 45px;
}

.sidebar-btn.active {
    background-color: #fff;
    color: #000;
    width: 50px; /* Make it slightly wider */
}

/* Footer Styles */
footer {
    padding: 15px 60px; /* Increased side padding */
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: space-between; /* Equal spacing across width */
    width: 100%;
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-items: center;
}

.separator {
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-nav ul {
        gap: 15px;
        font-size: 12px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Footer Popover */
#footer-popover{
    position: fixed;
    width: 360px;
    height: 200px;
    border-radius: 14px;
    box-shadow: 0 18px 46px rgba(0,0,0,.45);
    background: #111 center/cover no-repeat;
    display: none;
    z-index: 200;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.12);
}
#footer-popover.show{display:block}
@media (max-width: 1024px){
    #footer-popover{width:300px;height:170px}
}
@media (max-width: 640px){
    #footer-popover{width:280px;height:160px}
}
@media (min-width: 3840px) {
    .logo-circle{width:280px;height:280px}
    .logo-icon-wrap{width:82%;height:82%}
    .hover-card{width:520px}
    .carousel-track{gap:60px}
    .carousel-item{font-size:28px}
    .carousel-item.active{font-size:38px}
    .carousel-track-wrapper{height:52px}
}
@media (min-width: 2560px) and (max-width: 3839px) {
    .logo-circle{width:240px;height:240px}
    .logo-icon-wrap{width:80%;height:80%}
    .hover-card{width:460px}
    .carousel-track{gap:50px}
    .carousel-item{font-size:24px}
    .carousel-item.active{font-size:34px}
    .carousel-track-wrapper{height:50px}
}
@media (min-width: 1920px) and (max-width: 2559px) {
    .logo-circle{width:220px;height:220px}
    .logo-icon-wrap{width:80%;height:80%}
    .hover-card{width:420px}
    .carousel-track{gap:44px}
    .carousel-item{font-size:22px}
    .carousel-item.active{font-size:32px}
    .carousel-track-wrapper{height:46px}
}
@media (max-width: 1024px) {
    .logo-circle{width:180px;height:180px}
    .logo-icon-wrap{width:80%;height:80%}
    .hover-card{width:360px}
    .carousel-track{gap:28px}
    .carousel-item{font-size:18px}
    .carousel-item.active{font-size:26px}
    .carousel-track-wrapper{height:44px}
    .right-sidebar{top:auto;bottom:20px;transform:none;flex-direction:row;padding-right:10px}
    .sidebar-btn{width:38px}
}
@media (max-width: 640px) {
    .logo-circle{width:150px;height:150px}
    .logo-icon-wrap{width:78%;height:78%}
    .hover-card{width:320px}
    .carousel-track{gap:22px}
    .carousel-item{font-size:16px}
    .carousel-item.active{font-size:22px}
    .carousel-track-wrapper{height:40px}
    .sidebar-btn{width:32px;letter-spacing:2px}
}
