@charset "utf-8";
/* CSS Document */

<style>
        :root {
            --primary-green: #4CAF50;
            --white: #ffffff;
        }

        body, html {
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            font-family: 'Inter', "Microsoft YaHei", sans-serif;
        }

        /* --- 轮播图核心样式 --- */
        .hero-slider {
            position: relative;
            width: 100%;
            height: 100vh;
            overflow: hidden;
            background-color: #000;
        }

        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1.2s ease-in-out;
            display: flex;
            align-items: center;
            z-index: 1;
        }

        .slide.active {
            opacity: 1;
            z-index: 2;
        }

        /* 幻灯片背景图层 */
        .slide-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            transform: scale(1.1);
            transition: transform 8s linear;
        }

        .slide.active .slide-bg {
            transform: scale(1);
        }

        /* 蒙层：让图片稍微变暗以突出文字 */
        .slide-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.2);
        }

        /* --- 文字错落感样式 --- */
        .hero-content {
            position: relative;
            z-index: 10;
            padding-left: 10%;
            max-width: 900px;
        }

        .hero-content h1, 
        .hero-content p {
            display: table; /* 关键：使背景宽度随文字内容变化 */
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            padding: 10px 25px;
            border-radius: 8px;
            box-decoration-break: clone;
            -webkit-box-decoration-break: clone;
            color: var(--white);
            margin-bottom: 20px;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease cubic-bezier(0.2, 1, 0.3, 1);
        }

        .slide.active h1 {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.3s;
        }

        .slide.active p {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.5s;
        }

        .hero-content h1 {
            font-family: 'Noto Serif SC', serif;
            font-size: 4.5rem;
            line-height: 1.4;
        }

        .hero-content p {
            font-size: 1.2rem;
            line-height: 1.8;
            font-weight: 300;
        }

        /* --- 底部翻页按钮 (Indicators) --- */
        .slider-nav {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 15px;
            z-index: 100;
        }

        .nav-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            border: 2px solid transparent;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .nav-dot.active {
            background: var(--primary-green);
            transform: scale(1.3);
            border-color: rgba(255, 255, 255, 0.5);
        }

        /* 按钮样式优化 */
        .hero-btn {
            display: inline-block;
            margin-top: 20px;
            padding: 15px 35px;
            background: var(--primary-green);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            opacity: 0;
        }

        .slide.active .hero-btn {
            opacity: 1;
            transition-delay: 0.7s;
        }

        .hero-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
        }

        @media (max-width: 768px) {
            .hero-content h1 { font-size: 2.5rem; }
            .hero-content { padding-left: 5%; padding-right: 5%; }
        }
    </style>