/* chain51 FAQ Pages - Shared Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #333; line-height: 1.85; }

/* Container */
.container { max-width: 800px; margin: 0 auto; padding: 20px 16px 40px; }

/* Breadcrumb */
.breadcrumb { font-size: 14px; color: #999; margin-bottom: 20px; padding: 12px 0; }
.breadcrumb a { color: #4a90d9; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* H1 */
h1 { font-size: 26px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; line-height: 1.4; }

/* Subtitle / Lead */
.subtitle { font-size: 16px; color: #666; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid #e8ecf1; }

/* Content Card */
.content-card { background: #fff; border-radius: 12px; padding: 28px 24px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

/* Section headings */
h2 { font-size: 20px; font-weight: 600; color: #1a1a2e; margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef2ff; }
h2:first-child { margin-top: 0; }

/* Paragraphs */
p { margin-bottom: 14px; color: #444; font-size: 15px; }

/* Lists */
ul, ol { margin: 10px 0 16px 20px; }
li { margin-bottom: 8px; font-size: 15px; color: #444; }
ul li::marker { color: #4a6cf7; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 14px; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
th { background: #f0f4ff; color: #1a1a2e; font-weight: 600; text-align: left; padding: 12px 14px; }
td { padding: 10px 14px; border-top: 1px solid #eef0f5; }
tr:hover td { background: #fafbff; }

/* Strong */
strong { color: #1a1a2e; font-weight: 600; }

/* FAQ Section */
.faq-section { margin-top: 8px; }
.faq-section h2 { border-bottom-color: #ffd54f; }

.faq-item { background: #f8f9fb; border-radius: 10px; margin-bottom: 12px; overflow: hidden; border: 1px solid #eef0f5; transition: all 0.2s; }
.faq-item:hover { border-color: #d0d7ff; box-shadow: 0 2px 8px rgba(74,108,247,0.08); }

.faq-question { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; font-weight: 600; font-size: 15px; color: #1a1a2e; user-select: none; }
.faq-question .q-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #4a6cf7; color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.faq-question .toggle-icon { margin-left: auto; font-size: 18px; color: #aaa; transition: transform 0.3s; }
.faq-item.open .toggle-icon { transform: rotate(180deg); }

.faq-answer { padding: 0 18px 16px 52px; font-size: 15px; color: #555; line-height: 1.8; display: none; }
.faq-item.open .faq-answer { display: block; }

/* Related Links */
.related-links { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.related-links h2 { font-size: 18px; margin-top: 0; border-bottom: 2px solid #e8ecf1; }
.related-links ul { list-style: none; margin: 0; padding: 0; }
.related-links li { margin-bottom: 8px; }
.related-links li a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f8f9fb; border-radius: 8px; text-decoration: none; color: #333; font-size: 14px; transition: all 0.2s; }
.related-links li a:hover { background: #eef2ff; color: #4a6cf7; transform: translateX(4px); }
.related-links li a::before { content: "→"; color: #4a6cf7; font-weight: 700; flex-shrink: 0; }

/* Back to index */
.back-link { text-align: center; margin-top: 16px; }
.back-link a { display: inline-flex; align-items: center; gap: 6px; color: #4a90d9; text-decoration: none; font-size: 14px; padding: 8px 16px; border-radius: 20px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: all 0.2s; }
.back-link a:hover { background: #eef2ff; color: #4a6cf7; }

/* Footer */
.footer { text-align: center; padding: 20px; font-size: 13px; color: #aaa; }
.footer a { color: #4a90d9; text-decoration: none; }

/* Tip/Warning boxes */
.tip-box { background: #e8f5e9; border-left: 4px solid #4caf50; border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 14px 0; font-size: 14px; color: #2e4a2e; }
.warning-box { background: #fff8e1; border-left: 4px solid #ffa726; border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 14px 0; font-size: 14px; color: #5d4037; }

/* Responsive */
@media (max-width: 640px) {
    .container { padding: 12px 10px 30px; }
    h1 { font-size: 22px; }
    .content-card { padding: 18px 14px; border-radius: 10px; }
    h2 { font-size: 18px; }
    .faq-question { padding: 12px 14px; font-size: 14px; }
    .faq-answer { padding: 0 14px 14px 48px; font-size: 14px; }
    table { font-size: 13px; }
    th, td { padding: 8px 10px; }
}
