﻿:root {
    /*--headerBackground: #3D2B4D;*/
    /*--mainBackground: linear-gradient(180deg, rgba(45, 28, 70, 0.85) 0%, rgba(25, 14, 38, 0.92) 100%);*/
    /*--logoCardBackground: rgba(177, 156, 217, 0.15);*/
    /*--imgTextBackground: rgba(33, 21, 49, 0.92);*/
    /*--buttonBackground: linear-gradient(90deg, #8F6BFF 0%, #C5A9FF 100%);*/
    /*--buttonFontColor: #140621;*/
    --headerBackground: #064E3B;
    --mainBackground: #006B3F;
    --logoCardBackground: #0A0A0A;
    --imgTextBackground: #006B3F;
    --buttonBackground: linear-gradient(90deg, #FFD700 0%, #B8860B 100%);
    --buttonFontColor: #000000;
}
@media (display-mode: standalone) {
    html {
        background-color: #2D1B3D;
    }
}

::v-deep .uni-navbar {
    .uni-navbar--border {
        border: unset;
    }

    .uni-nav-bar-text {
        font-size: 16px;
        font-weight: bold;
    }
}

.notic-user-tip-warp {
    width: 94% !important;
    position: absolute;
    top: 2% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    box-sizing: border-box !important;
}

.uni-tabbar {
    width: min(100%, 30rem);
    left: calc(50% - min(50%, 15rem)) !important;
}

.uni-page-head {
    width: min(100%, 30rem);
    left: calc(50% - min(50%, 15rem)) !important;
}

.uni-navbar__content {
    width: min(100%, 30rem);
    left: calc(50% - min(50%, 15rem)) !important;
}


/* #app{
overflow: scroll;
} */
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    color: #F8F4FF;
    background: linear-gradient(180deg, #10051F 0%, #1B1030 45%, #2D1B3D 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    background: #080213;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* 图片响应式优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 防止图片加载时的布局偏移 */
img[src=""],
img:not([src]) {
    opacity: 0;
}


/* 加载动画样式 */
.loading-container {
    position: fixed;
    z-index: 99999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(45, 27, 61, 0.9);
    text-align: center;
    border-radius: 5px;
    width: 98px;
    height: 98px;
    display: none;
    /* 默认隐藏 */
    justify-content: center;
    align-items: center;
}

.rotating-image {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.a-image {
    width: 80px !important;
    height: 80px !important;
    animation: rotate 1s linear infinite;
}

.b-image {
    width: 50px;
    height: 50px;
    -o-object-fit: contain;
    object-fit: contain;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#app {
    position: relative;
}

uni-toast {
    z-index: 9999999 !important;
}

/* 遮罩层样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.5); */
    z-index: 99998; /* 确保遮罩层在加载动画下方 */
    display: none;
}

/* 头部导航栏样式 */
.main-header {
    width: 100%;
    background-color: var(--headerBackground);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-container {
    width: 100%;
    max-width: min(30rem, 100vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    /*padding: 0.75rem clamp(0.5rem, 3vw, 1rem);*/
    box-sizing: border-box;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    flex: 1;
}

.logo-img {
    height: 100%;
    width: auto;
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-item:hover {
    color: #B19CD9;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #B19CD9;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* 顶部图片轮播区域样式 */
.page-content {
    width: 100%;
    max-width: 100vw;
    padding: 1.1rem clamp(0.5rem, 2vw, 1rem) 1.8rem;
    background: var(--mainBackground);
    box-shadow: 0 20px 60px rgba(4, 1, 10, 0.55);
    box-sizing: border-box;
    overflow-x: hidden;
}

.top-carousel-section,
.logo-content-section,
.image-text-section {
    background: var(--imgTextBackground);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(5, 2, 15, 0.3);
}

.top-carousel-section {
    width: 100%;
    max-width: min(32rem, calc(100vw - 2rem));
    margin: 1.1rem auto;
    padding: 1rem clamp(0.75rem, 3vw, 1.25rem);
    box-sizing: border-box;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    background-color: rgba(177, 156, 217, 0.1);
    box-sizing: border-box;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 732 / 320;
    min-height: clamp(180px, 25vw, 220px);
    max-height: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
    display: block;
    text-decoration: none;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-image {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    display: block;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.indicator.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 轮播切换按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(45, 27, 61, 0.7);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-btn:hover {
    background-color: rgba(177, 156, 217, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-thumb-row {
    width: 100%;
    max-width: 100%;
    margin: 0.3rem 0 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    box-sizing: border-box;
}

.carousel-thumb {
    display: block;
    flex: 1 1 50%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 5, 2, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-thumb-full {
    width: 100%;
    margin-top: 0.3rem;
}

.carousel-thumb:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 24px rgba(5, 2, 15, 0.5);
}

/* 滚动横幅 */
.scroll-banner {
    width: 100%;
    max-width: min(30rem, calc(100vw - 2rem));
    margin: 0.75rem auto 1rem;
    padding: 0.45rem clamp(0.6rem, 3vw, 0.9rem);
    box-sizing: border-box;
    background: rgba(177, 156, 217, 0.18);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.scroll-track {
    display: flex;
    white-space: nowrap;
    gap: 2rem;
    animation: scroll-left 18s linear infinite;
    color: #f0e5ff;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.scroll-track span {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* Entry Modal */
.entry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 2, 19, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.entry-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.entry-modal__content {
    width: min(92vw, 360px);
    background: linear-gradient(160deg, rgba(55, 34, 92, 0.95), rgba(25, 12, 41, 0.98));
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 70px rgba(3, 0, 10, 0.55);
    padding: clamp(1rem, 4vw, 1.4rem);
    position: relative;
    text-align: center;
    color: #F8F4FF;
}

.entry-modal__content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.entry-modal__content p {
    margin: 0 0 1.1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

.entry-modal__image {
    display: block;
    margin-bottom: 0.9rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.entry-modal__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.entry-modal__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.1rem;
    border-radius: 999px;
    background: linear-gradient(100deg, #9E6FFF 0%, #FFC9FF 100%);
    color: #140621;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-modal__action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(158, 111, 255, 0.4);
}

.entry-modal__close {
    position: absolute;
    right: 0.9rem;
    top: 0.6rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.entry-modal__close:hover {
    color: #ffffff;
}

@media (min-width: 768px) {
    .entry-modal__content {
        width: min(420px, 70vw);
    }
}

@media (max-width: 480px) {
    .entry-modal__content {
        width: min(90vw, 300px);
        max-height: calc(100vh - 2rem);
        padding: 0.8rem;
        border-radius: 16px;
        overflow-y: auto;
    }

    .entry-modal__image {
        margin-bottom: 0.5rem;
    }

    .entry-modal__content h3 {
        font-size: 1.05rem;
    }

    .entry-modal__content p {
        font-size: 0.85rem;
    }

    .entry-modal__action {
        min-height: 1.7rem;
        font-size: 0.78rem;
    }

    .entry-modal__close {
        right: 0.65rem;
        top: 0.45rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .entry-modal__content {
        width: 94vw;
        padding: 0.65rem;
        border-radius: 14px;
    }

    .entry-modal__action {
        min-height: 1.55rem;
        font-size: 0.72rem;
    }

    .entry-modal__close {
        right: 0.6rem;
        top: 0.4rem;
        font-size: 1.1rem;
    }
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Logo内容区域样式 */
.logo-content-section {
    width: 100%;
    max-width: min(32rem, calc(100vw - 2rem));
    margin: 1.4rem auto;
    padding: 1.1rem clamp(0.75rem, 3vw, 1rem);
    box-sizing: border-box;
}

.logo-content-section span {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(128px, 30vw), 1fr));
    gap: clamp(0.75rem, 3vw, 1.25rem);
    justify-items: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo-card {
    width: 100%;
    max-width: min(140px, 28vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    text-align: center;
    background-color: var(--logoCardBackground);
    border-radius: 16px;
    padding: clamp(0.5rem, 2vw, 0.6rem) clamp(0.4rem, 2vw, 0.5rem) clamp(0.7rem, 2vw, 0.8rem);
    box-sizing: border-box;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

.logo-thumb {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(15, 5, 28, 0.4);
    padding: 0.35rem;
    box-sizing: border-box;
}

/* 固定位置的第一个logo */
.logo-fixed {
    order: 0;
}

/* 需要打乱的logo */
.logo-shuffle {
    order: 1;
}

.logo-card:hover {
    transform: translateY(-4px);
    background-color: rgba(177, 156, 217, 0.22);
    border-color: rgba(255, 255, 255, 0.15);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.logo-card:hover .logo-image {
    transform: scale(1.06);
}

.logo-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.32rem 0.42rem;
    background: var(--buttonBackground);
    color: var(--buttonFontColor);
    font-size: 0.76rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    min-height: 1.65rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* 巴西热门网站 */
.popular-sites-section {
    width: 100%;
    max-width: min(32rem, calc(100vw - 2rem));
    margin: 0.8rem auto 1.2rem;
    padding: 0.85rem clamp(0.75rem, 3vw, 1rem) 1.1rem;
    /*background: rgba(27, 18, 39, 0.92);*/
    background: var(--imgTextBackground);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 36px rgba(3, 0, 10, 0.35);
    box-sizing: border-box;
}

.popular-sites-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: #F9F4FF;
    letter-spacing: 0.03em;
}

.popular-sites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.popular-site-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    color: #F8F4FF;
    background: var(--logoCardBackground);
    /*background: rgba(142, 108, 255, 0.16);*/
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.popular-site-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
    /*background: rgba(142, 108, 255, 0.25);*/
}

.site-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.site-tag {
    font-size: 0.78rem;
    opacity: 0.85;
}

/* 社交媒体 */
.social-section {
    width: 100%;
    max-width: min(32rem, calc(100vw - 2rem));
    margin: 0.8rem auto 1.5rem;
    padding: 0.9rem clamp(0.75rem, 3vw, 1rem) 1.1rem;
    /*background: rgba(24, 15, 36, 0.92);*/
    background: var(--imgTextBackground);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(5, 1, 12, 0.35);
    box-sizing: border-box;
}

.social-title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    color: #F9F4FF;
    letter-spacing: 0.02em;
}

.social-icons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-icon svg {
    width: 16px;
    height: 16px;
    fill: #F8F4FF;
}

.social-icon:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.18);
}

.social-contact {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #D9D2FF;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.social-contact a {
    color: #E5E0FF;
    text-decoration: none;
    border-bottom: 1px dashed rgba(229, 224, 255, 0.4);
}

/* Entry Modal */
.entry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 2, 19, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.entry-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.entry-modal__content {
    width: min(88vw, 320px);
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    /*background: linear-gradient(160deg, rgba(55, 34, 92, 0.95), rgba(25, 12, 41, 0.98));*/
    background: var(--headerBackground);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 22px 60px rgba(3, 0, 10, 0.5);
    padding: clamp(0.9rem, 4vw, 1.2rem);
    position: relative;
    text-align: center;
    color: #F8F4FF;
    box-sizing: border-box;
}

.entry-modal__content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.entry-modal__content p {
    margin: 0 0 1.1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

.entry-modal__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.1rem;
    border-radius: 999px;
    background: var(--buttonBackground);
    color: var(--buttonFontColor);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-modal__action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(158, 111, 255, 0.4);
}

.entry-modal__close {
    position: absolute;
    right: 0.9rem;
    top: 0.6rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.entry-modal__close:hover {
    color: #ffffff;
}

.logo-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(143, 107, 255, 0.35);
}

.logo-action:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 图片文字内容部分样式 */
.image-text-section {
    width: 100%;
    max-width: min(32rem, calc(100vw - 2rem));
    margin: 1.4rem auto;
    padding: 1.1rem clamp(0.75rem, 3vw, 1rem);
    box-sizing: border-box;
}

.image-text-container {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.image-text-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--logoCardBackground);
    border-radius: 12px;
    padding: 1.1rem;
    box-sizing: border-box;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.image-text-item:hover {
    transform: translateY(-5px);
    /*background-color: rgba(177, 156, 217, 0.18);*/
}

.content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.image-text-item:hover .content-image {
    transform: scale(1.02);
}

.content-text {
    color: #ffffff;
}

.content-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.4;
}

.content-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* ========== 响应式设计 ========== */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .top-images-section,
    .logo-content-section,
    .image-text-section {
        padding: 0.875rem;
    }

    .logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.875rem;
    }

    .logo-item {
        width: 120px;
        height: 120px;
    }
}

/* 移动设备 (481px - 768px) */
@media (max-width: 768px) {
    .main-header {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    .header-container {
        padding: 0.625rem 1rem;
    }

    .header-logo {
        height: 36px;
    }

    .logo-img {
        max-height: 36px;
    }

    .top-carousel-section {
        padding: 1rem;
        margin-top: 1rem;
    }

    .carousel-container {
        max-width: 100%;
    }

    .carousel-wrapper {
        height: auto;
        aspect-ratio: 732 / 320;
        min-height: clamp(160px, 22vw, 200px);
        max-height: 100%;
        width: 100%;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-indicators {
        bottom: 10px;
    }

    .carousel-thumb-row {
        gap: clamp(0.35rem, 2vw, 0.45rem);
        padding: 0 clamp(0.4rem, 2vw, 0);
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .logo-content-section {
        margin: 1.2rem auto;
        padding: 0 0.9rem;
    }

    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(0.5rem, 2vw, 0.875rem);
    }

    .logo-card {
        max-width: 100%;
        padding: 0.55rem clamp(0.35rem, 2vw, 0.45rem) 0.7rem;
        gap: 0.5rem;
    }

    .logo-thumb {
        padding: 0.3rem;
    }

    .logo-action {
        min-height: 1.5rem;
        font-size: 0.72rem;
        padding: 0.3rem 0.4rem;
    }

    .image-text-section {
        margin: 1.2rem auto;
        padding: 0 0.9rem;
    }

    .image-text-container {
        gap: 1.5rem;
    }

    .image-text-item {
        padding: 0.9rem;
        gap: 0.9rem;
    }

    .content-text h3 {
        font-size: 1.15rem;
    }

    .content-text p {
        font-size: 0.85rem;
    }

    .scroll-banner {
        margin: 0.6rem auto 0.9rem;
        padding: 0.45rem 0.75rem;
    }

    .scroll-track {
        font-size: 0.85rem;
        animation-duration: 16s;
    }

    .social-section {
        margin: 0.7rem auto 1.1rem;
        padding: 0.8rem 0.9rem 1rem;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .popular-sites-section {
        margin: 0.7rem auto 1rem;
        padding: 0.75rem 0.85rem 0.95rem;
    }

    .popular-sites-grid {
        gap: 0.5rem;
    }

    .site-name {
        font-size: 0.9rem;
    }

    .site-tag {
        font-size: 0.75rem;
    }
}

/* 小屏移动设备 (最大480px) */
@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 0.75rem;
    }

    .header-logo {
        height: 32px;
    }

    .logo-img {
        max-height: 32px;
    }

    .top-carousel-section {
        padding: 0.875rem;
        margin-top: 0.75rem;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .carousel-prev {
        left: 8px;
    }

    .carousel-next {
        right: 8px;
    }

    .carousel-indicators {
        bottom: 8px;
        gap: 6px;
    }

    .carousel-thumb-row {
        gap: clamp(0.3rem, 2vw, 0.35rem);
        padding: 0 clamp(0.35rem, 2vw, 0);
    }

    .indicator {
        width: 7px;
        height: 7px;
    }

    .logo-content-section {
        margin: 1.1rem auto;
        padding: 0 0.75rem;
    }

    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(0.5rem, 2vw, 0.75rem);
    }

    .logo-card {
        padding: 0.5rem clamp(0.3rem, 2vw, 0.35rem) 0.65rem;
        gap: 0.45rem;
    }

    .logo-thumb {
        padding: 0.25rem;
    }

    .logo-action {
        min-height: 1.4rem;
        font-size: 0.7rem;
        padding: 0.28rem 0.38rem;
    }

    .image-text-section {
        margin: 1.1rem auto;
        padding: 0 0.75rem;
    }

    .image-text-container {
        gap: 1.3rem;
    }

    .image-text-item {
        padding: 0.9rem;
        gap: 0.9rem;
    }

    .content-text h3 {
        font-size: 1.05rem;
        margin-bottom: 0.375rem;
    }

    .content-text p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .scroll-banner {
        margin: 0.6rem auto 0.85rem;
        padding: 0.45rem 0.65rem;
        border-radius: 22px;
    }

    .scroll-track {
        font-size: 0.78rem;
        animation-duration: 13s;
    }

    .popular-sites-section {
        margin: 0.6rem auto 0.9rem;
        padding: 0.65rem 0.7rem 0.85rem;
    }

    .popular-sites-grid {
        gap: 0.45rem;
    }

    .site-name {
        font-size: 0.86rem;
    }

    .site-tag {
        font-size: 0.72rem;
    }
}

/* 超小屏设备 (最大360px) */
@media (max-width: 360px) {
    .header-container {
        padding: 0.5rem;
    }

    .header-logo {
        height: 28px;
    }

    .logo-img {
        max-height: 28px;
    }

    .top-carousel-section {
        padding: clamp(0.5rem, 2vw, 0.75rem);
        margin: 0.75rem auto;
    }

    .logo-content-section,
    .image-text-section {
        padding: clamp(0.5rem, 2vw, 0.75rem);
    }

    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(0.4rem, 2vw, 0.5rem);
    }

    .logo-card {
        padding: 0.4rem clamp(0.25rem, 2vw, 0.3rem) 0.55rem;
        gap: 0.35rem;
    }

    .logo-thumb {
        padding: 0.2rem;
    }

    .carousel-thumb-row {
        gap: clamp(0.2rem, 2vw, 0.25rem);
        padding: 0 clamp(0.3rem, 2vw, 0);
    }

    .logo-action {
        min-height: 1.3rem;
        font-size: 0.66rem;
        padding: 0.25rem 0.35rem;
    }

    .image-text-item {
        padding: 0.625rem;
    }

    .content-text h3 {
        font-size: 1rem;
    }

    .content-text p {
        font-size: 0.75rem;
    }

    .scroll-track {
        font-size: 0.75rem;
        animation-duration: 12s;
    }

    .popular-sites-section {
        padding: 0.45rem 0.5rem 0.7rem;
    }

    .popular-sites-grid {
        gap: 0.35rem;
    }

    .popular-site-card {
        padding: 0.5rem 0.55rem;
    }

    .site-name {
        font-size: 0.8rem;
    }

    .site-tag {
        font-size: 0.68rem;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.65rem;
    }

    .logo-card {
        padding: 0.5rem 0.35rem 0.6rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .logo-card,
    .image-text-item {
        cursor: pointer;
    }

    .logo-card:active {
        transform: translateY(-2px) scale(0.98);
    }

    .image-text-item:active {
        transform: translateY(-2px);
    }
}
