/* ============================================
   astro.css - 星盘(西洋占星本命盘)专属样式
   星盘轮 SVG / 行星表 / 元素统计 / 相位列表
   公共骨架沿用 divination.css
   ============================================ */

.astro-main { max-width: 720px; margin: 0 auto; }

/* ---- 星盘轮 ---- */
.astro-chart-box {
    background: #fffdf8;
    border: 1px solid var(--line, #e8e2d8);
    border-radius: 16px;
    padding: 10px;
    margin: 14px 0;
    text-align: center;
}
.astro-chart-box svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ---- ASC/MC 概览卡 ---- */
.astro-ascmc {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.astro-ascmc .am-item {
    flex: 1;
    background: var(--card, #fff);
    border: 1px solid var(--line, #e8e2d8);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
}
.astro-ascmc .am-label {
    font-size: 0.75rem;
    color: var(--muted, #999);
}
.astro-ascmc .am-value {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 3px;
}

/* ---- 行星表 ---- */
.astro-planet-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card, #fff);
    border: 1px solid var(--line, #e8e2d8);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    font-size: 0.85rem;
}
.astro-planet-table th,
.astro-planet-table td {
    padding: 7px 10px;
    text-align: left;
    border-bottom: 1px solid var(--line, #efe9dc);
}
.astro-planet-table th {
    background: var(--bg, #f8f6f1);
    font-size: 0.75rem;
    color: var(--muted, #888);
    font-weight: normal;
}
.astro-planet-table tr:last-child td { border-bottom: none; }
.astro-planet-table .pl-sym { font-size: 1.15rem; width: 2em; text-align: center; }
.astro-planet-table .pl-retro {
    color: #c25a4e;
    font-weight: bold;
    font-size: 0.75rem;
    margin-left: 4px;
}

/* ---- 元素/模式统计 ---- */
.astro-elem-box {
    background: var(--card, #fff);
    border: 1px solid var(--line, #e8e2d8);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.astro-section-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 10px;
}
.elem-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.82rem;
}
.elem-row .elem-name { width: 3.6em; flex: 0 0 auto; font-weight: bold; }
.elem-row .elem-track {
    flex: 1;
    height: 10px;
    background: var(--line, #efe9dc);
    border-radius: 5px;
    overflow: hidden;
}
.elem-row .elem-fill {
    height: 100%;
    border-radius: 5px;
    width: 0;
    transition: width 0.8s ease;
}
.elem-row .elem-count { width: 4em; text-align: right; color: var(--muted, #888); font-size: 0.75rem; }

/* ---- 相位列表 ---- */
.astro-aspect-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 6px;
    font-size: 0.8rem;
}
.aspect-item {
    background: var(--bg, #f8f6f1);
    border-radius: 8px;
    padding: 6px 9px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 6px;
}
.aspect-item .asp-sym {
    font-size: 1.05rem;
    width: 1.4em;
    text-align: center;
    flex: 0 0 auto;
}
.aspect-item .asp-orb {
    margin-left: auto;
    color: var(--muted, #999);
    font-size: 0.72rem;
    flex: 0 0 auto;
}
.asp-conj { color: #b8860b; }
.asp-sextile { color: #3a7ca5; }
.asp-square { color: #cf5a4e; }
.asp-trine { color: #3e8e5a; }
.asp-oppo { color: #c23e3e; }

/* ---- 宫位速查折叠 ---- */
.astro-house-details {
    margin-top: 10px;
    border: 1px solid var(--line, #e8e2d8);
    border-radius: 10px;
    background: var(--bg, #f8f6f1);
}
.astro-house-details summary {
    cursor: pointer;
    padding: 9px 12px;
    font-size: 0.82rem;
    font-weight: bold;
    color: var(--fg, #333);
    list-style: none;
    user-select: none;
}
.astro-house-details summary::-webkit-details-marker { display: none; }
.astro-house-details summary::after {
    content: '▸';
    float: right;
    color: var(--muted, #999);
    transition: transform 0.2s;
}
.astro-house-details[open] summary::after { transform: rotate(90deg); }
.astro-house-details .house-row {
    padding: 5px 14px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--fg, #444);
    border-top: 1px dashed var(--line, #e5dfd2);
}
.astro-house-details .house-row:first-of-type { border-top: none; }

/* ---- 解读卡 ---- */
.astro-card {
    background: var(--card, #fff);
    border: 1px solid var(--line, #e8e2d8);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    font-size: 0.86rem;
    line-height: 1.8;
}
.astro-card b { font-size: 0.92rem; }

.astro-notice {
    font-size: 0.75rem;
    color: var(--muted, #999);
    text-align: center;
    line-height: 1.7;
    margin: 14px 0;
}
