/* ============================================
   Responsive
   ============================================ */

@media screen and (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .banner-container {
        height: min(48vw, 360px);
        border-radius: 0;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header-height: 44px;
    }

    .header-bar__logo,
    .logo {
        max-height: 28px;
        max-width: 60px;
    }

    .header-bar__title,
    .header .platform-name {
        font-size: 15px;
        padding: 0 120px;
    }

    .header-icon-btn {
        width: 36px;
        height: 36px;
    }

    .lang-picker__globe {
        font-size: 20px;
    }

    .banner-container {
        height: min(52vw, 300px);
        min-height: 200px;
        border-radius: 0;
    }

    .banner-prev,
    .banner-next {
        width: 38px;
        height: 38px;
    }

    .banner-controls {
        padding: 0 10px;
    }

    .banner-indicators {
        bottom: 16px;
    }

    .notice-content {
        padding: 10px 12px;
    }

    .notice-scroll-text {
        font-size: 13px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .section-subtitle {
        font-size: 0.8125rem;
    }

    .access-section,
    .links-section {
        padding: 1.25rem 0 1.5rem;
    }

    .platform-links-list {
        grid-template-columns: 1fr;
    }

    .intro-images-grid {
        grid-template-columns: 1fr;
    }

    .platform-link-card {
        padding: 12px 14px;
        gap: 12px;
    }

    .platform-link-image-wrapper {
        width: 42px;
        height: 42px;
    }

    .platform-link-name-cell {
        font-size: 0.9375rem;
    }

    .platform-link-btn {
        padding: 9px 16px;
        font-size: 0.8125rem;
    }

    .intro-images-grid {
        gap: 10px;
    }

    .footer {
        padding: 1.25rem 0 1.75rem;
    }

    .copyright {
        font-size: 12px;
    }

    .popup-body {
        padding: 1.5rem 1.25rem 1rem;
    }

    .popup-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem 1.5rem;
    }

    .popup-confirm {
        width: 100%;
    }

    .floating-service {
        width: 52px;
        height: 52px;
        bottom: 18px;
        right: 18px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .platform-name {
        font-size: 0.9375rem;
    }

    .banner-container {
        height: min(56vw, 260px);
    }

    .platform-link-card {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .platform-link-card-main {
        width: 100%;
    }

    .platform-link-btn {
        width: 100%;
        text-align: center;
    }

    .section-head {
        margin-bottom: 1rem;
    }
}

/* ============================================
   Desktop / PC layout (≥1024)
   ============================================ */
@media screen and (min-width: 1024px) {
    :root {
        --header-height: 64px;
        --ldy-desk-width: 1200px;
    }

    body {
        -webkit-user-select: text;
        user-select: text;
    }

    .container {
        max-width: var(--ldy-desk-width);
        padding: 0 32px;
    }

    .header {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .header .container,
    .header-bar.container {
        max-width: var(--ldy-desk-width);
        padding: 0 32px;
    }

    .header-bar {
        height: var(--header-height);
        padding: 0;
        gap: 24px;
    }

    .header-bar__brand {
        flex: 1;
        min-width: 0;
        gap: 14px;
    }

    .header-bar__logo,
    .logo {
        max-height: 40px;
        max-width: 120px;
    }

    /* PC 顶栏：品牌靠左，不再手机式居中标题 */
    .header-bar__title,
    .header .platform-name {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        padding: 0;
        justify-content: flex-start;
        text-align: left;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: -0.02em;
        max-width: min(480px, 42vw);
        pointer-events: auto;
    }

    .header-bar__side--right,
    .header-actions {
        min-width: 0;
        gap: 8px;
    }

    .header-icon-btn {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        border: 1px solid var(--border-color);
        background: var(--bg-card);
    }

    .header-icon-btn:hover {
        border-color: var(--accent-color);
    }

    .lang-picker__panel {
        min-width: 240px;
        max-height: min(420px, 70vh);
    }

    /* 全宽 Hero 横幅 */
    .hero {
        position: relative;
    }

    .hero__banner-wrap,
    .banner-section {
        width: 100%;
    }

    .banner-container {
        height: clamp(360px, 38vw, 520px);
        min-height: 360px;
        max-width: none;
        border-radius: 0;
    }

    .banner-indicators {
        bottom: 28px;
    }

    .hero__panel {
        max-width: var(--ldy-desk-width);
        margin: -72px auto 0;
        padding: 28px 32px 24px;
        position: relative;
        z-index: 3;
        text-align: left;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 18px 48px var(--shadow-lg);
    }

    .hero__brand {
        display: block;
        margin-bottom: 12px;
    }

    .hero__badge {
        font-size: 13px;
        padding: 7px 16px;
    }

    .hero__tagline {
        margin-top: 14px;
        max-width: 640px;
        font-size: 1.25rem;
        line-height: 1.5;
    }

    .notice-strip .container,
    .notice-section .container {
        padding-top: 16px;
        padding-bottom: 8px;
    }

    .notice-content {
        padding: 14px 20px;
        border-radius: 14px;
    }

    .notice-scroll-text {
        font-size: 15px;
    }

    /* 左入口列表 + 右亮点图：更像电脑端门户 */
    .ldy-desk-columns {
        display: flex;
        flex-wrap: wrap;
        gap: 28px 36px;
        align-items: flex-start;
        max-width: var(--ldy-desk-width);
        margin: 0 auto;
        padding: 8px 32px 40px;
        box-sizing: border-box;
    }

    .ldy-desk-columns > .access-section,
    .ldy-desk-columns > .gallery-section,
    .ldy-desk-columns > .links-section,
    .ldy-desk-columns > .intro-section {
        flex: 1 1 420px;
        min-width: 0;
    }

    .ldy-desk-columns .container {
        max-width: none;
        padding: 0;
    }

    .access-section,
    .links-section {
        padding: 0.5rem 0 0;
    }

    .gallery-section,
    .intro-section {
        padding: 0.5rem 0 0;
    }

    .section-head {
        text-align: left;
        margin-bottom: 1.1rem;
    }

    .section-head--center {
        text-align: left;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9375rem;
    }

    .platform-links-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .platform-link-card {
        flex-direction: row;
        align-items: center;
        gap: 18px;
        padding: 16px 18px;
        border-radius: 16px;
    }

    .platform-link-card:hover {
        transform: translateY(-2px);
    }

    .platform-link-card-main {
        flex: 1;
        min-width: 0;
        align-items: center;
    }

    .platform-link-image-wrapper {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .platform-link-name-cell {
        font-size: 1.0625rem;
    }

    .platform-link-btn {
        width: auto;
        min-width: 128px;
        padding: 12px 22px;
        flex-shrink: 0;
    }

    .intro-images-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .intro-image-item {
        aspect-ratio: 16 / 10;
        border-radius: 16px;
    }

    .platform-image {
        border-radius: 16px;
    }

    .footer .container {
        max-width: var(--ldy-desk-width);
        padding: 0 32px;
    }

    .footer {
        padding: 2rem 0 2.5rem;
        border-top: 1px solid var(--border-color);
    }

    .floating-service {
        width: 64px;
        height: 64px;
        bottom: 32px;
        right: 32px;
    }
}

@media screen and (min-width: 1440px) {
    :root {
        --ldy-desk-width: 1280px;
    }

    .banner-container {
        height: clamp(400px, 34vw, 560px);
    }

    .ldy-desk-columns {
        gap: 32px 48px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
    .container {
        max-width: 920px;
    }

    .intro-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 14px;
    }

    .platform-links-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (orientation: landscape) and (max-height: 500px) {
    .banner-container {
        height: 200px;
        min-height: 160px;
    }
}

@media print {
    .header-actions,
    .banner-controls,
    .banner-indicators,
    .floating-service,
    .popup-modal {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* 移动端滚动性能：减弱固定背景动画与模糊，内容默认可见 */
@media (hover: none), (pointer: coarse), (max-width: 768px) {
    .reveal,
    .platform-link-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .ldy-bg__orb {
        filter: blur(48px);
        animation: none;
        opacity: 0.28;
    }

    .ldy-bg__grid {
        animation: none;
        opacity: 0.35;
    }

    .platform-link-card,
    .notice-content,
    .popup-overlay {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .floating-service__inner {
        animation: none;
    }

    html.is-scrolling .ldy-bg__orb,
    html.is-scrolling .ldy-bg__grid,
    html.is-scrolling .notice-scroll-text.scrolling,
    html.is-scrolling .floating-service__inner {
        animation-play-state: paused !important;
    }
}
