
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0074D9, #39CCCC);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 头部样式 */
header {
    background: radial-gradient(circle, rgba(255,87,34,1) 0%, rgba(0,0,0,0) 70%);
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
    animation: aurora-move 15s linear infinite;
}

header h1 {
    font-size: 2.5em;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

header p {
    font-size: 1.2em;
    margin-top: 10px;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: #FFC300;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1em;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    color: #FF5733;
    transform: scale(1.1);
}

/* 主内容区域 */
.main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.main h2 {
    font-size: 2em;
    color: #FFC300;
    text-align: center;
    margin-bottom: 20px;
}

.main p {
    font-size: 1em;
    margin-bottom: 20px;
}

.main h3 {
    font-size: 1.5em;
    color: #FF5733;
    margin-top: 30px;
    margin-bottom: 15px;
}

.main pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

.main code {
    color: #D63384;
}

/* 列表样式 */
.main ul, .main ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

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

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

.main table, .main th, .main td {
    border: 1px solid #ddd;
}

.main th, .main td {
    padding: 12px;
    text-align: left;
}

.main th {
    background-color: #0074D9;
    color: white;
}

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

button:hover {
    background: #FFC300;
    transform: scale(1.05);
}

/* 按钮动画 */
button {
    position: relative;
    overflow: hidden;
}

button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.3), rgba(255,255,255,0.3));
    transition: all 0.3s ease;
}

button:hover::after {
    left: 100%;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

/* 模块化设计 */
.section {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 30px;
}

.section:nth-child(even) {
    background: rgba(0, 0, 0, 0.1);
}

/* 响应式布局 */
@media (max-width: 1440px) {
    .main {
        padding: 30px 15px;
    }
}

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

    nav a {
        margin: 0 10px;
    }

    .main h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 1024px) {
    .section {
        padding: 30px 10px;
    }

    .main h3 {
        font-size: 1.3em;
    }
}

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

    .main h2 {
        font-size: 1.5em;
    }

    .main h3 {
        font-size: 1.1em;
    }

    nav {
        flex-direction: column;
    }

    nav a {
        margin: 5px 0;
    }
}

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

    .main h2 {
        font-size: 1.2em;
    }

    .main p, .main li, .main table, .main pre, .main button {
        font-size: 0.9em;
    }

    nav a {
        font-size: 0.9em;
    }
}

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

    .main h2 {
        font-size: 1em;
    }

    nav a {
        font-size: 0.8em;
    }
}

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

.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

.code-block code {
    display: block;
    white-space: pre-wrap;
}

/* 成功案例展示墙 */
.case-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.case-wall .card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-wall .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}

.case-wall .card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.case-wall .card .content {
    padding: 15px;
    text-align: center;
}

.case-wall .card .content h4 {
    margin: 0;
    font-size: 1.2em;
    color: #0074D9;
}

.case-wall .card .content p {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background: #0074D9;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: #FF5733;
    transform: scale(1.05);
}

/* 提示信息 */
.reference-note {
    text-align: center;
    font-size: 0.9em;
    color: #fff;
    margin-top: 30px;
    padding: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 5px;
}

