
/* 主体样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #8B4513 70%, #E6E6FA 25%, #FFD700 5%);
    color: #F5F5DC;
    line-height: 1.6;
}
/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(72, 61, 139, 0.8);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.navbar a {
    color: #F5F5DC;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease;
}
.navbar a:hover {
    color: #FFD700;
}
/* 面包屑导航样式 */
.breadcrumb {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 80px 20px 20px 20px;
    font-size: 16px;
}
.breadcrumb li::after {
    content: '>';
    margin-left: 10px;
    color: #E6E6FA;
}
.breadcrumb li:last-child::after {
    content: '';
}
.breadcrumb a {
    color: #F5F5DC;
    text-decoration: none;
}
.breadcrumb a:hover {
    color: #FFD700;
}
/* 搜索栏样式 */
.search-bar {
    padding: 10px;
    border: none;
    border-radius: 5px;
    outline: none;
    transition: width 0.3s ease;
    font-size: 16px;
}
.search-bar:focus {
    width: 200px;
}
/* 主要容器样式 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}
/* 模块样式 */
.module {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.module:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
/* 标题样式 */
h2, h3, h4 {
    font-family: 'Georgia', serif;
    color: #E6E6FA;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
h2 {
    font-size: 24px;
}
h3 {
    font-size: 20px;
}
h4 {
    font-size: 18px;
}
/* 正文样式 */
p, li {
    font-size: 16px;
    color: #F5F5DC;
}
/* 按钮样式 */
.button {
    background-color: #483D8B;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 16px;
}
.button:hover {
    background-color: #8B4513;
    transform: scale(1.05);
}
/* 图片样式 */
img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0,0,0,0.4);
}
/* 背景装饰元素 */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent url('https://images.gptkong.com/demo/sample1.png') repeat;
    animation: moveStars 50s linear infinite;
    z-index: -1;
}
@keyframes moveStars {
    from { transform: translate(0, 0); }
    to { transform: translate(-1000px, 0); }
}
.halo {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    animation: haloAnimation 10s ease-in-out infinite;
    z-index: -1;
}
@keyframes haloAnimation {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}
/* 动画加载效果 */
.loader {
    opacity: 0;
    animation: fadeIn 2s forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}
/* 视差滚动效果 */
.parallax {
    background-image: url('https://images.gptkong.com/demo/sample2.png');
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateZ(0);
}
/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .search-bar:focus {
        width: 150px;
    }
}
@media (max-width: 600px) {
    h2, h3, h4 {
        font-size: 16px;
    }
    p, li {
        font-size: 14px;
    }
}
/* 点缀色使用 */
.accent {
    color: #FFD700;
}
/* 黄金比例布局 */
.main-content {
    max-width: 1125px; /* 700px 主色 + 400px 辅色 + 25px 点缀 */
    margin: 0 auto;
}
/* 导航链接 */
.nav-link {
    font-size: 18px;
}
/* 强调文字 */
.highlight {
    background: linear-gradient(90deg, #FFD700, #E6E6FA);
    -webkit-background-clip: text;
    color: transparent;
}
/* 收藏夹效果 */
.favorites {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0,0,0,0.3);
}
/* 页脚样式 */
.footer {
    background: rgba(72, 61, 139, 0.9);
    color: #F5F5DC;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
}
.footer a {
    color: #FFD700;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}
/* 提示文本样式 */
.reference-note {
    text-align: center;
    font-size: 18px;
    margin: 40px 0;
    color: #FFD700;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
/* 动态背景 */
.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #8B4513, #483D8B, #E6E6FA);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* 链接样式 */
a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #E6E6FA;
}

