/* /account/* 頁面群組共用樣式（hero + 側邊 sticky nav + 內容區） */

/* ===== Hero 標題區（每頁置頂） ===== */

.account-hero {
    background: linear-gradient(180deg, var(--c-surface-2) 0%, var(--c-bg) 100%);
    border-bottom: 1px solid var(--c-border);
    padding: 56px 24px 48px;
}
.account-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.account-eyebrow {
    color: var(--c-primary);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 8px;
}
.account-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--c-text-strong);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.account-subtitle {
    color: var(--c-text-muted);
    font-size: 15px;
    line-height: 1.7;
    max-width: 640px;
    margin: 0;
}

/* ===== 雙欄 grid：左 sticky side nav + 右內容 ===== */

.account-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

/* ===== 側邊 nav ===== */

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: 80px;  /* 留 header 高度（site-header sticky 約 64px） */
    padding: 8px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    box-shadow: var(--c-shadow-sm);
}
.account-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--c-text-muted);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: background-color 120ms ease, color 120ms ease;
}
.account-nav-link:hover {
    background: var(--c-surface-2);
    color: var(--c-text-strong);
}
.account-nav-link.is-active {
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-weight: 600;
}
.account-nav-icon {
    flex-shrink: 0;
}

/* ===== 內容區 ===== */

.account-content {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    box-shadow: var(--c-shadow-sm);
    padding: 32px 36px;
    min-width: 0;  /* 防止 grid 子項撐爆 */
}
.account-content > h2:first-child,
.account-content > section:first-child > h2:first-child {
    margin-top: 0;
}
.account-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-text-strong);
    margin: 32px 0 16px;
}
.account-content h2:first-of-type {
    margin-top: 0;
}
.account-section {
    margin-bottom: 32px;
}
.account-section:last-child {
    margin-bottom: 0;
}
.account-section + .account-section {
    border-top: 1px solid var(--c-surface-2);
    padding-top: 32px;
}

/* ===== 共用 utility ===== */

.account-text-md { font-size: 16px; }
.account-mt-md { margin-top: 12px; }
.account-ml-sm { margin-left: 8px; }
.account-h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; color: var(--c-text-strong); }
.account-h3-danger { margin-top: 32px; color: var(--c-danger); font-size: 16px; font-weight: 600; }
.account-content h2.account-h2-danger { color: var(--c-danger); }

/* 空狀態 */
.account-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--c-text-muted);
}
.account-empty svg {
    color: var(--c-text-subtle);
    margin-bottom: 16px;
}
.account-empty p { margin: 4px 0; }
.account-empty p:first-of-type {
    color: var(--c-text-strong);
    font-size: 15px;
    font-weight: 500;
}

/* 紅色按鈕（刪除帳號） */
.btn-danger {
    background: var(--c-danger);
    color: #fff;
    border-color: var(--c-danger);
}
.btn-danger:hover { background: var(--c-danger-hover); border-color: var(--c-danger-hover); }

/* ===== 響應式：手機螢幕收成單欄，nav 改頂部 horizontal scroll ===== */

@media (max-width: 900px) {
    .account-hero { padding: 40px 20px 32px; }
    .account-title { font-size: 24px; }
    .account-grid {
        grid-template-columns: 1fr;
        padding: 16px 20px 48px;
        gap: 16px;
    }
    .account-nav {
        flex-direction: row;
        position: static;
        overflow-x: auto;
        padding: 6px;
        gap: 2px;
        -webkit-overflow-scrolling: touch;
    }
    .account-nav-link {
        flex-shrink: 0;
        padding: 8px 12px;
        white-space: nowrap;
    }
    .account-content { padding: 24px 20px; }
}
