
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #001f3f 70%, #005bb5 25%, #ff851b 5%);
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    transition: background 0.5s ease;
}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 31, 63, 0.9);
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.navbar a:hover {
    color: #ff851b;
}

/* 主要内容区域样式 */
main {
    padding-top: 80px;
}

/* 章节标题样式 */
article h2, article h3 {
    color: #001f3f;
    margin-bottom: 15px;
}

article h2 {
    font-size: 24px;
}

article h3 {
    font-size: 20px;
}

/* 段落样式 */
article p {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: justify;
}

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

article img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 代码块样式 */
pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    margin-bottom: 20px;
    border-left: 5px solid #005bb5;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #d6336c;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #005bb5;
    color: #fff;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 按钮样式 */
.button {
    display: inline-block;
    background-color: #ff851b;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: #e07b1a;
    transform: translateY(-2px);
}

/* 轮播图样式 */
.carousel {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 20px;
}

.carousel-item {
    min-width: 300px;
    scroll-snap-align: center;
    background-color: #fafafa;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: scale(1.05);
}

/* 联系方式区域样式 */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-form, .contact-map {
    flex: 1 1 300px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-map {
    height: 300px;
    background-color: #eaeaea;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 折叠区域样式 */
.collapsible {
    background-color: #005bb5;
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.collapsible:hover {
    background-color: #004494;
}

.content {
    padding: 0 15px;
    display: none;
    overflow: hidden;
    background-color: #f1f1f1;
    border-radius: 4px;
}

/* 提示信息样式 */
.notice {
    background-color: rgba(255, 133, 27, 0.1);
    border-left: 5px solid #ff851b;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
}

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

    .carousel-item {
        min-width: 250px;
    }
}

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

.hero-illustration {
    animation: fadeIn 2s ease-out forwards;
    opacity: 0;
}

.scroll-animate {
    opacity: 0;
    animation: slideIn 1s forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 导航栏优化 */
.navbar a {
    padding: 8px 12px;
    box-sizing: border-box;
}


