/* ====================
   基础样式
   ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    overflow-x: hidden;
}

/* ====================
   加载和错误状态
   ==================== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #1D2123;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(250, 205, 102, 0.3);
    border-top: 3px solid #FACD66;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.failure {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #1D2123;
    padding: 32px;
    z-index: 9999;
}

.error-message {
    color: var(--text-color);
    font-size: 16px;
    text-align: center;
    max-width: 600px;
    font-family: var(--font-family);
}

.hidden {
    display: none !important;
}

/* ====================
   通用容器样式
   ==================== */
.section-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 30px;
    padding-left: 20px;
}

.section-title {
    font-size: 64px;
    font-weight: bold;
    line-height: 1.1;
    color: var(--text-color);
}

.more-link {
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.more-link:hover {
    color: var(--text-hover);
}

.section-description {
    padding-left: 80px;
    padding-top: 5px;
}

.section-description p {
    font-size: 24px;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 8px;
}

/* ====================
   1. Top Slogan 容器
   ==================== */
.section-fullscreen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 0;
}

.slogan-container {
    position: relative;
    width: 80%;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: visible;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1),
                0 8px 16px rgba(0, 0, 0, 0.2),
                0 16px 48px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    margin-top: 10px;
}

.slogan-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    border-radius: 16px;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.15) 15%,
        rgba(0, 0, 0, 0.25) 30%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0.45) 60%,
        rgba(0, 0, 0, 0.55) 75%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

/* ====================
   2. Introduction 容器
   ==================== */
.section-introduction {
    position: relative;
    width: 100%;
    min-height: 50vh;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.introduction-content {
    position: relative;
    width: 80%;
    max-width: 1280px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slogan-content {
    position: relative;
    width: 270px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.introduction-content .logo {
    width: 160px;
    height: 120px;
    object-fit: cover;
    filter: brightness(1.1) opacity(0.55);
    margin-bottom: 4px;
}

.introduction-content .main-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0 0 4px 0;
    line-height: 1;
    color: var(--text-color);
    text-align: justify;
    text-align-last: justify;
    white-space: nowrap;
    width: 270px;
}

.introduction-content .subtitle {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0 0 12px 0;
    color: var(--text-color);
    text-align: justify;
    text-align-last: justify;
    white-space: nowrap;
    width: 270px;
    padding: 2px;
}

.introduction-text {
    font-size: 18px;
    line-height: 1.8;
    font-weight: 400;
    max-width: 800px;
    margin: 0;
    color: var(--text-color);
    text-align: justify;
}

/* ====================
   3. Second 容器（消费品牌 - 图片轮播）
   ==================== */
#section-second {
    background-color: #000000;
    min-height: 100vh;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

.shared-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.shared-slides {
    display: flex;
    height: 100%;
    position: relative;
}

.shared-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
    background-color: #000;
    border-radius: 12px;
    will-change: opacity;
}

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

.shared-slide.prev-active {
    opacity: 1;
    z-index: 1;
    transition: opacity 0.6s ease-in-out;
}

.shared-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.shared-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 8px;
    z-index: 3;
}

.shared-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.shared-dot.active {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.shared-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.shared-slide-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 3;
}

.shared-slide-caption h3 {
    font-size: 16px;
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* ====================
   4. Third 容器（工业产品 - 卡片轮播）
   ==================== */
#section-third {
    background-color: #000000;
    min-height: 100vh;
}

/* Third Works轮播样式（复用works.css的样式） */
.education-works-carousel {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.education-works-carousel .app__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: blur(8px);
    pointer-events: none;
    overflow: hidden;
    border-radius: 12px;
}

.education-works-carousel .app__bg::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1;
    opacity: 0.6;
}

.education-works-carousel .app__bg__image {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateX(var(--image-translate-offset, 0));
    width: 180%;
    height: 180%;
    transition: transform 1000ms ease, opacity 1000ms ease;
    overflow: hidden;
    opacity: 0;
}

.education-works-carousel .app__bg__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.education-works-carousel .app__bg__image.current--image {
    opacity: 1;
    --image-translate-offset: 0;
}

.education-works-carousel .app__bg__image.previous--image {
    opacity: 0;
    --image-translate-offset: -25%;
}

.education-works-carousel .app__bg__image.next--image {
    opacity: 0;
    --image-translate-offset: 25%;
}

.education-works-carousel .cards__wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    z-index: 10;
}

.education-works-carousel .card {
    --card-width: 180px;
    --card-height: 270px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateX(var(--card-translateX-offset, 0))
                translateY(var(--card-translateY-offset, 0))
                rotateY(var(--card-rotation-offset, 0))
                scale(var(--card-scale-offset, 1));
    width: var(--card-width);
    height: var(--card-height);
    transition: transform 800ms ease;
    cursor: pointer;
    border-radius: 8px;
}

.education-works-carousel .card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 5;
    transition: opacity 800ms ease;
    opacity: calc(1 - var(--opacity, 0));
    border-radius: 8px;
}

.education-works-carousel .card__image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.education-works-carousel .card__image img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.education-works-carousel .card.current--card {
    --card-translateX-offset: 0;
    --card-rotation-offset: 0;
    --card-scale-offset: 1.2;
    --opacity: 0.8;
    --card-translateY-offset: 0;
    z-index: 100;
}

.education-works-carousel .card.previous--card {
    --card-translateX-offset: calc(-1 * var(--card-width) * 1.1);
    --card-rotation-offset: 25deg;
    --card-scale-offset: 0.9;
    --opacity: 0.4;
    --card-translateY-offset: 0;
    z-index: 20;
}

.education-works-carousel .card.next--card {
    --card-translateX-offset: calc(var(--card-width) * 1.1);
    --card-rotation-offset: -25deg;
    --card-scale-offset: 0.9;
    --opacity: 0.4;
    --card-translateY-offset: 0;
    z-index: 20;
}

.education-works-carousel .infoList {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 50;
}

.education-works-carousel .info__wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    perspective: 1000px;
}

.education-works-carousel .info {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) translateZ(2rem);
    opacity: 0;
    width: var(--card-width);
    max-width: 300px;
    text-align: center;
    padding: 0 10px;
    z-index: 50;
}

.education-works-carousel .info .text {
    position: relative;
    width: 100%;
    color: #fff;
}

.education-works-carousel .info .name {
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
    color: #fff;
}

.education-works-carousel .info .location {
    font-weight: 500;
    font-size: 0.9rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.education-works-carousel .info.current--info {
    opacity: 1;
}

.education-works-carousel .cardList__btn {
    --btn-size: 48px;
    width: var(--btn-size);
    height: var(--btn-size);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.education-works-carousel .cardList__btn::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.education-works-carousel .cardList__btn.btn--left::before {
    border-width: 2px 2px 0 0;
    transform: rotate(-135deg);
    margin-left: 4px;
}

.education-works-carousel .cardList__btn.btn--right::before {
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
    margin-right: 4px;
}

.education-works-carousel .cardList__btn:hover {
    transform: translateY(-50%) scale(1.15);
}

.education-works-carousel .cardList__btn:hover::before {
    border-color: rgba(255, 255, 255, 1);
}

.education-works-carousel .cardList__btn.btn--left {
    left: 10px;
}

.education-works-carousel .cardList__btn.btn--right {
    right: 10px;
}

/* ====================
   5. First 容器（文化艺术 - 视频轮播）
   ==================== */
.section-experience {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #000000;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.top-chart-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.top-chart-slides {
    display: flex;
    height: 100%;
    position: relative;
}

.top-chart-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

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

.top-chart-slide-content {
    position: absolute;
    bottom: 50px;
    left: 20px;
    right: 20px;
    z-index: 2;
    max-width: 720px;
}

.top-chart-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
    color: var(--text-color);
}

.top-chart-description {
    font-size: 16px;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-color);
}

.top-chart-video-id {
    font-size: 14px;
    margin-left: 20px;
    font-weight: normal;
}

.top-chart-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 8px;
    z-index: 3;
}

.top-chart-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.top-chart-dot.active {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.top-chart-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

/* ====================
   通用样式
   ==================== */
.no-content {
    text-align: center;
    padding: 50px 20px;
    font-size: 16px;
    color: var(--text-color);
}

/* ====================
   响应式设计
   ==================== */
/* 桌面端 (≥1025px) */
@media (min-width: 1025px) {
    .section-title {
        font-size: 36px;
    }

    .section-description p {
        font-size: 18px;
    }

    .education-works-carousel .card {
        --card-width: 200px;
        --card-height: 300px;
    }

    .education-works-carousel .info .name {
        font-size: 1.2rem;
    }

    .education-works-carousel .info .location {
        font-size: 1rem;
    }
}

/* 平板端 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .section-title {
        font-size: 36px;
    }

    .section-description {
        padding-left: 48px;
    }

    .section-description p {
        font-size: 16px;
    }

    .education-works-carousel .card {
        --card-width: 160px;
        --card-height: 240px;
    }
}

/* 移动端 (≤768px) */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-left: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-description {
        padding-left: 40px;
    }

    .section-description p {
        font-size: 14px;
    }

    .education-works-carousel .card {
        --card-width: 140px;
        --card-height: 210px;
    }

    .education-works-carousel .cardList__btn {
        --btn-size: 40px;
    }

    .education-works-carousel .cardList__btn::before {
        width: 10px;
        height: 10px;
    }

    .education-works-carousel .cardList__btn.btn--left {
        left: 8px;
    }

    .education-works-carousel .cardList__btn.btn--right {
        right: 8px;
    }

    .education-works-carousel .info .name {
        font-size: 0.9rem;
    }

    .education-works-carousel .info .location {
        font-size: 0.75rem;
    }

    .introduction-text {
        font-size: 14px;
        line-height: 1.6;
        width: 270px;
    }
}
