
/* 样式设计参考页 - 数字星河主题 */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: #f0f0f0;
    background: linear-gradient(180deg, #03071e 0%, #120a8f 100%);
    overflow-x: hidden;
    line-height: 1.7;
    letter-spacing: 0.6px;
}

/* 标题和文本通用样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

h2 { font-size: 2.8em; margin-top: 30px; }
h3 { font-size: 2.2em; }
h4 { font-size: 1.8em; }
p { font-size: 1.1em; color: #d0d0d0; }

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

/* 代码块样式 */
pre {
    background-color: #1e293b;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.4;
    tab-size: 4;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    margin: 15px 0;
}

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

/* 容器和布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.section {
    margin-bottom: 60px;
    padding: 30px 0;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; }

/* 首页头部区域 */
.hero {
    text-align: center;
    padding: 120px 30px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2)), url('https://images.gptkong.com/demo/sample1.png');
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 15px;
    margin-bottom: 60px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.hero p {
    font-size: 1.4em;
    color: #eee;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

/* 特色功能展示 */
.features-section {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    padding: 60px 0;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
    margin-bottom: 60px;
}

.feature-card {
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    background-color: rgba(30, 41, 59, 0.8);
}

.feature-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.feature-card h3 { margin-bottom: 15px; }
.feature-card p { color: #c0c0c0; }

/* 示例数据展示区域 */
.data-section {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    padding: 60px 0;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    margin-bottom: 60px;
}

.data-list {
    list-style: none;
    padding-left: 0;
}

.data-list li {
    margin-bottom: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.data-list li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.data-list li strong { color: #ffffff; }

/* 示例文章展示区域 */
.article-section {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    padding: 60px 0;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.6);
    margin-bottom: 60px;
}

.article-content {
    background-color: rgba(30, 41, 59, 0.6);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content h2 { font-size: 2.5em; margin-top: 0; }
.article-content h3 { font-size: 1.8em; }
.article-content p, .article-content li { color: #c0c0c0; }
.article-content b { color: #ffffff; }
.article-content i { color: #a0e7e5; font-style: italic; }
.article-content ol { padding-left: 25px; }
.article-content code { color: #ffb6c1; }

/* 页脚 */
footer {
    text-align: center;
    padding: 30px 0;
    color: #999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container { padding: 20px; }
    .hero { padding: 80px 20px; }
    .hero h1 { font-size: 3.5em; }
    .hero p { font-size: 1.2em; }
    .section { padding: 40px 0; }
    .article-content { padding: 30px; }
}

@media (max-width: 768px) {
    .hero { padding: 60px 15px; }
    .hero h1 { font-size: 2.8em; }
    .hero p { font-size: 1.1em; }
    h2 { font-size: 2.4em; }
    h3 { font-size: 2em; }
    h4 { font-size: 1.6em; }
    .article-content { padding: 20px; }
}

@media (max-width: 480px) {
    .hero { padding: 40px 10px; }
    .hero h1 { font-size: 2.2em; }
    .hero p { font-size: 1em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.8em; }
    h4 { font-size: 1.4em; }
    .container { padding: 15px; }
    .section { padding: 30px 0; }
    .article-content { padding: 15px; }
    .feature-card img { width: 60px; height: 60px; }
}

@media (max-width: 320px) {
    .hero h1 { font-size: 1.8em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.6em; }
    h4 { font-size: 1.3em; }
}

