
/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0047AB, #87CEEB);
    color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
}
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #ffffff;
}
a {
    color: #32CD32;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #228B22;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}
header {
    text-align: center;
    padding: 60px 0;
    background: radial-gradient(circle, rgba(0,71,171,1) 0%, rgba(135,206,235,1) 100%);
    position: relative;
    overflow: hidden;
}
header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center / cover;
    opacity: 0.2;
    animation: aurora-move 15s linear infinite;
}
header h1 {
    font-size: 48px;
    margin-bottom: 20px;
}
header p {
    font-size: 20px;
    color: #f0f0f0;
}
.section {
    padding: 60px 0;
}
.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}
.section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.card {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.card img {
    width: 100%;
    border-radius: 10px;
}
.card h3 {
    margin: 15px 0;
    font-size: 24px;
}
.card p {
    font-size: 16px;
    color: #f0f0f0;
}
.button {
    display: inline-block;
    background-color: #32CD32;
    border: none;
    padding: 10px 20px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}
.button:hover {
    background-color: #228B22;
}
footer {
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
}
footer p {
    font-size: 14px;
}
/* 3D 立方体 */
.cube-container {
    perspective: 1000px;
    width: 150px;
    height: 150px;
    margin: 0 auto 40px;
}
.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 10s infinite linear;
}
.cube div {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 204, 0, 0.8);
    border: 2px solid #ffffff;
}
.cube .front  { transform: rotateY(  0deg) translateZ(75px); }
.cube .back   { transform: rotateY(180deg) translateZ(75px); }
.cube .right  { transform: rotateY( 90deg) translateZ(75px); }
.cube .left   { transform: rotateY(-90deg) translateZ(75px); }
.cube .top    { transform: rotateX( 90deg) translateZ(75px); }
.cube .bottom { transform: rotateX(-90deg) translateZ(75px); }
@keyframes rotate {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}
/* 动画效果 */
@keyframes aurora-move {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 代码示例样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 14px;
}
code {
    color: #32CD32;
    font-family: 'Courier New', Courier, monospace;
}
/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: left;
}
th {
    background-color: #32CD32;
    color: #ffffff;
}
td {
    background-color: rgba(255, 255, 255, 0.1);
}
/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 40px;
    }
    header p {
        font-size: 18px;
    }
    .section h2 {
        font-size: 32px;
    }
    .card h3 {
        font-size: 22px;
    }
}
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
    .cube-container {
        width: 120px;
        height: 120px;
    }
    .cube div {
        width: 120px;
        height: 120px;
    }
}
@media (max-width: 1024px) {
    header {
        padding: 40px 0;
    }
    .section {
        padding: 40px 0;
    }
}
@media (max-width: 768px) {
    header h1 {
        font-size: 32px;
    }
    header p {
        font-size: 16px;
    }
    .section h2 {
        font-size: 28px;
    }
    .card h3 {
        font-size: 20px;
    }
    .cube-container {
        width: 100px;
        height: 100px;
    }
    .cube div {
        width: 100px;
        height: 100px;
    }
}
@media (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }
    header p {
        font-size: 14px;
    }
    .section h2 {
        font-size: 24px;
    }
    .card h3 {
        font-size: 18px;
    }
    .button {
        padding: 8px 16px;
        font-size: 14px;
    }
}
@media (max-width: 320px) {
    header h1 {
        font-size: 20px;
    }
    header p {
        font-size: 12px;
    }
    .section h2 {
        font-size: 20px;
    }
    .card h3 {
        font-size: 16px;
    }
    .button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

