:root{
    --ink:#31405f;
    --muted:#7280a4;
    --pink:#ff78b8;
    --blue:#76c9ff;
    --mint:#65d6a4;
    --line:#e9eefc;
}
body{
    color:var(--ink);
    background:
        radial-gradient(circle at 8% 12%, #ffd7ec 0 6%, transparent 7%),
        radial-gradient(circle at 92% 14%, #ccecff 0 7%, transparent 8%),
        linear-gradient(135deg,#fff7fb,#f2fff8 48%,#eef7ff);
}
.detail-shell{max-width:1080px;margin:0 auto;padding:6px 14px 26px}
.back-link{
    display:inline-flex;
    align-items:center;
    margin:0 0 10px;
    padding:8px 13px;
    border-radius:999px;
    background:#ffffffd8;
    border:1px solid var(--line);
    color:#3687f7;
    text-decoration:none;
    font-weight:800;
    box-shadow:0 8px 18px rgba(76,100,151,.08);
}
.hero-card{
    position:relative;
    overflow:hidden;
    border-radius:26px;
    padding:20px;
    background:linear-gradient(120deg,#ffffffdf,#fff0f8df,#ecf9ffdf);
    border:1px solid rgba(255,255,255,.94);
    box-shadow:0 18px 38px rgba(84,105,155,.16);
}
.hero-card::before{
    content:"";
    position:absolute;
    width:210px;
    height:210px;
    right:-70px;
    top:-70px;
    border-radius:999px;
    background:linear-gradient(135deg,#ffc3e4,#bfeaff);
    opacity:.42;
}
.hero-content{position:relative;z-index:1}
.hero-card h1{margin:0 0 8px;font-size:34px;line-height:1.25;font-weight:900;letter-spacing:0;color:#2f3c5a}
.subline{color:var(--muted);line-height:1.8;margin:0}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.tag{
    border-radius:999px;
    padding:5px 10px;
    background:#fff;
    border:1px solid #ffd4e9;
    color:#e2589f;
    font-size:13px;
    font-weight:800;
}
.panel-grid{
    margin-top:8px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 330px;
    gap:8px;
    align-items:start;
}
.main-column,.side-column{
    display:grid;
    gap:8px;
    align-items:start;
}
.panel{
    border-radius:20px;
    background:#ffffffd8;
    border:1px solid var(--line);
    box-shadow:0 12px 26px rgba(73,96,143,.1);
    padding:11px 12px;
}
.panel h2{margin:0 0 7px;font-size:18px;color:#2f3c5a;font-weight:900}
.desc{color:#5f6f95;line-height:1.68;margin:0}
.main-column .panel h2{
    margin-bottom:9px;
    font-size:22px;
    line-height:1.3;
    color:#2f3c5a;
    font-weight:900;
}
.main-column .desc{
    font-size:15px;
    line-height:1.86;
    color:#536487;
    text-align:justify;
}
.info-table{width:100%;border-collapse:collapse;font-size:14px}
.info-table th,.info-table td{padding:8px 0;border-bottom:1px solid #edf1fb;text-align:left;vertical-align:top}
.info-table th{width:78px;color:#7b88a8;font-weight:600}
.query-grid,.bullet-list,.source-list,.read-link-list,.related-list{display:grid;gap:5px}
.query-grid a,
.source-list a,
.read-link-list a,
.related-list a{
    display:block;
    padding:8px 10px;
    border-radius:14px;
    border:1px solid #ddeefe;
    background:linear-gradient(90deg,#fff,#f5fbff);
    color:#3687f7;
    text-decoration:none;
    line-height:1.5;
    font-weight:700;
}
.query-grid a:hover,.source-list a:hover,.read-link-list a:hover,.related-list a:hover{color:#e2589f;border-color:#ffd4e9}
.side-column .panel{
    font-size:13px;
}
.side-column .panel h2{
    font-size:16px;
    margin-bottom:6px;
}
.side-column .info-table{
    font-size:13px;
}
.side-column .info-table th,
.side-column .info-table td{
    padding:7px 0;
}
.side-column .query-grid,
.side-column .source-list,
.side-column .read-link-list,
.side-column .related-list{gap:0}
.side-column .query-grid a,
.side-column .source-list a,
.side-column .read-link-list a,
.side-column .related-list a{
    display:block;
    padding:7px 0;
    font-size:13px;
    line-height:1.35;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    border:0;
    border-bottom:1px solid #edf1fb;
    border-radius:0;
    background:transparent;
}
.side-column .subline{
    display:none;
}
.info-table .read-address-row td{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.info-table .read-address{
    display:inline;
    margin:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    color:#3687f7;
    text-decoration:none;
    font:inherit;
    font-style:normal;
    font-weight:600;
    line-height:inherit;
}
.info-table .read-address:hover{
    color:#e2589f;
    background:transparent;
    text-decoration:none;
}
.bullet-list{margin:0;padding:0;list-style:none}
.bullet-list li{
    padding:8px 10px;
    border-radius:14px;
    background:linear-gradient(90deg,#fff,#fff7fc);
    border:1px solid #ffe0f1;
    color:#5f6f95;
    line-height:1.7;
}
.main-column .bullet-list li{
    font-size:14px;
    line-height:1.72;
    color:#536487;
}
.hook-list li{
    border-color:#cdeeff;
    background:linear-gradient(90deg,#fff,#f4fbff);
}
.plan-blocks{
    display:grid;
    gap:8px;
}
.plan-block{
    border:1px solid #e6eefc;
    border-radius:14px;
    background:linear-gradient(90deg,#fff,#f8fbff);
    padding:9px 10px;
}
.plan-block h3{
    margin:0 0 6px;
    font-size:15px;
    color:#2f3c5a;
    font-weight:900;
}
.plan-block .bullet-list li{
    border:0;
    border-radius:0;
    background:transparent;
    padding:3px 0;
}
.main-column .match-slot strong{
    font-size:14px;
}
.match-slots{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:6px;
    margin-top:7px;
}
.match-slot{
    min-height:48px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:2px;
    padding:8px 9px;
    border-radius:14px;
    border:1px dashed #ffc8e4;
    background:linear-gradient(135deg,#fff,#fff7fc);
    color:#7b88a8;
    text-decoration:none;
    line-height:1.35;
}
.match-slot.filled{
    border-style:solid;
    border-color:#cdeeff;
    color:#3687f7;
    background:linear-gradient(135deg,#fff,#f4fbff);
    font-weight:800;
}
.match-slot strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#2f3c5a;
    font-size:13px;
}
.match-slot span{font-size:12px}
.side-column .match-panel .plan-blocks{gap:7px}
.side-column .match-panel .plan-block{padding:8px;border-radius:12px}
.side-column .match-panel .plan-block h3{font-size:13px;margin-bottom:5px}
.side-column .match-panel .match-slots{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:5px;
    margin-top:0;
}
.side-column .match-panel .match-slot{
    min-height:42px;
    padding:6px 4px;
    border-radius:10px;
    text-align:center;
}
.side-column .match-panel .match-slot strong{font-size:12px}
.side-column .match-panel .match-slot span{font-size:11px}
.not-found{text-align:center;padding:36px;color:#7b88a8}
#friend-links{
    margin-top:18px;
    border-radius:16px;
    border:1px solid #e8eefb;
    background:#ffffffcf;
    box-shadow:0 10px 24px rgba(82,103,148,.08);
    padding:12px 14px;
}
#friend-links h3{margin:0 0 8px;color:#2f3c5a;font-weight:800}
@media (max-width:820px){
    .panel-grid{grid-template-columns:1fr}
    .main-column,.side-column{gap:8px}
    .match-slots{grid-template-columns:repeat(2,minmax(0,1fr))}
    .side-column .match-panel .match-slots{grid-template-columns:repeat(3,minmax(0,1fr))}
    .hero-card{padding:18px 14px;border-radius:20px}
    .hero-card h1{font-size:26px}
}
