
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&family=Roboto+Mono&display=swap');

/* 变量定义 */
:root {
    --primary-color: #000046;
    --secondary-color: #1cb5e0;
    --accent-color1: #00ffcc;
    --accent-color2: #ff66cc;
    --background-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --font-primary: 'Poppins', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --text-color: #ffffff;
    --secondary-text-color: #cccccc;
}

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

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

/* 头部样式 */
header {
    height: 100vh;
    background: url('https://images.gptkong.com/demo/sample1.png') center center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

header .title {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    background: var(--primary-color);
    padding: 20px 40px;
    border-radius: 10px;
    animation: fadeIn 2s ease-in-out;
}

header .subtitle {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    font-size: 1.5rem;
    background: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 5px;
    animation: slideIn 2s ease-in-out;
}

/* 主体内容 */
main {
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.7);
}

section {
    margin-bottom: 50px;
}

section h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--accent-color2);
}

section p {
    font-size: 1rem;
    color: var(--secondary-text-color);
    max-width: 800px;
    margin: 0 auto 20px auto;
    padding: 0 10px;
}

section pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: var(--font-mono);
    color: #00ffcc;
}

section code {
    font-family: var(--font-mono);
    background: #1e1e1e;
    padding: 2px 4px;
    border-radius: 3px;
    color: #ff66cc;
}

section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    transition: transform 0.3s ease;
}

section img:hover {
    transform: scale(1.05);
}

.sample-data {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.sample-data div {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: calc(33.333% - 40px);
    text-align: center;
    transition: background 0.3s ease;
}

.sample-data div:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sample-data img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
}

.sample-data p {
    font-size: 0.9rem;
    color: #ffffff;
}

.sample-article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
}

.sample-article h2, .sample-article h3 {
    color: var(--accent-color2);
}

.sample-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.sample-article table, .sample-article th, .sample-article td {
    border: 1px solid #444;
}

.sample-article th, .sample-article td {
    padding: 10px;
    text-align: left;
}

.sample-article ul {
    list-style: disc inside;
    margin-left: 20px;
    color: #cccccc;
}

footer {
    padding: 20px;
    text-align: center;
    background: var(--primary-color);
    color: var(--text-color);
}

footer .cta-button {
    background: var(--accent-color1);
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

footer .cta-button:hover {
    background: var(--accent-color2);
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 响应式设计 */
@media (max-width: 1440px) {
    section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 1200px) {
    .sample-data div {
        width: calc(50% - 40px);
    }
}

@media (max-width: 1024px) {
    header .title {
        font-size: 2.5rem;
    }
    header .subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    main {
        padding: 30px 10px;
    }
    .sample-data div {
        width: 100%;
    }
    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    header .title {
        font-size: 2rem;
    }
    header .subtitle {
        font-size: 1rem;
    }
    section p, .sample-article p {
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    header .title {
        font-size: 1.5rem;
    }
    header .subtitle {
        font-size: 0.9rem;
    }
    .sample-data div {
        padding: 15px;
    }
}

