* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
}

/* 流光背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #5f27cd);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    z-index: -2;
}

/* 流光条纹效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 98px,
        rgba(255, 255, 255, 0.03) 100px,
        rgba(255, 255, 255, 0.03) 102px
    );
    animation: streamingLight 3s linear infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes streamingLight {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 添加粒子效果 */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 4s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes sparkle {
    0% {
        transform: translateY(0px);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    animation: slideInFromTop 0.8s ease-out;
    position: relative;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    text-align: center;
    color: white;
    margin-top: 60px;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.3);
}

h2 {
    color: #2c3e50;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    position: relative;
    padding-left: 20px;
}

h3 {
    color: #34495e;
    margin: 1.5rem 0 0.8rem;
    font-size: 1.2rem;
    position: relative;
    padding-left: 15px;
    border-left: 2px solid rgba(52, 152, 219, 0.4);
}

.content {
    padding: 0;
    background: none;
    border-radius: 0;
}

/* 子条款样式优化 */
.content p {
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out;
    transition: color 0.3s ease;
    color: #34495e;
    position: relative;
}

/* 子条款样式 - 使用类选择器 */
.content .sub-clause {
    padding-left: 1.5rem;
    margin-left: 1rem;
    border-left: 3px solid rgba(52, 152, 219, 0.3);
    background: rgba(52, 152, 219, 0.05);
    border-radius: 0 8px 8px 0;
    padding: 0.8rem 1.5rem;
    margin-bottom: 0.8rem;
    position: relative;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

/* 子条款悬停效果 */
.content .sub-clause:hover {
    background: rgba(52, 152, 219, 0.1);
    border-left-color: rgba(52, 152, 219, 0.6);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

/* 子条款编号样式 */
.content .sub-clause::before {
    content: '▶';
    position: absolute;
    left: 0.5rem;
    top: 0.8rem;
    color: rgba(52, 152, 219, 0.6);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.content .sub-clause:hover::before {
    color: rgba(52, 152, 219, 1);
    transform: translateX(2px);
}

/* 子条款编号加粗 */
.content .sub-clause strong {
    color: #2980b9;
    font-weight: 600;
}

/* 普通段落样式 */
.content p:not(.sub-clause) {
    line-height: 1.7;
}

p:hover {
    color: #2c3e50;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 列表样式 - 优化统一对齐 */
ul {
    margin-left: 30px;
    margin-bottom: 20px;
    list-style: none;
    padding-left: 0;
    counter-reset: item;
}

ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 1.8rem;
    text-align: justify;
    counter-increment: item;
    text-indent: -1.8rem;
}

ul li::before {
    content: "（" counter(item) "）";
    position: absolute;
    left: 0;
    color: #666;
    font-weight: 500;
    width: 1.8rem;
    text-align: left;
    padding-right: 0.5em;
}

/* 序号标签样式 */
.list-item {
    margin-bottom: 12px;
    text-align: justify;
    line-height: 1.7;
    color: #34495e;
    position: relative;
    transition: color 0.3s ease;
    margin-left: 1.8rem;
    text-indent: -1.8rem;
    padding-left: 0.5em;
}


.list-item:hover {
    color: #2c3e50;
}

/* 页脚样式 */
.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    h3 {
        font-size: 1.1em;
        padding-left: 10px;
    }
    
    .sub-clause {
        margin-left: 15px;
    }
    
    ul {
        margin-left: 20px;
    }
    
    ul li {
        padding-left: 1.6rem;
        text-indent: -1.6rem;
    }
    
    ul li::before {
        width: 1.6rem;
    }
    
    .list-item {
        margin-bottom: 10px;
        font-size: 0.95rem;
        margin-left: 1.6rem;
        text-indent: -1.6rem;
        padding-left: 0.5em;
    }
}

/* 简化标题悬停效果 */
.content h2:hover {
    color: #3498db;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.content h3:hover {
    color: #3498db;
    transform: translateX(3px);
    transition: all 0.3s ease;
    border-left-color: rgba(52, 152, 219, 0.8);
}

/* 页面加载动画 */
@keyframes pageLoad {
    0% {
        opacity: 0;
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

body {
    animation: pageLoad 0.5s ease-out;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 4px;
    animation: scrollbarGlow 3s ease infinite;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
}

@keyframes scrollbarGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
    }
    50% {
        box-shadow: 0 0 10px rgba(78, 205, 196, 0.8);
    }
}

/* 动画效果 */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
} 