
    /* 定义全局变量 */
    :root {
        --primary-color: #001f3f; /* 深蓝色 */
        --secondary-color: #7f8c8d; /* 银色 */
        --accent-color: #f39c12; /* 亮橙色 */
        --background-gradient: linear-gradient(135deg, #001f3f, #0a4d68);
        --text-color: #ecf0f1;
        --font-primary: 'Poppins', sans-serif;
        --font-secondary: 'Montserrat', sans-serif;
        --font-body: 'Roboto', sans-serif;
        --transition-speed: 0.3s;
        --max-width: 1200px;
    }

    /* 全局样式 */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: var(--font-body);
        color: var(--text-color);
        background: var(--background-gradient);
        line-height: 1.6;
    }

    a {
        color: var(--accent-color);
        text-decoration: none;
        transition: color var(--transition-speed);
    }

    a:hover {
        color: #e67e22;
    }

    /* 头部样式 */
    header {
        position: fixed;
        width: 100%;
        background: rgba(0, 31, 63, 0.8);
        padding: 20px 0;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    header .container {
        width: 90%;
        max-width: var(--max-width);
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header h1 {
        font-family: var(--font-secondary);
        font-size: 24px;
        color: var(--accent-color);
    }

    nav ul {
        list-style: none;
        display: flex;
    }

    nav ul li {
        margin-left: 20px;
    }

    nav ul li a {
        font-family: var(--font-secondary);
        font-size: 16px;
        position: relative;
        padding-bottom: 5px;
    }

    nav ul li a::after {
        content: '';
        position: absolute;
        width: 0%;
        height: 2px;
        background: var(--accent-color);
        left: 0;
        bottom: 0;
        transition: width var(--transition-speed);
    }

    nav ul li a:hover::after {
        width: 100%;
    }

    /* 主页轮播 */
    .hero {
        height: 100vh;
        background: url('https://images.gptkong.com/demo/sample1.png') center center / cover no-repeat;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        color: #fff;
        text-align: center;
    }

    .hero::before {
        content: '';
        position: absolute;
        top:0;
        left:0;
        width:100%;
        height:100%;
        background: rgba(0,31,63,0.5);
    }

    .hero-content {
        position: relative;
        z-index: 1;
        max-width: 800px;
        padding: 20px;
    }

    .hero-content h2 {
        font-family: var(--font-secondary);
        font-size: 48px;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .btn {
        background: var(--accent-color);
        color: #fff;
        padding: 12px 30px;
        border: none;
        border-radius: 25px;
        cursor: pointer;
        transition: background var(--transition-speed);
        font-size: 16px;
        font-family: var(--font-secondary);
    }

    .btn:hover {
        background: #e67e22;
    }

    /* 页面区块 */
    section {
        padding: 100px 0;
        position: relative;
    }

    .section1 {
        background: url('https://images.gptkong.com/demo/sample2.png') center center / cover no-repeat;
        background-attachment: fixed;
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--text-color);
    }

    .section1 .container {
        text-align: center;
        background: rgba(0,31,63,0.7);
        padding: 40px;
        border-radius: 10px;
    }

    .section1 h2 {
        font-family: var(--font-secondary);
        font-size: 36px;
        margin-bottom: 20px;
    }

    .section1 p {
        font-size: 18px;
        margin-bottom: 20px;
    }

    /* 动画效果 */
    @keyframes aurora-move {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    .aurora {
        position: absolute;
        top:0;
        left:0;
        width:100%;
        height:100%;
        background: radial-gradient(circle, rgb(255, 87, 34), transparent);
        animation: aurora-move 15s linear infinite;
        z-index: 0;
    }

    /* 文章展示 */
    .article-section {
        background: rgba(255, 255, 255, 0.1);
        padding: 50px 20px;
    }

    .article-section h2 {
        font-family: var(--font-secondary);
        font-size: 32px;
        margin-bottom: 20px;
        text-align: center;
    }

    .article-section article {
        background: rgba(0,31,63,0.8);
        padding: 30px;
        border-radius: 10px;
        max-width: 800px;
        margin: 0 auto;
    }

    .article-section h3 {
        font-family: var(--font-secondary);
        font-size: 24px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

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

    .article-section pre {
        background: #2c3e50;
        padding: 15px;
        border-radius: 5px;
        overflow: auto;
    }

    .article-section code {
        color: #ecf0f1;
        font-family: 'Courier New', Courier, monospace;
    }

    /* 响应式设计 */
    @media (max-width: 1440px) {
        .hero-content h2 {
            font-size: 40px;
        }

        .section1 h2 {
            font-size: 32px;
        }
    }

    @media (max-width: 1200px) {
        header .container {
            width: 95%;
        }

        .hero-content h2 {
            font-size: 36px;
        }

        .section1 h2 {
            font-size: 28px;
        }
    }

    @media (max-width: 1024px) {
        .hero-content h2 {
            font-size: 32px;
        }

        .section1 h2 {
            font-size: 24px;
        }

        nav ul li {
            margin-left: 15px;
        }
    }

    @media (max-width: 768px) {
        header .container {
            flex-direction: column;
            align-items: flex-start;
        }

        nav ul {
            flex-direction: column;
            width: 100%;
        }

        nav ul li {
            margin: 10px 0;
        }

        .hero-content h2 {
            font-size: 28px;
        }

        .section1 h2 {
            font-size: 20px;
        }
    }

    @media (max-width: 480px) {
        .hero-content h2 {
            font-size: 24px;
        }

        .section1 h2 {
            font-size: 18px;
        }

        .btn {
            padding: 10px 20px;
            font-size: 14px;
        }
    }

    @media (max-width: 320px) {
        header h1 {
            font-size: 20px;
        }

        nav ul li a {
            font-size: 14px;
        }

        .hero-content h2 {
            font-size: 20px;
        }

        .section1 h2 {
            font-size: 16px;
        }
    }

    /* 图片样式 */
    .gallery {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .gallery img {
        width: 160px;
        height: 160px;
        object-fit: cover;
        border-radius: 10px;
        transition: transform var(--transition-speed);
    }

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

    /* 提示信息 */
    .reference-note {
        text-align: center;
        font-size: 14px;
        color: var(--secondary-color);
        margin-top: 20px;
    }

    /* 代码高亮 */
    .highlight {
        background: #34495e;
        padding: 10px;
        border-radius: 5px;
        overflow-x: auto;
    }

