
/* 
 * 该样式表用于“科技魅影 - 风险管理与合规科技专业展示网页”的设计与布局。
 * 主要采用HTML5与CSS3技术，结合现代网页设计美学，打造响应式、具有未来感与高级质感的用户界面。
 * 
 * 1. 全局样式
 *    - 设置基础字体、颜色和背景
 *    - 确保网页在不同设备上的一致性与可读性
 */

/* 全局字体与颜色设置 */
body {
    font-family: 'Roboto', sans-serif; /* 使用无衬线体Roboto，提升科技感 */
    color: #ffffff; /* 主体文字颜色为白色，确保与深色背景形成对比 */
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%); /* 使用线性渐变作为背景，营造深邃氛围 */
    margin: 0;
    padding: 0;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(27, 38, 59, 0.9); /* 半透明深色背景，突出科技感 */
    color: #ffffff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 增加阴影效果，提升层次感 */
    transition: background 0.3s ease;
}

.navbar:hover {
    background: rgba(27, 38, 59, 1); /* 悬停时背景变为不透明 */
}

/* 导航菜单样式 */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.navbar li {
    position: relative;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #00c6ff; /* 悬停时颜色变化，增强互动性 */
}

.navbar li ul {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background: #1b263b;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar li:hover ul {
    display: block;
}

/* 主内容区域样式 */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 120px 20px 60px 20px; /* 上方预留导航栏空间，确保内容可见 */
}

/* 模块化区块样式 */
.section {
    width: 100%;
    max-width: 1200px;
    margin: 40px 0;
    padding: 40px;
    background: rgba(27, 38, 59, 0.8);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* 图片样式 */
.section img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* 标题样式 */
h2, h3, h4 {
    color: #00c6ff;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

/* 段落样式 */
p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

/* 代码块样式 */
pre {
    background: #1b263b;
    padding: 20px;
    border-radius: 10px;
    overflow: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

pre code {
    color: #00c6ff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    display: block;
    white-space: pre-wrap;
}

pre code::before {
    content: "CSS3 示例代码";
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    border: none;
    border-radius: 25px;
    color: #ffffff;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background: linear-gradient(45deg, #0072ff, #00c6ff);
    transform: scale(1.05);
}

.button:active {
    transform: scale(0.95);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar ul {
        flex-direction: column;
        gap: 15px;
    }

    .section {
        padding: 20px;
    }

    h2 {
        font-size: 1.75em;
    }

    h3 {
        font-size: 1.5em;
    }

    h4 {
        font-size: 1.25em;
    }
}

/* 页脚样式 */
.footer {
    background: rgba(27, 38, 59, 0.9);
    color: #cccccc;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer a {
    color: #00c6ff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #0072ff;
}

.footer .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer .social-icons .icon {
    width: 30px;
    height: 30px;
    fill: #00c6ff;
    transition: fill 0.3s ease;
}

.footer .social-icons .icon:hover {
    fill: #0072ff;
}

/* 模块化设计容器 */
.module-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 20px;
    background: rgba(13, 27, 42, 0.9);
}

/* 个性化主题切换按钮 */
.toggle-button {
    background: #00c6ff;
    border: none;
    border-radius: 20px;
    color: #ffffff;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-button:hover {
    background: #0072ff;
}

/* 折叠区域样式 */
.collapsible {
    background-color: #1b263b;
    color: #ffffff;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: background 0.3s ease;
    border-radius: 5px;
    margin-bottom: 10px;
}

.active, .collapsible:hover {
    background-color: #0072ff;
}

.content {
    padding: 0 18px;
    display: none;
    background-color: #1b263b;
    overflow: hidden;
    border-radius: 5px;
}

.content p {
    margin: 10px 0;
}

/* 点缀色使用 */
.point-color {
    color: #ff5722; /* 使用点缀色吸引视线 */
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 2s ease-in-out;
}

/* 页面提示样式 */
.page-notice {
    background: #ffeb3b;
    color: #000000;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    border-radius: 5px;
    margin-bottom: 40px;
}

/* 链接禁用SEO */
a[rel="nofollow"] {
    /* 保持默认样式，不特别处理 */
}

