
/* 
    基础样式设置
    定义全局字体、颜色以及排版基础
*/
/* 设置页面的基本字体和背景 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #333333;
    background: linear-gradient(135deg, #4A90E2, #9013FE);
    overflow-x: hidden;
}
/* 设置容器的最大宽度和居中显示 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
/* 栏目标题样式 */
h2, h3, h4 {
    color: #FFFFFF;
    margin-bottom: 20px;
    position: relative;
}
h2::after, h3::after, h4::after {
    content: '';
    width: 50px;
    height: 4px;
    background: #FFFFFF;
    position: absolute;
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}
/* 导航栏样式 */
nav {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}
nav ul li {
    margin-left: 20px;
}
nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}
nav ul li a:hover {
    color: #4A90E2;
}
/* 主要内容区域样式 */
main {
    padding-top: 80px;
}
.section {
    padding: 60px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.section:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.1);
}
.section-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    width: 50px;
    height: 4px;
    background: #4A90E2;
    position: absolute;
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}
/* 图文并茂布局 */
.section .content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.section .content img {
    width: 100%;
    max-width: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}
.section .content img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.section .text {
    flex: 1;
    padding: 20px;
    min-width: 500px;
}
.section .text p {
    font-size: 16px;
    line-height: 1.6;
    color: #FFFFFF;
}
.section .text ul {
    list-style: disc;
    margin-left: 20px;
    color: #FFFFFF;
}
.section .text pre {
    background: #1E1E1E;
    color: #FFFFFF;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-top: 20px;
}
.section .text code {
    font-family: 'Courier New', Courier, monospace;
}
.table-responsive {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
table th, table td {
    border: 1px solid #FFFFFF;
    padding: 10px;
    text-align: left;
}
table th {
    background: rgba(74, 144, 226, 0.7);
}
.table-responsive table th, .table-responsive table td {
    color: #FFFFFF;
}
/* 按钮样式 */
.button {
    background: #9013FE;
    color: #FFFFFF;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 16px;
}
.button:hover {
    background: #4A90E2;
    transform: scale(1.05);
}
.highlight-button {
    position: relative;
    background: #4A90E2;
    color: #FFFFFF;
    padding: 12px 25px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s ease;
}
.highlight-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.highlight-button:hover::after {
    opacity: 1;
}
.highlight-button:hover {
    background: #9013FE;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.pulse-animation {
    animation: pulse 2s infinite;
}
/* 表格代码块样式 */
pre.code-block {
    background: #2D2D2D;
    color: #CCCCCC;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-top: 20px;
}
pre.code-block::before {
    content: 'CSS3 代码示例';
    display: block;
    font-size: 14px;
    color: #4A90E2;
    margin-bottom: 10px;
}
/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }
    .section .content {
        flex-direction: column;
    }
    .section .text {
        padding: 10px;
    }
}
@media (max-width: 480px) {
    .section .content img {
        max-width: 100%;
    }
    .section .text {
        min-width: unset;
    }
}
/* 动态粒子效果的样式 */
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: moveParticle 10s linear infinite;
}
@keyframes moveParticle {
    from {
        transform: translateY(0) translateX(0);
    }
    to {
        transform: translateY(-100vh) translateX(100vw);
    }
}
/* 提示样式 */
.front-page-alert {
    text-align: center;
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 40px;
}
/* 划分内容区域 */
.section-about, .section-services, 
.section-cases, .section-testimonials, 
.section-contact {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}
/* 高亮与微动画 */
.highlight-section {
    position: relative;
}
.highlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #4A90E2, transparent);
    transform: translateX(-50%);
    pointer-events: none;
}
/* 折叠区域样式 */
.collapsible {
    background-color: #4A90E2;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}
.collapsible:hover {
    background-color: #9013FE;
}
.content-collapsible {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-top: 5px;
}
.content-collapsible p {
    color: #FFFFFF;
}
/* 提示文本样式 */
.reference-text {
    font-size: 20px;
    color: #FFFFFF;
    text-align: center;
    margin: 20px 0;
}

