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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0F3460, #5E548E);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 60px 20px;
    background: rgba(15, 52, 96, 0.8);
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 3em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    animation: fadeInDown 1s ease-out forwards;
}

nav {
    display: flex;
    justify-content: center;
    background: rgba(94, 84, 142, 0.8);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 2;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00ffff;
}

main {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

section {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #5E548E;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out forwards;
}

section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ffffff;
    border-bottom: 2px solid #00ffff;
    display: inline-block;
    padding-bottom: 5px;
}

.section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item, .case-item {
    flex: 1 1 300px;
    background: rgba(94, 84, 142, 0.8);
    padding: 20px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.feature-item img, .case-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.feature-item h3, .case-item h3 {
    margin-top: 15px;
    font-size: 1.5em;
    color: #00ffff;
}

.feature-item p, .case-item p {
    margin-top: 10px;
    font-size: 1em;
    color: #ffffff;
}

#sample-article article {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #00ffff;
    overflow: auto;
}

#sample-article h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ffffff;
    border-bottom: 2px solid #5E548E;
    display: inline-block;
    padding-bottom: 5px;
}

#sample-article h3 {
    font-size: 1.5em;
    margin-top: 20px;
    color: #00ffff;
}

#sample-article p {
    margin-top: 10px;
    font-size: 1em;
    color: #ffffff;
}

#sample-article pre {
    background: rgba(0, 255, 255, 0.2);
    padding: 15px;
    border-radius: 5px;
    overflow: auto;
}

#sample-article code {
    color: #ffff00;
    font-family: 'Courier New', Courier, monospace;
}

#sample-data ul {
    list-style: none;
    padding-left: 0;
}

#sample-data li {
    background: rgba(94, 84, 142, 0.8);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

#sample-data li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: #00ffff;
    border-radius: 50%;
    flex-shrink: 0;
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(15, 52, 96, 0.8);
    color: #ffffff;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out forwards;
}

footer p {
    font-size: 1em;
}

/* 按钮样式 */
.button {
    background-color: #0F3460;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1em;
}

.button:hover {
    background-color: #5E548E;
    transform: scale(1.1);
}

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

    nav a {
        margin: 0 10px;
        font-size: 1em;
    }

    section h2 {
        font-size: 1.8em;
    }

    .feature-item, .case-item {
        flex: 1 1 45%;
    }
}

@media (max-width: 1200px) {
    main {
        padding: 30px 15px;
    }

    section {
        padding: 25px;
    }

    .feature-item, .case-item {
        flex: 1 1 100%;
    }
}

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

    section h2 {
        font-size: 1.6em;
    }

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

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

    nav a {
        margin: 0 8px;
        font-size: 0.9em;
    }

    section h2 {
        font-size: 1.4em;
    }

    .feature-item, .case-item {
        flex: 1 1 100%;
    }
}

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

    nav a {
        margin: 0 5px;
        font-size: 0.8em;
    }

    section h2 {
        font-size: 1.2em;
    }

    .button {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

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

    nav a {
        display: none;
    }

    section h2 {
        font-size: 1em;
    }
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 动态渐变背景 */
.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, #0F3460, #5E548E, #0F3460);
    background-size: 600% 600%;
    animation: gradientAnimation 15s ease infinite;
    z-index: -1;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 图片装饰 */
.decorative-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 5px;
    margin-top: 15px;
}

/* 代码块样式 */
code {
    background: rgba(0, 255, 255, 0.2);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

pre {
    background: rgba(0, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

/* 按需增加的样式 */
.button-primary {
    background: #5E548E;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.button-primary:hover {
    background: #0F3460;
    transform: translateY(-3px);
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .card {
        padding: 15px;
    }
}

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