
/* 基础样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 统一字体 */
    background: linear-gradient(135deg, #1E3A8A 70%, #10B981 25%, #F3F4F6 5%);
    color: #333;
    line-height: 1.6;
}

/* 响应式容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(30, 58, 138, 0.9);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    position: relative;
}

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

.navbar ul li a:hover {
    color: #10B981;
}

.navbar ul li ul.dropdown {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background-color: #1E3A8A;
    padding: 10px;
    border-radius: 4px;
}

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

.navbar ul li ul.dropdown li {
    margin: 5px 0;
}

.navbar ul li ul.dropdown li a {
    color: #F3F4F6;
    font-size: 14px;
}

.breadcrumb {
    margin-top: 80px;
    font-size: 14px;
    color: #1E3A8A;
    text-align: center;
    padding-bottom: 20px;
}

/* 主标题样式 */
h1, h2, h3, h4 {
    color: #1E3A8A;
    margin-top: 20px;
    margin-bottom: 10px;
}

h1 {
    font-size: 32px;
    text-align: center;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

/* 文章内容样式 */
article {
    background-color: rgba(243, 244, 246, 0.8);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

article p {
    font-size: 16px;
    margin-bottom: 15px;
}

article strong {
    color: #1E3A8A;
}

/* 代码块样式 */
pre {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 6px;
    overflow: auto;
    margin-bottom: 20px;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #d63384;
    position: relative;
}

code::before {
    content: "CSS3 示例代码";
    position: absolute;
    top: -20px;
    left: 0;
    background-color: #1E3A8A;
    color: #fff;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
}

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

table thead {
    background-color: #1E3A8A;
    color: #fff;
}

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

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

/* 按钮样式 */
.button {
    background-color: #10B981;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s;
}

.button:hover::after {
    left: 0;
}

.button:active {
    background-color: #0f9963;
    transform: scale(0.98);
}

/* 分屏布局 */
.split-screen {
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px;
}

.left-panel, .right-panel {
    flex: 1;
    min-width: 500px;
    padding: 20px;
}

.left-panel {
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.left-panel:hover {
    transform: scale(1.05);
}

.right-panel {
    background-color: #F3F4F6;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 卡片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(30, 58, 138, 0.2);
}

/* 图片样式 */
img.decorative {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.1);
    transition: transform 0.3s ease;
}

img.decorative:hover {
    transform: scale(1.05);
}

/* 数据可视化区域 */
.chart-container {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 40px;
}

.chart-container .animation {
    width: 100%;
    height: 100%;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 底部资源中心 */
.footer {
    background-color: #1E3A8A;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #F3F4F6;
}

.footer .resources, .footer .links {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.footer h3 {
    color: #10B981;
    margin-bottom: 15px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin: 8px 0;
}

.footer ul li a {
    color: #F3F4F6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: #10B981;
}

/* 轮播图样式 */
.carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
}

.carousel img {
    flex: 0 0 auto;
    width: 320px;
    height: 320px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.1);
    transition: transform 0.3s ease;
}

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

/* 提示信息样式 */
.reference-note {
    background-color: rgba(30, 58, 138, 0.1);
    border-left: 4px solid #10B981;
    padding: 15px 20px;
    margin: 30px 0;
    border-radius: 4px;
    font-size: 16px;
}

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

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

.content {
    padding: 0 20px;
    display: none;
    overflow: hidden;
    background-color: #fff;
    border-left: 4px solid #10B981;
    border-radius: 0 0 4px 4px;
}

@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .split-screen {
        flex-direction: column;
    }

    .left-panel, .right-panel {
        flex: none;
        width: 100%;
        height: auto;
    }
}

