/* ===== 全局重置和基础样式 ===== */
* {
    margin: 0;                     /* 清除默认外边距 */
    padding: 0;                    /* 清除默认内边距 */
    box-sizing: border-box;        /* 使用边框盒模型，包含边框和内边距在宽高内 */
}

/* ===== 页面主体基础样式 ===== */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;  /* 字体族设置，优先使用微软雅黑 */
    color: #333;                   /* 默认文字颜色 */
    margin: 0;                     /* 清除外边距 */
    padding: 0;                    /* 清除内边距 */
    overflow-x: hidden;            /* 隐藏水平滚动条 */
}

/* ===== 通用渐变背景样式 ===== */
.gradient-bg-primary {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 50%, #F39C12 100%);
}

.gradient-bg-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-cover {
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 50%, #4ECDC4 50%, #44A08D 100%);
}

/* ===== 演示容器 - PPT风格主容器 ===== */
.presentation-container {
    width: 95vw;                   /* 容器宽度为视口宽度的95% */
    max-width: 1400px;             /* 最大宽度限制 */
    min-height: 90vh;              /* 最小高度为视口高度的90% */
    background: #ffffff;           /* 白色背景 */
    border-radius: 20px;           /* 圆角边框 */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);  /* 阴影效果 */
    padding: 30px;                 /* 内边距设置 */
    display: flex;                 /* 弹性布局 */
    flex-direction: column;        /* 垂直排列 */
    position: relative;            /* 相对定位，为伪元素提供定位基准 */
    overflow: visible;             /* 允许内容溢出显示 */
    margin: 2vh auto;              /* 垂直外边距和水平居中 */
}

/* 装饰性背景元素 - 右上角渐变圆形装饰 */
.presentation-container::before {
    content: '';                   /* 伪元素内容为空 */
    position: absolute;            /* 绝对定位 */
    top: -50%;                     /* 向上偏移50% */
    right: -20%;                   /* 向右偏移20% */
    width: 40%;                    /* 宽度为容器的40% */
    height: 200%;                  /* 高度为容器的200% */
    background: linear-gradient(45deg, rgba(78, 205, 196, 0.1) 0%, rgba(243, 156, 18, 0.1) 50%, rgba(231, 76, 60, 0.1) 100%);
    border-radius: 50%;            /* 圆形形状 */
    z-index: 0;                    /* 层级最低，作为背景装饰 */
}

/* 内容区域容器 */
.content {
    position: relative;            /* 相对定位 */
    z-index: 1;                    /* 层级高于装饰背景 */
    min-height: 100%;              /* 最小高度为父容器的100% */
    display: flex;                 /* 弹性布局 */
    flex-direction: column;        /* 垂直排列 */
}

/* ===== 标题样式系统 ===== */
/* 主标题样式 */
.title-main {
    font-size: 42px;              /* 字体大小 */
    font-weight: 700;              /* 字体粗细 */
    color: #2C3E50;                /* 字体颜色 */
    margin-bottom: 8px;            /* 下边距 */
    line-height: 1.2;              /* 行高 */
    background: linear-gradient(135deg, #4ECDC4, #F39C12, #E74C3C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left;              /* 文字左对齐 */
}

/* 副标题样式 */
.subtitle {
    font-size: 18px;              /* 字体大小 */
    font-weight: 400;              /* 字体粗细 */
    color: #7F8C8D;                /* 字体颜色 */
    margin-bottom: 30px;           /* 下边距 */
    line-height: 1.4;              /* 行高 */
    text-align: left;              /* 文字左对齐 */
}

/* 封面页标题样式 */
.cover-title {
    font-size: 64px;              /* 主标题字体大小 */
    font-weight: 700;              /* 字体粗细，加粗 */
    margin-bottom: 30px;           /* 底部外边距 */
    text-shadow: none;             /* 无文字阴影 */
    line-height: 1.2;              /* 行高，紧凑排列 */
    color: #576270;                /* 文字颜色，深灰蓝色 */
}

.cover-subtitle {
    font-size: 24px;              /* 副标题字体大小 */
    font-weight: 400;              /* 字体粗细，正常 */
    opacity: 0.9;                  /* 透明度90% */
    line-height: 1.4;              /* 行高，适中 */
    color: #ffffff;                /* 文字颜色，白色 */
}

/* ===== 按钮样式系统 ===== */
.btn-primary {
    background: linear-gradient(135deg, #4ECDC4, #F39C12);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ===== 卡片样式系统 ===== */
.card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 14px;
    color: #7F8C8D;
}

/* ===== 导航样式 ===== */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: #7F8C8D;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(78, 205, 196, 0.1);
    color: #4ECDC4;
}

.nav-link.active {
    background: linear-gradient(135deg, #4ECDC4, #F39C12);
    color: white;
}

/* ===== 表格样式 ===== */
.table-container {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: linear-gradient(135deg, #4ECDC4, #F39C12);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #2C3E50;
}

.table tr:hover {
    background: rgba(78, 205, 196, 0.05);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .presentation-container {
        width: 98vw;
        padding: 20px;
        margin: 1vh auto;
    }
    
    .title-main {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .cover-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .cover-subtitle {
        font-size: 20px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .presentation-container {
        padding: 15px;
    }
    
    .title-main {
        font-size: 28px;
    }
    
    .cover-title {
        font-size: 28px;
    }
    
    .cover-subtitle {
        font-size: 18px;
    }
}

/* ===== 分割线样式 ===== */
.divider {
    height: 2px;                   /* 分隔线高度 */
    background: linear-gradient(90deg, #4ECDC4, #F39C12, #E74C3C);  /* 渐变色背景 */
    border: none;                  /* 移除默认边框 */
    margin: 40px 0 120px 0;        /* 上下边距，增加下边距让显示区域离分割线更远 */
    border-radius: 1px;            /* 轻微圆角 */
}

/* ===== 页脚样式 ===== */
.footer {
    margin-top: auto;              /* 自动上边距，推到底部 */
    padding: 15px 0;               /* 上下内边距 */
    border-top: 1px solid #E8F4F8; /* 顶部边框 */
    text-align: center;            /* 文字居中 */
    flex-shrink: 0;                /* 不允许收缩 */
}

/* 页脚小字样式 */
.footer .text-small {
    color: #95A5A6;                /* 浅灰色文字 */
    margin-bottom: 0;              /* 移除下边距 */
    font-size: 12px;              /* 小字体 */
}

/* ===== 工具类样式 ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; }
.flex-around { justify-content: space-around; }

.hidden { display: none; }
.visible { display: block; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.z-10 { z-index: 10; }
.z-100 { z-index: 100; }
.z-1000 { z-index: 1000; }