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

body {
    font-family: 'Roboto', 'Helvetica', sans-serif;
    background: linear-gradient(135deg, #003f73, #6a0dad);
    color: #e0e0e0;
    line-height: 1.6;
    letter-spacing: 0.05em;
    padding: 20px;
    transition: background 0.5s, color 0.5s;
}

/* 标题样式 */
header {
    text-align: center;
    padding: 40px 0;
}

header h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

header p {
    font-size: 1.2rem;
    color: #ffdd57;
}

/* 内容布局 */
.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

/* 示例数据展示 */
.sample-data {
    grid-column: 1 / -1;
    background: rgba(0, 63, 115, 0.8);
    padding: 20px;
    border-radius: 10px;
}

.sample-data h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ffdd57;
}

.sample-data pre {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9rem;
}

.sample-data table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

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

.sample-data th {
    background: #333333;
}

footer {
    text-align: center;
    padding: 30px 0;
    font-size: 1rem;
    color: #ffdd57;
}

/* 按钮与互动效果 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #ff5722;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
    text-decoration: none;
}

.button:hover {
    background: #e64a19;
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.6s ease-out;
}

.button:active::after {
    width: 200%;
    height: 200%;
    opacity: 0;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.8rem;
    }

    .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }

    .button {
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .button {
        padding: 6px 12px;
    }
}

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

    .button {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
}

/* 代码块样式 */
code {
    background: #1a1a1a;
    color: #ffdd57;
    padding: 2px 4px;
    border-radius: 3px;
}

pre code {
    display: block;
    padding: 15px;
    overflow-x: auto;
    border-radius: 5px;
}

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

th, td {
    padding: 10px;
    border: 1px solid #555555;
}

th {
    background: #333333;
    color: #ffdd57;
}

td {
    background: rgba(255, 255, 255, 0.05);
}

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