/* ========= 页面基础样式 ========= */
body {
    background: #f8f9fc;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    padding: 30px 8px;
    margin: 0;
}

/* ========= 简洁容器 ========= */
.demo-wrap {
    max-width: 1280px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 24px 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

/* ========= 相关阅读标题 ========= */
.related-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.2px;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #eef2f8;
    display: inline-block;
}

/* ========= 核心样式：底部链接区 ========= */
.footer-links {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.75rem 1.5rem;
    margin-top: 0.5rem;
}

/* 链接块样式 - 减小左右内边距 */
.footer-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.2rem 0.3rem;
    background-color: #fafcff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 450;
    color: #1f2a44;
    line-height: 1.4;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* 左侧装饰点 - 减小宽度 */
.footer-links a::before {
    content: "·";
    font-size: 1rem;
    font-weight: 700;
    color: #3b82f6;
    width: 0.8rem;
    text-align: center;
    opacity: 0.7;
    transition: all 0.2s;
}

/* 悬停效果 */
.footer-links a:hover {
    background-color: #ffffff;
    border-color: #d9e6ff;
    transform: translateX(3px);
    color: #0c4a6e;
}

.footer-links a:hover::before {
    color: #f97316;
    opacity: 1;
}

/* ========= 响应式布局 ========= */
@media (min-width: 640px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1440px) {
    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========= 隐藏文字样式 ========= */
.hidden-text {
    font-size: 1px;
    color: rgba(0, 0, 0, 0);
}

/* ========= 主内容卡片样式 ========= */
.main-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 5px;
}

/* 标题卡片样式 */
.title-card {
  background: linear-gradient(135deg, #fff8f0 0%, #fffef8 100%);
    border-radius: 16px 16px 16px 4px;
    padding: 20px 24px;
    margin-bottom: 24px;
    border-left: 6px solid #e89f3e;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
  
}

.title-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.icon-badge {
    background: #e89f3e;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
}

.icon-label {
    font-size: 11px;
    color: #b87c3a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.title-main {
    font-size: 16px;
    font-weight: 700;
    color: #2c2418;
    margin: 0 0 12px 0;
    line-height: 1.35;
    letter-spacing: -0.5px;
}

.title-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #bc9a6b;
}

/* 内容卡片样式 */
.content-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 14px;
    margin-bottom: 32px;
    border: 1px solid #efe6dc;
    font-size: 15px;
    color: #3a3228;
    line-height: 1.9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    width: 85%;
    background: linear-gradient(95deg, #f0a34b, #e8892e);
    color: #fff;
    padding: 15px 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 2px;
    border-bottom: 3px solid #c46a1a;
    transition: 0.2s;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(95deg, #f0a34b, #e8892e);
}

.btn-wrapper {
    text-align: center;
    margin-bottom: 28px;
}

/* 顶部链接按钮样式 */
.top-link-btn {
    display: block;
    width: 80%;
    margin: 20px auto;
    padding: 12px 0;
    background-color: #8A2BE2;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    max-width: 250px;
}

.top-link-btn:hover {
    background-color: #7a1dc9;
}

/* 顶部图片样式 */
.top-image {
    display: block;
    text-align: center;
    margin: 20px 0;
}

.top-image img {
    max-width: 350px;
    height: auto;
    margin: 0 auto;
}