/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 顶部 LOGO 区域 */
.header-logo {
    background: white;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-circle {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #FA2800 0%, #FF6B5B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.logo-name {
    font-size: 18px;
    font-weight: 600;
    color: #FA2800;
    letter-spacing: 1.5px;
    text-decoration: none;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 12px 16px;
    font-size: 14px;
    color: #FA2800;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.breadcrumb a {
    color: #FA2800;
    text-decoration: none;
}

/* 文章标题链接样式 */
.article-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.article-title-link:hover {
    color: #FA2800;
}

/* 内容区域 */
.content-section {
    background: white;
    padding: 24px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 24px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #FA2800 0%, #FF4D33 100%);
    border-radius: 2px;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag-item {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
}

.main-title-centered {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 6px 0;
    text-align: center;
    line-height: 1.4;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* 标题装饰线 */
.title-decoration-line {
    position: relative;
    height: 1.5px;
    margin: 6px auto 16px auto;
    width: calc(100% * 1.3);
    max-width: 260px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(250, 40, 0, 0.1) 20%,
        rgba(250, 40, 0, 0.3) 40%,
        rgba(250, 40, 0, 0.5) 50%,
        rgba(250, 40, 0, 0.3) 60%,
        rgba(250, 40, 0, 0.1) 80%,
        transparent 100%);
    border-radius: 2px;
    overflow: hidden;
}

.title-decoration-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(250, 40, 0, 0.5) 30%,
        rgba(255, 107, 91, 0.5) 50%,
        rgba(250, 40, 0, 0.5) 70%,
        transparent 100%);
    border-radius: 1px;
}

.full-content {
    background: #fffbfa;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 开头结尾展示区 */
.content-showcase {
    background: linear-gradient(135deg, #fff9f8 0%, #fff5f3 100%);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 10px 0;
    position: relative;
}

.content-showcase::before {
    content: '\201C';
    font-size: 48px;
    color: #FA2800;
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
}

.content-showcase-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-indent: 2em;
    position: relative;
    z-index: 1;
}

.content-paragraph {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 16px;
}

.content-paragraph:last-child {
    margin-bottom: 0;
}

/* 思考问题区域 */
.qa-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.qa-section-title {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qa-section-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, #FA2800 0%, #FF4D33 100%);
    border-radius: 2px;
}

.qa-item {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.qa-question {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.qa-question-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FA2800 0%, #FF4D33 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    font-weight: 600;
}

.qa-question-text {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

.qa-answer {
    background: #fffbfa;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

/* 操作按钮 */
.action-bar {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.btn {
    padding: 11px 28px;
    border-radius: 24px;
    font-size: 15px;
    border: none;
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #FA2800 0%, #FF4D33 100%);
    color: white;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

/* 上下篇导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.article-nav-btn {
    flex: 1;
    padding: 10px 14px;
    background: #fff5f3;
    border: 1px solid #ffe0d6;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-nav-icon {
    font-size: 16px;
    color: #FA2800;
}

.article-nav-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    flex: 1;
}

/* 文章元信息 */
.article-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 12px 0 16px 0;
}

.meta-item {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .meta-item {
        font-size: 12px;
    }
    
    /* 服务对象移动端 2 列布局 */
    .content-section > div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* 服务流程移动端 2 列布局 - 精确匹配 */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 相关文章推荐 */
/* 相关文章推荐区域 */
.related-docs-section {
    background: white;
    margin-top: 16px;
    padding-top: 0;
}

.related-docs {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.related-docs-title {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5f5f5;
}

.related-docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    overflow: hidden;
}

.related-docs-item {
    padding: 8px 12px;
    background: #fffbfa;
    border-radius: 6px;
    transition: all 0.2s;
}

.related-docs-item:hover {
    background: #fff5f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(250, 40, 0, 0.1);
}

.related-docs-list li a {
    color: #333333 !important;  /* 深灰色，接近黑色 */
    text-decoration: none;
    font-size: 14px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-docs-list li a:hover {
    color: #FA2800 !important;  /* 悬停时变为红色 */
    text-decoration: underline;
}

.related-docs-list li a:visited {
    color: #333333 !important;  /* 访问后保持深灰色 */
}

.related-docs-list li a:link {
    color: #333333 !important;  /* 默认状态深灰色 */
}

/* 桌面端适配：4 列布局 */
@media (min-width: 768px) {
    .related-docs-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px 16px;
    }
    
    .related-docs-item {
        padding: 10px 14px;
    }
}

/* 热门话题区域 */
.hot-topics-section {
    background: white;
    margin-top: 16px;
    padding: 20px 16px;
}

.hot-topics-title {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5f5f5;
}

.hot-topics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.hot-topic-item {
    background: linear-gradient(135deg, #fff9f8 0%, #fff5f3 100%);
    border: 1px solid #FFE0D6;
    border-radius: 8px;
    padding: 10px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-height: 40px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.hot-topic-item:hover {
    background: linear-gradient(135deg, #fff0ed 0%, #ffe6e0 100%);
    border-color: #FFD6CC;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(250, 40, 0, 0.1);
}

.hot-topic-text {
    font-size: 13px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hot-topics-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .hot-topic-item {
        padding: 8px 4px;
        min-height: 36px;
    }

    .hot-topic-text {
        font-size: 11px;
    }
}

/* 分隔装饰 */
.section-divider {
    margin: 24px 0;
    text-align: center;
}

.divider-line {
    height: 2px;
    background: linear-gradient(to right, transparent, #FFECE8, transparent);
    margin-bottom: 8px;
}

.divider-text {
    font-size: 12px;
    color: #999;
    letter-spacing: 2px;
}

/* 底部版权 */
.footer {
    text-align: center;
    padding: 24px 20px;
    color: #999;
    font-size: 13px;
    border-top: 1px solid #f0f0f0;
    margin-top: 20px;
}

/* 底部信息区域 */
.disclaimer {
    background: white;
    margin-top: 16px;
    padding: 30px 24px;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-title {
    color: #FA2800;
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.footer-text {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.footer-contact {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.footer-copyright {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
}

.copyright-text,
.icp-text {
    color: #999;
    font-size: 13px;
    text-align: center;
    margin: 8px 0 0 0;
}

/* Toast 提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.toast.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #FA2800 0%, #FF6B5B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(250, 40, 0, 0.3);
    z-index: 1000;
    transition: all 0.2s;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #FF4D33 0%, #FF8572 100%);
    box-shadow: 0 6px 16px rgba(250, 40, 0, 0.4);
    transform: translateY(-2px);
}

.back-to-top:active {
    transform: translateY(0);
}

/* 响应式适配 */
@media (max-width: 480px) {
    .main-title {
        font-size: 24px;
    }

    .card {
        margin: 12px;
        padding: 20px;
    }

    .full-content {
        padding: 20px;
    }

    .content-paragraph {
        font-size: 16px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .section-label {
        font-size: 14px;
        padding: 5px 12px;
    }

    .composition-meta {
        gap: 8px;
    }

    .meta-item {
        font-size: 12px;
        padding: 5px 10px;
    }

    /* 移动端回到顶部按钮适配 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* PC 端优化适配 */
@media (min-width: 901px) {
    body {
        max-width: 800px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    }

    .header-logo {
        padding: 16px 32px;
    }

    .content-section {
        padding: 32px;
    }

    .main-title-centered {
        font-size: 26px;
    }

    .section-title {
        font-size: 19px;
    }

    .content-showcase-text {
        font-size: 17px;
    }
}
