@layer utilities {
    .text-shadow {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    }
    .content-visibility-auto {
        content-visibility: auto;
    }
    .section-fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .section-visible {
        opacity: 1;
        transform: translateY(0);
    }
    .text-hover {
        transition: transform 0.3s ease, color 0.3s ease;
    }
    .text-hover:hover {
        transform: scale(1.02);
        color: theme('colors.accent');
    }
    .section-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        background-size: cover;
        background-position: center;
        opacity: 0.2;
        transition: opacity 0.5s ease;
        background-attachment: scroll;
        will-change: transform;
    }
    .section-container:hover .section-bg {
        opacity: 0.3;
    }
    .highlighted-summary {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        font-family: 'KaiTi SC', cursive, serif;
        font-style: italic;
        line-height: 1.8;
        color: #000000;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        text-align: center;
        padding: 2rem 1rem;
        margin: 2rem 0;
        opacity: 1;
        position: relative;
        z-index: 5;
    }
    .book-container {
        position: relative;
        width: 100%;
        max-width: 600px;
        height: 400px;
        margin: 0 auto;
    }
    .book {
        position: absolute;
        width: 100%;
        height: 100%;
    }
    .book-cover {
        position: absolute;
        width: 50%;
        height: 100%;
        background-color: #8B4513;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,10 Q50,5 90,10 T90,90 Q50,95 10,90 T10,10" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="1"/><path d="M10,30 L90,30 M10,50 L90,50 M10,70 L90,70" stroke="rgba(255,255,255,0.2)" stroke-width="1"/></svg>');
        border-radius: 5px 0 0 5px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 3;
        background-size: cover;
        background-position: center;
        overflow: hidden;
    }
    .book-cover::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="300"><path d="M50,50 Q150,100 50,250" stroke="rgba(101, 67, 33, 0.3)" stroke-width="2" fill="none"/><path d="M100,50 Q200,150 100,250" stroke="rgba(101, 67, 33, 0.2)" stroke-width="2" fill="none"/></svg>');
        background-repeat: no-repeat;
        background-position: center;
        z-index: 1;
    }
    .book-cover.right {
        left: 50%;
        border-radius: 0 5px 5px 0;
    }
    .book-spine {
        position: absolute;
        left: 50%;
        top: 0;
        width: 8px;
        height: 100%;
        background-color: #654321;
        transform: translateX(-50%);
        box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
        z-index: 2;
    }
    .book-spine::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
        color: rgba(255, 255, 255, 0.5);
        font-family: 'Ma Shan Zheng', cursive;
        font-size: 14px;
        white-space: nowrap;
    }
    .book-pages {
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: #F9F5EE;
        border-radius: 5px;
        overflow: hidden;
        z-index: 1;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M0,10 L20,10" stroke="%238C1C13" stroke-width="0.5" stroke-opacity="0.15"/></svg>');
        background-repeat: repeat-y;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        box-sizing: border-box;
    }
    .book-decoration {
        position: absolute;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1;
    }
    .book-decoration::before, .book-decoration::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: rgba(140, 28, 19, 0.2);
    }
    .book-decoration::before {
        top: 20px;
        right: 20px;
    }
    .book-decoration::after {
        bottom: 20px;
        left: 20px;
    }
    
    /* 叠化过渡样式 */
    .page-transition {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: theme('colors.paper');
        z-index: 9999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.6s ease-in-out;
    }
    .section-wrapper {
        opacity: 1;
        transition: opacity 0.6s ease-in-out;
    }
    .section-fading {
        opacity: 0;
    }
    
    /* 移动端适配 */
    @media (max-width: 768px) {
        .section-bg {
            background-attachment: scroll !important;
            background-position: center center !important;
            background-size: cover !important;
            background-repeat: no-repeat !important;
        }
        
        #section2-bg, #section3-bg, 
        #section5-bg, #section6-bg, #section7-bg,
        #section8-bg, #section9-bg, #section10-bg,
        #section11-bg, #section12-bg {
            background-attachment: scroll !important;
            opacity: 0.15 !important;
        }
    }

    /* 声明页面样式 */
    .notice-page {
        height: 100vh;
        width: 100vw;
        background-color: #000;
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 2rem;
        box-sizing: border-box;
    }
    
    /* 图表容器样式 */
    .liquid-chart-container {
        width: 100%;
        height: 250px;
        margin: 0 auto;
    }
    
    .chart-item {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .chart-title {
        font-weight: 600;
        margin-bottom: 1rem;
        color: #333;
    }
    
    .difference-box {
        text-align: center;
        padding: 1.5rem;
        margin: 2rem 0;
        background-color: rgba(140, 28, 19, 0.1);
        border-radius: 8px;
    }
    
    .difference-value {
        font-size: 2.5rem;
        font-weight: bold;
        color: #8C1C13;
        margin-bottom: 0.5rem;
    }
    
    .data-source {
        text-align: center;
        font-size: 0.9rem;
        color: #666;
        margin-top: 0.5rem;
        font-style: italic;
    }
    
    .image-row-container {
           display: flex;
           flex-direction: row;
           justify-content: space-between;
          align-items: stretch;
          width: 100%;
          gap: 1.5rem;
          margin: 2.5rem 0;
    }

    .image-row-item {
           flex: 1;
           min-width: 0;
           height: 320px;
           border-radius: 8px;
           overflow: hidden;
           box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
           transition: all 0.4s ease;
     }

     .image-row-item:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
     }

     .image-row-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.92;
            transition: opacity 0.3s ease;
      }

      .image-row-item:hover img {
             opacity: 1;
      }

     @media (max-width: 768px) {
                .image-row-container {
                       flex-direction: column;
                       gap: 1rem;
                }

                .image-row-item {
                       height: 220px;
                }
            }
        }
