:root {
    --primary: #c00;
    --accent: #3498db;
    --accent-dark: #2980b9;
    --bg-light: #f5f7fa;
    --text-color: #333;
    --border-color: #e6e6e6;
    --hover-color: #f0f7ff;
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
    --transition: all 0.3s ease;
}

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

body {
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    padding: 15px;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(52, 152, 219, 0.05) 0%, transparent 20%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1 {
    text-align: center;
    color: var(--primary);
    margin: 20px 0 40px;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.table-container {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: white;
}

.table-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.table-title {
    background-color: var(--accent-dark);
    color: white;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.responsive-table th,
.responsive-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    word-break: break-word;
    transition: var(--transition);
}

/* 表头样式 */
.responsive-table th {
    background-color: var(--accent);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* 子标题行 */
.sub-header th {
    background-color: #eaf4f9;
    color: var(--text-color);
    font-weight: 600;
}

/* 行高亮 */
.highlight-row {
    background-color: #d9f9d9;
}

/* 催眠深度行样式 */
.level-shallow { background-color: #fdf6e3; }
.level-middle { background-color: #f0ead2; }
.level-deep { background-color: #f2e9de; }

/* 行悬停效果 */
.responsive-table tbody tr {
    cursor: pointer;
}

.responsive-table tbody tr:hover {
    background-color: var(--hover-color);
    transform: translateX(5px);
}

/* 详情模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #888;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary);
}

.modal h2 {
    color: var(--accent-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.modal h3 {
    color: var(--accent);
    margin: 15px 0 10px;
}

.modal p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    /* 表格容器滚动 */
    .table-container {
        overflow-x: auto;
    }
    
    /* 表格最小宽度确保内容不挤压 */
    .responsive-table {
        min-width: 600px;
    }
    
    /* 调整间距和字体大小 */
    .responsive-table th,
    .responsive-table td {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .table-title {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    body {
        padding: 10px;
    }
    
    .modal-content {
        padding: 20px;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.table-container {
    animation: fadeIn 0.5s ease forwards;
}

.table-container:nth-child(1) { animation-delay: 0.1s; }
.table-container:nth-child(2) { animation-delay: 0.2s; }
.table-container:nth-child(3) { animation-delay: 0.3s; }
.table-container:nth-child(4) { animation-delay: 0.4s; }
.table-container:nth-child(5) { animation-delay: 0.5s; }
.table-container:nth-child(6) { animation-delay: 0.6s; }