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

/* 全局字体与颜色 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #2c3e50, #8e44ad);
    color: #ffffff;
    line-height: 1.6;
    letter-spacing: 0.5px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    transition: background 0.5s ease;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    margin-bottom: 15px;
    color: #f39c12;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h1 {
    font-size: 2.5rem;
    margin-top: 20px;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

/* 段落样式 */
p {
    font-size: 1rem;
    margin-bottom: 20px;
    max-width: 800px;
    text-align: justify;
}

/* 渐变按钮 */
button {
    background: linear-gradient(90deg, #FFA500, #FFD700);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

button:hover {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transform: scale(1.05);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #f39c12;
    transition: width 0.3s;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a[rel="nofollow"] {
    /* Internal links have no additional styles */
}

/* 核心内容区 */
.main-content {
    margin-top: 100px;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

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

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

table, th, td {
    border: 1px solid #f39c12;
}

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

th {
    background: rgba(243, 156, 18, 0.8);
    color: #ffffff;
}

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

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow: auto;
    max-width: 100%;
    margin-bottom: 20px;
}

code {
    color: #f1c40f;
    font-family: 'Courier New', Courier, monospace;
}

/* 动画效果 */
@keyframes aurora-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    background: radial-gradient(circle, rgba(255,87,34,1), rgba(0,0,0,0) );
    animation: aurora-move 15s linear infinite;
}

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

    .navbar {
        padding: 10px 20px;
    }
}

@media (max-width: 1200px) {
    .card {
        max-width: 700px;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 2rem;
    }

    .card {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .navbar a {
        margin: 10px 0;
    }

    .card {
        max-width: 90%;
    }
}

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

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

    table, th, td {
        font-size: 0.9rem;
    }
}

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

    button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    table, th, td {
        font-size: 0.8rem;
    }
}

