/* Shared styles for Just My Socks tutorial / intent pages */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
    color: #333;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}
h1 {
    color: #2c3e50;
    text-align: center;
    margin: 10px 0 18px;
    font-size: 2em;
    line-height: 1.35;
}
h2 {
    color: #34495e;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 42px;
    font-size: 1.45em;
}
h3 {
    color: #455a64;
    margin-top: 26px;
    font-size: 1.15em;
}
h2[id], h3[id] {
    scroll-margin-top: 110px;
}
p { margin: 0 0 14px; }
.img-placeholder {
    padding: 10px;
    text-align: center;
    margin: 22px 0;
    border-radius: 8px;
    overflow: hidden;
}
.img-placeholder img {
    max-width: 100%;
    height: auto;
    max-height: 520px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.caption {
    color: #777;
    font-size: 0.9em;
    margin-top: 10px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    border: 1px solid #ddd;
    padding: 11px 12px;
    text-align: left;
    vertical-align: top;
}
th { background-color: #f8f9fa; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.tips-list li { margin-bottom: 10px; }
.nav-bar {
    background: linear-gradient(to right, #2c3e50, #3498db);
    padding: 15px 0;
    margin-bottom: 26px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand {
    font-size: 1.4em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}
.nav-links { display: flex; gap: 16px; }
.nav-bar a {
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 4px;
    transition: all 0.25s ease;
    font-weight: 500;
}
.nav-bar a:hover { background: rgba(255,255,255,0.14); }
.toc {
    padding: 18px 0;
    margin: 20px 0;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
}
.toc .toc-title {
    margin: 0;
    font-size: 1.25em;
    font-weight: bold;
    color: #2c3e50;
}
.toc ul { list-style-type: none; padding-left: 0; margin: 14px 0; }
.toc li { margin: 8px 0; }
.toc a {
    color: #2c3e50;
    text-decoration: none;
    display: block;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.25s ease;
    border: 1px solid #eee;
    margin: 6px 0;
}
.toc a:hover { color: #3498db; border-color: #3498db; }
.breadcrumb { color: #666; font-size: 0.9em; margin-bottom: 8px; }
.breadcrumb a { color: #337ab7; text-decoration: none; }
.answer-box {
    background: #eef6fc;
    border-left: 4px solid #3498db;
    padding: 16px 20px;
    border-radius: 6px;
    margin: 20px 0;
}
.answer-box p:last-child { margin-bottom: 0; }
.note {
    background: #fff8e6;
    border-left: 4px solid #f0ad4e;
    padding: 12px 18px;
    border-radius: 6px;
    margin: 16px 0;
}
.warn {
    background: #fdf0ee;
    border-left: 4px solid #d9534f;
    padding: 12px 18px;
    border-radius: 6px;
    margin: 16px 0;
}
.config-steps {
    background: #f8f9fa;
    padding: 18px 20px;
    border-radius: 8px;
    margin: 16px 0;
}
.updated {
    color: #888;
    font-size: 0.9em;
    text-align: center;
    margin: 0 0 18px;
}
.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 18px 0 6px;
}
.cta-button {
    display: inline-block;
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.35);
    color: #fff;
}
.cta-note { color: #777; font-size: 0.9em; }
.cta-box {
    background: #f3f8fd;
    border: 1px solid #d8e8f6;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 24px 0;
}
.cta-box p { margin: 0 0 10px; }
.cta-box p:last-child { margin-bottom: 0; }
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 20px 0;
}
.pros-cons > div {
    border-radius: 8px;
    padding: 16px 18px;
}
.pros-cons .pros { background: #eef7f0; border-left: 4px solid #4c9a68; }
.pros-cons .cons { background: #fdf3f1; border-left: 4px solid #c0604f; }
.pros-cons h3 { margin-top: 0; }
.pros-cons ul { margin: 0; padding-left: 18px; }
.pros-cons li { margin-bottom: 8px; }
.decision-path {
    border: 1px solid #e1e6e9;
    border-radius: 10px;
    padding: 20px;
    margin: 22px 0;
    background: #fff;
}
.decision-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed #e3e8eb;
}
.decision-step:last-of-type { border-bottom: 0; }
.decision-step .idx {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eaf3fb;
    color: #2c3e50;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.decision-result {
    margin-top: 14px;
    background: #eef7f0;
    border: 1px solid #cfe6d7;
    border-radius: 8px;
    padding: 14px 16px;
}
.decision-result.bad {
    background: #fdf3f1;
    border-color: #efd4ce;
}
.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}
.platform-card {
    border: 1px solid #e1e6e9;
    border-radius: 10px;
    padding: 16px 18px;
    background: #fff;
}
.platform-card h3 { margin-top: 0; font-size: 1.05em; }
.platform-card ul { margin: 0; padding-left: 18px; }
.platform-card li { margin-bottom: 6px; }
.faq-item { margin: 18px 0; }
.faq-item h3 { margin-bottom: 6px; }
.disclosure {
    color: #888;
    font-size: 0.85em;
    margin-top: 38px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 8px; }
    .pros-cons, .platform-grid { grid-template-columns: 1fr; }
    th, td { padding: 8px; font-size: 14px; }
    h1 { font-size: 1.55em; }
}
