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

/* 全局字体设置 */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background: linear-gradient(135deg, #8BC34A, #BDB76B); /* 橄榄绿到陶土棕渐变背景 */
    background-attachment: fixed;
    background-size: cover;
    padding: 20px;
}

/* 链接样式 */
a {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0D47A1;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(189, 183, 107, 0.8); /* 陶土棕半透明背景 */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

nav .logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #fff;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
    color: #FFD700;
    transform: scale(1.1);
}

/* 头部横幅样式 */
.header-banner {
    position: relative;
    width: 100%;
    height: 300px;
    background-image: url('https://images.gptkong.com/demo/sample5.png');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
}

.header-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,87,34,0.7), transparent);
    animation: aurora-move 15s linear infinite;
}

@keyframes aurora-move {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header-banner h1 {
    position: absolute;
    bottom: 20px;
    left: 30px;
    color: #fff;
    font-size: 2.5rem;
    font-family: 'Bebas Neue', sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 主内容样式 */
main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-bottom: 40px;
}

main .content {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

main .sidebar {
    background: rgba(189, 183, 107, 0.8);
    padding: 20px;
    border-radius: 15px;
    color: #fff;
}

main .sidebar h3 {
    margin-bottom: 15px;
    font-family: 'Bebas Neue', sans-serif;
}

main .sidebar ul {
    list-style: none;
}

main .sidebar ul li {
    margin-bottom: 10px;
}

main .sidebar ul li a {
    color: #FFD700;
}

.main-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    filter: blur(2px);
    opacity: 0.8;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Bebas Neue', sans-serif;
    color: #2E7D32;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

/* 段落与列表 */
p {
    margin-bottom: 15px;
    font-size: 1rem;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

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

table th, table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

table th {
    background: #8BC34A;
    color: #fff;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

/* 代码块样式 */
pre {
    background: #272822;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

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

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

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #BDB76B;
    color: #fff;
    border: 2px solid #8BC34A;
    border-radius: 25px;
    text-transform: uppercase;
    font-weight: bold;
    transition: transform 0.3s ease, background 0.3s ease;
}

.button:hover {
    background: #8BC34A;
    transform: scale(1.05);
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(189, 183, 107, 0.8);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
}

footer p {
    font-size: 0.9rem;
}

/* 动画与动态效果 */
button {
    transition: transform 0.3s ease-in-out;
}

button:hover {
    transform: scale(1.1); /* 放大效果 */
    cursor: pointer;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #fff;
    animation: particles 2s infinite;
}

@keyframes particles {
    0% { opacity: 0; transform: translateY(-100px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* 表单填写时的藤蔓效果 */
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #8BC34A;
    border-radius: 5px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    border-color: #BDB76B;
    box-shadow: 0 0 10px rgba(189, 183, 107, 0.5);
}

/* 藤蔓图案 */
.vine {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') repeat;
    opacity: 0.3;
    pointer-events: none;
}

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

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

@media (max-width: 1024px) {
    nav ul {
        display: none;
    }
    nav {
        justify-content: center;
    }
    main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-banner {
        height: 200px;
    }
    .header-banner h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    nav {
        flex-direction: column;
        padding: 10px 20px;
    }
    nav .logo {
        margin-bottom: 10px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    h4 {
        font-size: 1rem;
    }
    .header-banner {
        height: 150px;
    }
}

