/* 额外的视觉优化和布局美化 */

/* 章节标题样式 */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.card img,
.glass-card img,
.modern-card img {
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover img,
.glass-card:hover img,
.modern-card:hover img {
    transform: scale(1.02);
}

/* 链接样式 */
a {
    color: #10b981;
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: #059669;
}

/* 分隔线 */
hr {
    border: none;
    height: 1px;
    background: #e5e7eb;
    margin: 2.5rem 0;
}

/* 徽章样式 */
.badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* 列表优化 */
ul, ol {
    padding-left: 1.75rem;
}

li {
    margin-bottom: 0.75rem;
    color: #374151;
    line-height: 1.7;
}

/* 表格优化 */
table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

th {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: rgba(16, 185, 129, 0.03);
}

/* 容器优化 */
.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* 间距工具类 */
.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-lg {
    padding: 7rem 0;
}

/* 背景变体 */
.bg-light {
    background: #fafafa;
}

.bg-white {
    background: #ffffff;
}

/* 文本工具类 */
.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 响应式间距 */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-lg {
        padding: 4rem 0;
    }
}

/* 加载状态 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(16, 185, 129, 0.2);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 聚焦状态优化 */
*:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
