/* ============================================
   海龟学堂 - 文章页样式
   依赖主站 style.css 的CSS变量和基础样式
   ============================================ */

/* 文章页主体 */
.guide-page {
    padding-top: 80px;
    padding-bottom: 60px;
    background: var(--bg-light);
    min-height: calc(100vh - 80px);
}

/* 面包屑 */
.breadcrumb {
    max-width: 800px;
    margin: 0 auto 24px;
    padding: 0 20px;
    font-size: 14px;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb-sep { margin: 0 8px; color: var(--text-muted); }

/* 文章容器 */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 文章头部 */
.article-header {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.article-category {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}
.article-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 12px;
}
.article-meta {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.article-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* 文章正文 */
.article-body {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}
.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 28px 0 12px;
}
.article-body p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 16px;
}
.article-body ul, .article-body ol {
    margin: 0 0 20px 20px;
}
.article-body li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 8px;
}
.article-body strong { color: var(--text-dark); font-weight: 600; }
.article-body code {
    background: var(--bg-mid);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--primary-dark);
}
.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 20px 0;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 0 8px 8px 0;
    color: var(--text-mid);
}

/* 步骤卡片 */
.step-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
    border-left: 4px solid var(--primary);
    position: static;
    overflow: visible;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.step-card .step-number {
    flex-shrink: 0;
    position: static;
    top: auto;
    right: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
}
.step-card p {
    flex: 1;
    margin-bottom: 0;
    text-align: left;
}

/* 提示框 */
.tip-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 15px;
    color: var(--text-mid);
}
.tip-box strong { color: var(--secondary); }

.warning-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 15px;
    color: var(--text-mid);
}
.warning-box strong { color: var(--accent); }

/* 免责声明 */
.disclaimer {
    background: var(--bg-mid);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-top: 40px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
    border-top: 3px solid var(--text-muted);
}
.disclaimer-title {
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 8px;
    font-size: 15px;
}

/* 文章底部CTA */
.article-cta {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 24px;
    text-align: center;
}
.article-cta h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.article-cta p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}
.article-cta .btn { margin: 0 6px; }

/* 栏目首页 */
.guide-index-header {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
    padding: 60px 20px 50px;
    text-align: center;
}
.guide-index-header h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}
.guide-index-header p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}
.guide-list {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}
.guide-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    text-decoration: none;
    display: block;
    transition: var(--transition);
    border: 1px solid transparent;
}
.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.guide-card-category {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}
.guide-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.guide-card-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}
.guide-card-meta {
    font-size: 13px;
    color: var(--text-muted);
}

/* 响应式 */
@media (max-width: 768px) {
    .article-header, .article-body { padding: 24px; }
    .article-title { font-size: 24px; }
    .article-body h2 { font-size: 20px; }
    .guide-index-header h1 { font-size: 28px; }
    .guide-card { padding: 20px; }
}
