/* ========== 全局变量与重置 ========== */
:root {
    --primary-blue: #2b6ef0;
    --text-main: #1f2937;
    --gradient-blue: linear-gradient(45deg, #2b6ef0, #5b8af7);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
body {
    color: var(--text-main);
    background: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
}

/* 导航栏 (与首页蓝色版完全一致) */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    height: 80px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: radial-gradient(circle at 10% 20%, rgba(43, 110, 240, 0.03) 0%, rgba(255, 255, 255, 1) 50%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f3f4f6;
}
.nav-left { display: flex; align-items: center; }
.logo { margin-right: 40px; }
.logo img { height: 30px; width: 158px; }
.nav-links { display: flex; list-style: none; }
.nav-links li {
    display: flex; align-items: center; gap: 4px; position: relative;
    margin: 0 15px; border-bottom: 3px solid transparent; transition: 0.3s;
}
.nav-links li:hover { border-bottom: 3px solid #D6E4FF; }
.nav-links a {
    text-decoration: none; color: var(--text-main); font-size: 15px; font-weight: 500;
    display: flex; align-items: center;
}
.nav-links-svg { width: 12px; height: 12px; }
.nav-right { display: flex; align-items: center; }
.btn-link {
    text-decoration: none; color: var(--primary-blue); padding: 10px 24px;
    border: 2px solid var(--primary-blue); border-radius: 6px; font-weight: 600; font-size: 14px;
    margin-left: 12px; transition: 0.3s;
}
.btn-link:hover { background: var(--primary-blue); color: #fff; }
.btn-outline {
    text-decoration: none; color: #fff; background: var(--primary-blue); padding: 11px 24px;
    border-radius: 6px; font-weight: 600; font-size: 14px; transition: 0.3s;
}
.btn-outline:hover { background: #1e5acf; }

/* 教程页主体容器 */
.guide-wrapper {
    max-width: 1200px; margin: 0 auto; padding: 160px 4% 100px;
    display: flex; gap: 50px;
}
.guide-content { flex: 1; max-width: 800px; }
.guide-header {
    margin-bottom: 40px; border-bottom: 1px solid #f3f4f6; padding-bottom: 30px;
}
.guide-header h1 {
    font-size: 3.2rem; line-height: 1.2; font-weight: 700; color: #1f2937; margin-bottom: 16px;
}
.guide-header h1 span {
    background: var(--gradient-blue);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.guide-meta { font-size: 0.95rem; color: #6b7280; font-weight: 500; }

/* 配对流程可视化 (创意版块) */
.flow-steps {
    display: flex; align-items: center; justify-content: space-between;
    margin: 40px 0; background: #f8faff; border-radius: 24px; padding: 40px 30px;
    flex-wrap: wrap; gap: 15px;
}
.flow-item {
    display: flex; align-items: flex-start; gap: 20px; flex: 1 1 180px;
}
.flow-icon {
    width: 44px; height: 44px; background: var(--primary-blue); color: #fff;
    font-weight: 700; font-size: 1.3rem; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.flow-content h4 {
    font-size: 1.2rem; font-weight: 700; color: #1f2937; margin-bottom: 6px;
}
.flow-content p {
    font-size: 0.95rem; color: #4b5563; line-height: 1.6; font-weight: 300;
}
.flow-arrow {
    font-size: 2rem; color: #5b8af7; font-weight: 700; align-self: center;
}

/* 文章富文本 */
.article-body h2 {
    font-size: 2rem; font-weight: 700; color: #1f2937; margin: 45px 0 20px;
    display: flex; align-items: center; gap: 10px;
}
.article-body h2::before {
    content: ''; display: inline-block; width: 6px; height: 28px;
    background: var(--primary-blue); border-radius: 3px;
}
.article-body h3 { font-size: 1.4rem; font-weight: 700; color: #374151; margin: 30px 0 15px; }
.article-body p {
    font-size: 1.05rem; color: #4b5563; line-height: 1.8; margin-bottom: 20px; font-weight: 300;
}
.article-body p strong { font-weight: 700; color: #000; }

/* 图片占位组件 */
.guide-media-box {
    margin: 35px 0; background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 12px;
    overflow: hidden; text-align: center; padding: 20px;
}
.guide-media-box img {
    max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 6px;
    background: #ffffff; box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.image-caption { font-size: 0.85rem; color: #9ca3af; margin-top: 12px; font-weight: 500; }

/* 提示块 */
.info-note {
    background: rgba(43, 110, 240, 0.04); border-left: 4px solid var(--primary-blue);
    padding: 20px; border-radius: 0 8px 8px 0; margin: 30px 0;
}
.info-note p { margin-bottom: 0; font-weight: 500; color: #374151; font-size: 0.98rem; }

/* 二维码演示区 (创意版块) */
.qr-demo {
    display: flex; gap: 30px; align-items: center; background: #f8faff;
    border-radius: 20px; padding: 30px; margin: 35px 0; flex-wrap: wrap;
}
.qr-box {
    background: #fff; border-radius: 16px; padding: 25px; text-align: center;
    box-shadow: 0 10px 25px rgba(43,110,240,0.06);
}
.qr-box img { display: block; margin: 0 auto 15px; background: #f0f0f0; }
.qr-box span { font-size: 0.9rem; color: #6b7280; font-weight: 500; }
.qr-text h4 { font-size: 1.3rem; font-weight: 700; color: #1f2937; margin-bottom: 10px; }
.qr-text p { font-size: 1rem; color: #4b5563; line-height: 1.7; }

/* 故障排查卡片 (创意版块) */
.trouble-cards {
    display: flex; flex-direction: column; gap: 20px; margin: 30px 0;
}
.trouble-item {
    background: #ffffff; border: 1px solid #eef3ff; border-radius: 16px;
    padding: 25px 30px; transition: 0.3s;
}
.trouble-item:hover {
    border-color: var(--primary-blue); box-shadow: 0 10px 25px rgba(43,110,240,0.06);
}
.trouble-item h4 {
    font-size: 1.2rem; font-weight: 700; color: var(--primary-blue); margin-bottom: 12px;
}
.trouble-item ul { list-style: none; }
.trouble-item li {
    padding: 5px 0; font-size: 0.98rem; color: #4b5563; display: flex; align-items: baseline; gap: 8px;
}
.trouble-item li::before { content: "•"; color: var(--primary-blue); font-weight: 700; }

/* 侧边栏 */
.guide-sidebar { width: 280px; position: sticky; top: 120px; height: fit-content; }
.sticky-card {
    background: #f9fafb; border-radius: 16px; padding: 30px; border: 1px solid #f3f4f6;
}
.sticky-card h4 { font-size: 1.1rem; font-weight: 700; color: #1f2937; margin-bottom: 20px; }
.sticky-card ul { list-style: none; }
.sticky-card li { margin-bottom: 15px; }
.sticky-card a {
    text-decoration: none; color: #4b5563; font-size: 0.95rem; font-weight: 500;
    transition: color 0.2s;
}
.sticky-card a:hover { color: var(--primary-blue); }
.sidebar-cta {
    margin-top: 30px; padding-top: 25px; border-top: 1px solid #e5e7eb; text-align: center;
}
.sidebar-cta p { font-size: 0.9rem; color: #6b7280; margin-bottom: 12px; }
.btn-sidebar {
    display: block; background: var(--primary-blue); color: #fff; padding: 12px 0;
    border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.95rem;
    transition: 0.3s;
}
.btn-sidebar:hover { background: #1e5acf; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(43,110,240,0.25); }

/* 页脚 (与首页蓝色版一致) */
footer {
    background: #111111; color: #ffffff; padding: 80px 8% 40px;
    font-family: 'Noto Sans', sans-serif;
}
.footer-container {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px;
}
.footer-logo-section img { height: 35px; margin-bottom: 20px; }
.footer-logo-section p { color: #999; font-size: 14px; margin-bottom: 10px; }
.footer-tagline { color: #777 !important; font-size: 13px !important; }
.footer-column h3 {
    color: var(--primary-blue); font-size: 1.2rem; font-weight: 700; margin-bottom: 25px;
    position: relative; padding-bottom: 15px;
}
.footer-column h3::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: #333;
}
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: #cccccc; text-decoration: none; font-size: 14px; transition: 0.3s; }
.footer-column ul li a:hover { color: var(--primary-blue); }
.footer-bottom {
    margin-top: 60px; padding-top: 30px; border-top: 1px solid #222;
    display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #666;
}
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { color: #666; text-decoration: none; transition: 0.3s; }
.footer-socials a:hover { color: #fff; }

/* 响应式 */
@media (max-width: 1024px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-logo-section { grid-column: span 2; text-align: center; margin-bottom: 40px; }
}
@media (max-width: 992px) {
    .guide-wrapper { flex-direction: column; padding-top: 120px; }
    .guide-sidebar { display: none; }
    .guide-header h1 { font-size: 2.4rem; }
    .flow-steps { flex-direction: column; align-items: flex-start; }
    .flow-arrow { display: none; }
    .qr-demo { flex-direction: column; text-align: center; }
}