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

/* 体背景与字体 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* 渐变背景动画 */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

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

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00eaff;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #00eaff;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 5px 10px;
    border: none;
    border-radius: 20px;
    outline: none;
}

.search-box input::placeholder {
    color: #ffffff;
    opacity: 0.7;
}

/* 主体布局 */
.main-content {
    display: flex;
    flex-wrap: wrap;
    margin-top: 80px;
    gap: 20px;
}

.left-section, .right-section {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.left-section {
    max-width: 60%;
}

.right-section {
    max-width: 35%;
}

/* AI作品预览 */
.ai-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.ai-gallery img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.ai-gallery img:hover {
    transform: scale(1.05);
}

/* 参数调节面板 */
.parameters {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.parameters label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.parameters input[type="range"] {
    width: 100%;
}

/* 示例展示 */
.article-section {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ffd700;
}

.article-section p {
    margin-bottom: 10px;
    font-size: 16px;
}

.article-section pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 10px;
}

.article-section code {
    font-family: 'Courier New', Courier, monospace;
    color: #00ffea;
}

.article-section ul {
    list-style: disc inside;
    margin-bottom: 10px;
}

.article-section li {
    margin-bottom: 5px;
}

.article-section h3, .article-section h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #ff69b4;
}

.article-section h3 {
    font-size: 20px;
}

.article-section h4 {
    font-size: 18px;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #00eaff;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.button:hover {
    background: #0099cc;
}

.button::before {
    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: all 0.3s ease;
}

.button:hover::before {
    width: 200px;
    height: 200px;
}

/* 动态粒子背景 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') repeat;
    opacity: 0.05;
    pointer-events: none;
    animation: particleMove 60s linear infinite;
}

@keyframes particleMove {
    from { transform: translate(0, 0); }
    to { transform: translate(-10000px, 10000px); }
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-gallery img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    object-fit: cover;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .left-section, .right-section {
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 10px 20px;
    }

    nav ul li a {
        font-size: 14px;
    }

    .article-section h2 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .ai-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .parameters {
        gap: 10px;
    }

    .article-section h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px;
    }

    .logo {
        font-size: 20px;
    }

    nav ul li a {
        font-size: 12px;
    }

    .button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .article-section h2 {
        font-size: 18px;
    }
}

@media (max-width: 320px) {
    body {
        padding: 10px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    .ai-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .left-section, .right-section {
        max-width: 100%;
    }
}

/* 卡片式设计 */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 提示文字 */
.reference-note {
    margin-top: 20px;
    font-size: 14px;
    color: #ffeb3b;
    text-align: center;
}

