
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #000046, #1cb5e0);
    color: #ffffff;
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: bold;
    text-transform: uppercase;
    animation: fadeIn 2s ease-in-out;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

a {
    color: #1cb5e0;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #ff6f61;
}

/* 布局与网格系统 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.grid-item:hover {
    transform: scale(1.05);
}

/* 视差滚动效果 */
.parallax-background {
    position: relative;
    height: 100vh;
    background-image: url("https://images.gptkong.com/demo/sample1.png");
    background-size: cover;
    background-position: center;
    transform: translateY(-50%);
    transition: transform 0.5s ease-in-out;
}

.parallax-foreground {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #fff;
    text-align: center;
}

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

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1cb5e0;
    color: #fff;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

.button:hover {
    transform: scale(1.1);
}

.shape {
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

th, td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    text-align: left;
}

th {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    table, th, td {
        display: block;
        width: 100%;
    }

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

