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

/* 字体引入 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Poppins:wght@600&display=swap');

/* 主题颜色定义 */
:root {
    --deep-blue: #0A1F44;
    --metal-silver: #C0C0C0;
    --gradient-purple: linear-gradient(135deg, #8A2BE2, #FF69B4);
    --gold-glow: #FFD700;
    --neon-green: #39FF14;
    --background-gradient: linear-gradient(135deg, rgba(10,31,68,0.8), rgba(138,43,226,0.8));
}

/* body 样式 */
body {
    font-family: 'Inter', sans-serif;
    background: var(--background-gradient), url('https://images.gptkong.com/demo/sample1.png') no-repeat center center fixed;
    background-size: cover;
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 主要容器 */
.container {
    max-width: 1200px;
    width: 100%;
    background: rgba(10, 31, 68, 0.9);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

/* 标题样式 */
h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3em;
    text-align: center;
    margin-bottom: 20px;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s infinite alternate;
}

/* 标题闪光动画 */
@keyframes glow {
    from {
        text-shadow: 0 0 10px var(--gold-glow), 0 0 20px var(--gold-glow);
    }
    to {
        text-shadow: 0 0 20px var(--gold-glow), 0 0 30px var(--gold-glow);
    }
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

nav a {
    color: var(--metal-silver);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2em;
    position: relative;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--gold-glow);
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

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

nav a:hover {
    color: var(--gold-glow);
}

/* 按钮样式 */
.button-metal {
    background: var(--metal-silver);
    border: 2px solid #666;
    box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.5), 0px 1px 2px rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
    color: #000;
}

.button-metal:hover {
    background: #D3D3D3;
    cursor: pointer;
}

/* 卡片样式 */
.card {
    background: rgba(192, 192, 192, 0.1);
    border: 1px solid var(--metal-silver);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.5);
}

/* 图片样式 */
.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* 示例数据展示区 */
.sample-data {
    background: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--gold-glow);
    padding: 20px;
    margin-top: 40px;
    border-radius: 5px;
}

.sample-data h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--gold-glow);
    margin-bottom: 15px;
}

.sample-data pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #39FF14;
}

/* 代码块高亮 */
.code-highlight {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    color: #00FF00;
    font-family: 'Courier New', Courier, monospace;
}

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

table, th, td {
    border: 1px solid var(--metal-silver);
}

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

th {
    background: var(--gradient-purple);
    color: #fff;
}

/* 列表样式 */
ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
}

li {
    margin-bottom: 10px;
}

/* 动画样式 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--neon-green);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* 3D 立方体 */
.cube {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotate 10s infinite linear;
    margin: 20px auto;
}

@keyframes rotate {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: #8A2BE2;
    backface-visibility: hidden;
    border: 1px solid var(--metal-silver);
}

.cube-face:nth-child(1) { transform: rotateY(0deg) translateZ(100px); }
.cube-face:nth-child(2) { transform: rotateY(90deg) translateZ(100px); }
.cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(100px); }
.cube-face:nth-child(4) { transform: rotateY(270deg) translateZ(100px); }

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        padding: 25px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 20px;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 2.5em;
    }
    nav a {
        margin: 0 10px;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .cube {
        width: 150px;
        height: 150px;
    }
    .card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
    .button-metal {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.8em;
    }
    .card {
        padding: 10px;
    }
}

