* { margin:0; padding:0; box-sizing:border-box; }
html { overflow-x: hidden; }
body { background:#0e0e0e; font-family:system-ui,sans-serif; padding-bottom:50px; overflow-x: hidden; }
[v-cloak] {display: none;}
.top-bar { display:flex; background:#0e0e0e; color:#fff; height:50px; align-items:center; justify-content:space-between; padding:0 15px; position:relative; z-index:100; width:calc(100vw / 1.5); margin:auto; }
.top-bar .logo { font-size:16px; font-weight:bold; cursor:pointer; position:absolute; left:50%; transform:translateX(-50%); }
.top-bar .menu-toggle { z-index:101; }
.top-bar .pc-search { display:flex; align-items:center; flex:1; max-width:400px; margin-left:20px; background:#1a252f; border-radius:4px; }
.top-bar .mobile-search { display:none; align-items:center; gap:10px; }
.pc-search-input { width:100%; padding:6px 12px; border:none; background:transparent; color:#fff; font-size:14px; outline:none; }
.pc-search-btn { background:none; border:none; font-size:16px; color:#999; cursor:pointer; padding:0 12px; border-left:1px solid #555; }
.pc-search-input::placeholder { color:#888; }
.pc-search-input:focus { border-color:#409eff; }
.mobile-search-box { position:absolute; top:50%; right:3%; transform:translateY(-50%); display:flex; align-items:center; gap:8px; background:#2c3e50; padding:0 10px; z-index:101; width:52%; }
.mobile-search-input { flex:1; padding:6px 12px; border:1px solid #555; border-radius:4px; background:#1a252f; color:#fff; font-size:14px; outline:none; }
.mobile-search-input::placeholder { color:#888; }
.mobile-search-input:focus { border-color:#409eff; }
.search-btn { background:none; border:none; font-size:18px; color:#fff; cursor:pointer; padding:0 10px; z-index:102; }
.close-search { background:none; border:none; font-size:16px; color:#999; cursor:pointer; padding:0; }
.hamburger { font-size:22px; background:none; border:none; color:#fff; cursor:pointer; outline:none; }
a, a:hover, a:visited, a:active { text-decoration: none; }
.a-click { height:35px; line-height:35px; background:#0061b7; color:#fff; text-align:center; border-radius:5px; text-decoration:none; font-size:12px; display:block; }
.top-nav { background:#0e0e0e; padding:5px; top:0; z-index:100; box-shadow:0 2px 8px rgba(0,0,0,0.05); }
.nav-container { margin-top:10px; display:grid; grid-template-columns:repeat(auto-fill, minmax(100px,1fr)); gap:5px; }
.content { width:67%; margin:auto; }
.btn-grid-next { display:grid; grid-template-columns:repeat(auto-fill, minmax(100px,1fr)); gap:2px; }
.footer-note { text-align:center; font-size:0.7rem; color:#b9c3d4; margin-top:1rem; }
.a-link {
    height: 25px;
    line-height: 25px;
    background: #000000;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0 6px;
    margin: 2px;
    flex-shrink: 0;
}
.tags-wrapper {
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 5px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tags-wrapper::-webkit-scrollbar {
    display: none;
}
.tags-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px;
}
.tags-scroll::after {
    content: "";
    flex: auto;
}

.ad-carousel-3d {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    perspective: 1000px;
    background: transparent;
}

.ad-carousel-3d .carousel-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.ad-carousel-3d .ad-item-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    background-size: 400% 100%;
    animation: rainbowMove 3s linear infinite;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                opacity 0.8s ease;
    transform: translateZ(-100px) rotateY(90deg);
    opacity: 0;
}

.ad-carousel-3d .ad-item-3d.active {
    transform: translateZ(0) rotateY(0deg);
    opacity: 1;
    z-index: 10;
}

.ad-carousel-3d .ad-item-3d.prev {
    transform: translateZ(-100px) rotateY(-90deg);
    opacity: 0;
    z-index: 5;
}

.ad-carousel-3d .ad-item-3d.next {
    transform: translateZ(-100px) rotateY(90deg);
    opacity: 0;
    z-index: 5;
}

.ad-carousel-3d .ad-item-3d span {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 0 3px #000;
}

.ad-carousel-3d .ad-indicators {
    position: absolute;
    bottom: 5px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 20;
}

.ad-carousel-3d .ad-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.ad-carousel-3d .ad-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.ad-carousel-3d .ad-indicator.active {
    background: #fff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.ad-gradient-1 { background: linear-gradient(90deg, #ff0000, #ff7700, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3); }
.ad-gradient-2 { background: linear-gradient(90deg, #00ff00, #00ffff, #0080ff, #8000ff, #ff00ff, #ff0080, #ff0000); }
.ad-gradient-3 { background: linear-gradient(90deg, #ffff00, #ff8c00, #ff0000, #ff00ff, #00ffff, #00ff00, #ffff00); }

@keyframes rainbowMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

.back-to-top {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #e97132;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.back-to-top:hover {
    background: #d96022;
    transform: translateY(-3px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.lazy-image {
    background: #1a1a1a;
}

@media (max-width:768px) {
    .nav-container { grid-template-columns:repeat(5,1fr); }
    .content { width:100%; }
    .btn-grid-next { grid-template-columns:repeat(6,1fr); }
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 70px;
        right: 15px;
        font-size: 20px;
    }
}

@media (max-width:680px) {
    .top-bar { background:#2c3e50; width:100vw; }
    .top-bar .pc-search { display:none; }
    .top-bar .mobile-search { display:flex; }
    .logo { z-index:102; }
}