﻿
/* audiolist.aspx V2 - 尚儀教育有聲雲：書庫探索頁 */
body.audiolist-v2 {
    background: #fffaf2;
    color: #17233f;
    font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
}
body.audiolist-v2 .header .banner { display: none !important; }
body.audiolist-v2 .wrapper2 { max-width: 1280px; }
.al-page { max-width: 1280px; margin: 0 auto; padding: 24px 20px 38px; }
.al-page a { color: inherit; }
.al-breadcrumb { display:flex; gap:10px; align-items:center; font-size:14px; color:#7b6a57; margin-bottom:22px; }
.al-breadcrumb a { color:#6b5b4a; text-decoration:none; }
.al-breadcrumb a:hover { color:#f07a00; }
.al-hero { position:relative; overflow:hidden; min-height:300px; border-radius:28px; background: linear-gradient(110deg,#fff7e9 0%,#fff3df 43%,#ffd793 100%); box-shadow: 0 18px 42px rgba(137, 80, 10, .14); display:grid; grid-template-columns: 1.05fr .95fr; gap:22px; padding:44px 52px; margin-bottom:26px; border:1px solid rgba(255,140,0,.14); }
.al-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 14% 32%, rgba(255,132,0,.12), transparent 22%), radial-gradient(circle at 84% 20%, rgba(255,255,255,.75), transparent 23%); pointer-events:none; }
.al-hero-left,.al-hero-art { position:relative; z-index:1; }
.al-hero h2 { margin:0; font-size:48px; letter-spacing:.04em; color:#081d3c; font-weight:900; line-height:1.18; }
.al-hero p { margin:18px 0 0; font-size:19px; color:#4d3c28; line-height:1.85; max-width:620px; }
.al-hero-stats { display:flex; gap:34px; flex-wrap:wrap; margin-top:28px; }
.al-hero-stats div { display:flex; align-items:center; gap:10px; padding-right:26px; border-right:1px solid rgba(238,123,0,.22); }
.al-hero-stats div:last-child { border-right:0; }
.al-hero-stats i { color:#ff8200; font-size:30px; }
.al-hero-stats strong { color:#ff8200; font-size:30px; line-height:1; }
.al-hero-stats span { display:block; color:#4e402f; font-weight:700; }
.al-hero-art { min-height:240px; }
.al-device { position:absolute; right:128px; bottom:28px; width:260px; height:144px; background:#062341; border-radius:24px; padding:14px; box-shadow:0 22px 38px rgba(5,31,58,.28); transform: rotate(-1deg); }
.al-device-screen { height:100%; border-radius:18px; background:linear-gradient(145deg,#0e406d,#071f39); color:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; }
.al-device-screen i { color:#ff9a16; font-size:38px; }
.al-device-screen small { color:#fff5df; font-weight:700; }
.al-headphone { position:absolute; right:20px; top:18px; width:188px; height:188px; border-radius:50%; background:rgba(255,255,255,.45); display:flex; align-items:center; justify-content:center; color:#ff8200; font-size:92px; box-shadow: inset 0 0 0 12px rgba(255,255,255,.35); }
.al-soundwave { position:absolute; left:10px; top:94px; display:flex; align-items:center; gap:9px; height:78px; }
.al-soundwave span { width:8px; border-radius:999px; background:linear-gradient(#ffbc65,#ff7b00); display:block; animation: alWave 1.4s infinite ease-in-out; opacity:.85; }
.al-soundwave span:nth-child(1){ height:28px; animation-delay:.0s; }
.al-soundwave span:nth-child(2){ height:54px; animation-delay:.12s; }
.al-soundwave span:nth-child(3){ height:74px; animation-delay:.24s; }
.al-soundwave span:nth-child(4){ height:48px; animation-delay:.36s; }
.al-soundwave span:nth-child(5){ height:34px; animation-delay:.48s; }
@keyframes alWave { 50% { transform:scaleY(.68); opacity:.6; } }
.al-book-card { position:absolute; width:104px; height:132px; border-radius:16px; background:#fff; color:#ff8200; font-weight:900; display:flex; align-items:center; justify-content:center; text-align:center; line-height:1.45; box-shadow:0 18px 30px rgba(132,80,12,.13); border:1px solid #ffe3bd; }
.al-book-1 { right:330px; top:14px; transform:rotate(-8deg); }
.al-book-2 { right:260px; top:22px; transform:rotate(5deg); color:#103866; }
.al-search-panel { display:grid; grid-template-columns: 1.6fr .78fr .78fr .78fr auto; gap:16px; align-items:end; background:#fff; border:1px solid #ffe0b6; border-radius:22px; padding:22px; margin:-50px auto 24px; position:relative; z-index:3; box-shadow:0 16px 38px rgba(130,82,20,.14); }
.al-search-panel label { display:block; color:#5d5043; font-weight:800; font-size:14px; margin-bottom:8px; }
.al-search-input { height:48px; border:1px solid #edd8bd; border-radius:14px; display:flex; align-items:center; background:#fff; overflow:hidden; }
.al-search-input input { border:0; outline:0; flex:1; height:100%; padding:0 16px; font-size:15px; color:#1b2d49; }
.al-search-input button { width:54px; height:100%; border:0; background:#fff; color:#0d2440; font-size:17px; }
.al-filter-field select { width:100%; height:48px; border:1px solid #edd8bd; border-radius:14px; background:#fff; color:#21314d; padding:0 14px; }
.al-filter-actions { display:flex; gap:12px; }
.al-submit,.al-clear { height:48px; border-radius:999px; padding:0 25px; border:1px solid #ff8200; font-weight:800; }
.al-submit { color:#fff; background:linear-gradient(135deg,#ff9d00,#ff7100); box-shadow:0 10px 18px rgba(255,128,0,.2); }
.al-clear { color:#ff7a00; background:#fff; }
.al-content-layout { display:grid; grid-template-columns: 260px minmax(0,1fr); gap:24px; align-items:start; }
.al-sidebar-card { position:sticky; top:20px; }
.al-sidebar-title { background:#fff; color:#f07400; font-size:20px; font-weight:900; padding:18px 18px 10px; border-radius:22px 22px 0 0; border:1px solid #ffe0b6; border-bottom:0; }
.al-quick-nav { background:#fff; border:1px solid #ffe0b6; border-top:0; padding:6px 14px 16px; border-radius:0 0 22px 22px; box-shadow:0 12px 24px rgba(130,82,20,.08); }
.al-quick-nav a { display:flex; gap:12px; align-items:center; padding:12px 13px; border-radius:13px; text-decoration:none; color:#263650; font-weight:700; }
.al-quick-nav a.active,.al-quick-nav a:hover { background:#fff2e3; color:#f07400; }
.al-sidebar-original { margin-top:16px; background:#fff; border:1px solid #ffe0b6; border-radius:22px; padding:8px 0; box-shadow:0 12px 24px rgba(130,82,20,.08); overflow:hidden; }
.audiolist-v2 .al-sidebar-original #main { display:none; }
.audiolist-v2 .al-sidebar-original .sidebar { position:relative !important; width:auto !important; height:auto !important; left:auto !important; top:auto !important; overflow:visible !important; background:transparent !important; box-shadow:none !important; }
.audiolist-v2 .al-sidebar-original .closebtn { display:none !important; }
.audiolist-v2 .al-sidebar-original .padding { padding:10px 16px !important; }
.audiolist-v2 .al-sidebar-original .clevel1 { border-top:1px solid #f3e5d3; }
.audiolist-v2 .al-sidebar-original .clevel1:first-child { border-top:0; }
.audiolist-v2 .al-sidebar-original .mcategory { font-weight:800; color:#263650; margin:0; }
.audiolist-v2 .al-sidebar-original .list a { color:#5e6675; text-decoration:none; }
.audiolist-v2 .al-sidebar-original .list div { padding:8px 12px 8px 28px; border-radius:10px; }
.audiolist-v2 .al-sidebar-original .list div:hover { background:#fff2e3; color:#f07400; }
.al-results-panel { background:#fff; border:1px solid #ffe0b6; border-radius:24px; padding:22px; box-shadow:0 12px 32px rgba(130,82,20,.09); }
.al-results-head { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:12px; }
.al-results-head h3 { margin:0; font-size:25px; color:#0c2342; font-weight:900; }
.al-results-head p { margin:8px 0 0; color:#5c6878; }
.al-results-head strong { color:#ff8200; }
.al-view-actions { display:flex; gap:8px; }
.al-view-actions button { width:42px; height:42px; border-radius:12px; border:1px solid #f1d5ad; background:#fff; color:#ff8200; }
.al-chip-row { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 22px; }
.al-chip-row a { display:inline-flex; align-items:center; height:34px; padding:0 17px; border-radius:999px; border:1px solid #ffe0b6; background:#fffaf2; color:#5b5148; text-decoration:none; font-weight:700; }
.al-chip-row a.active,.al-chip-row a:hover { background:#ff8200; color:#fff; border-color:#ff8200; }
.al-card-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:18px; padding:0; margin:0; list-style:none; }
.al-card { background:#fff; border:1px solid #f3dcc0; border-radius:20px; padding:12px; box-shadow:0 10px 22px rgba(40,44,60,.06); transition:.22s ease; min-width:0; }
.al-card:hover { transform:translateY(-3px); box-shadow:0 18px 32px rgba(255,128,0,.13); border-color:#ffc57f; }
.al-card-media { position:relative; border-radius:16px; overflow:hidden; background:#fff5e9; aspect-ratio: 3 / 4; }
.al-card-media img { width:100%; height:100%; object-fit:contain; display:block; }
.al-new-badge { position:absolute; left:10px; top:10px; background:#ff8200; color:#fff; border-radius:999px; padding:4px 9px; font-size:12px; font-weight:800; }
.al-card-body { padding:12px 4px 2px; }
.al-card-title { margin:0; font-size:17px; line-height:1.38; font-weight:900; color:#0c2342; min-height:48px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.al-card-title a { text-decoration:none; }
.al-card-meta { margin-top:8px; color:#637082; font-size:13px; line-height:1.55; min-height:40px; }
.al-card-meta span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.al-card-tags { display:flex; gap:6px; flex-wrap:wrap; margin-top:9px; min-height:24px; }
.al-card-tags span { display:inline-flex; align-items:center; border-radius:999px; background:#fff1df; color:#c76500; font-size:12px; padding:3px 8px; font-weight:700; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.al-card-desc { color:#4e596a; font-size:13px; line-height:1.65; min-height:43px; margin:9px 0 12px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.al-card-actions { display:grid; grid-template-columns: 1fr 1fr; gap:8px; }
.al-btn { height:34px; border-radius:999px; display:flex; align-items:center; justify-content:center; text-decoration:none; font-weight:800; font-size:13px; }
.al-btn-primary { background:linear-gradient(135deg,#ff9d00,#ff7100); color:#fff !important; }
.al-btn-outline { border:1px solid #ff9b31; color:#f07400 !important; background:#fff; }
.TableDiv table { width:100%; border-collapse:separate; border-spacing:0 8px; }
.TableDiv th { background:#fff2e3; color:#0c2342; padding:12px; }
.TableDiv td { background:#fff; padding:12px; border-top:1px solid #f2dfc7; border-bottom:1px solid #f2dfc7; }
.TableDiv td:first-child { border-left:1px solid #f2dfc7; border-radius:12px 0 0 12px; }
.TableDiv td:last-child { border-right:1px solid #f2dfc7; border-radius:0 12px 12px 0; }
.al-count { text-align:right; color:#6a7280; margin:18px 0 8px; }
.al-count span { color:#ff8200; font-weight:900; padding:0 4px; }
.al-pagination { display:flex; justify-content:center; margin:18px 0 6px; }
.al-pagination .pagination { margin:0 !important; }
.al-backlinks { display:flex; justify-content:flex-end; gap:12px; margin-top:18px; }
.al-link { color:#f07400 !important; text-decoration:none; font-weight:800; }
.audiolist-v2 .footer { margin-top:0; }
@media (max-width: 1180px) {
    .al-page { padding:18px 14px 30px; }
    .al-hero { grid-template-columns:1fr; padding:34px 30px; }
    .al-hero-art { display:none; }
    .al-search-panel { grid-template-columns:1fr 1fr; margin-top:-30px; }
    .al-search-box { grid-column:1 / -1; }
    .al-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    body.audiolist-v2 .header .banner { display:none !important; }
    .al-content-layout { grid-template-columns:1fr; }
    .al-sidebar-card { position:relative; top:auto; }
    .al-sidebar-original { display:none; }
    .al-quick-nav { display:grid; grid-template-columns:repeat(2,1fr); }
    .al-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .al-hero h2 { font-size:36px; }
    .al-hero-stats { gap:16px; }
    .al-results-head { align-items:flex-start; }
}
@media (max-width: 620px) {
    .al-page { padding:12px 10px 24px; }
    .al-hero { border-radius:20px; padding:24px 20px; min-height:auto; }
    .al-hero h2 { font-size:30px; }
    .al-hero p { font-size:16px; line-height:1.7; }
    .al-hero-stats { display:grid; grid-template-columns:1fr 1fr; }
    .al-hero-stats div { border-right:0; padding-right:0; }
    .al-search-panel { grid-template-columns:1fr; border-radius:18px; padding:16px; margin-top:16px; }
    .al-filter-actions { display:grid; grid-template-columns:1fr 1fr; }
    .al-content-layout { gap:16px; }
    .al-quick-nav { grid-template-columns:1fr; }
    .al-results-panel { padding:16px; border-radius:18px; }
    .al-results-head { flex-direction:column; }
    .al-card-grid { grid-template-columns:1fr; }
    .al-card { display:grid; grid-template-columns:118px minmax(0,1fr); gap:12px; }
    .al-card-media { aspect-ratio:3/4; }
    .al-card-body { padding:0; }
    .al-card-title { font-size:16px; min-height:auto; }
    .al-card-desc { display:none; }
    .al-card-meta { min-height:auto; }
    .al-card-actions { grid-template-columns:1fr; }
    .al-btn { height:32px; }
    .TableDiv { overflow-x:auto; }
}


/* V2.3 出版社專區：將左側出版社清單移到主內容區 */
.al-publisher-zone{
    margin: 22px 0 28px;
    padding: 28px 32px;
    border-radius: 28px;
    background: rgba(255,250,242,.96);
    border: 1px solid rgba(255,132,0,.20);
    box-shadow: 0 18px 38px rgba(91,55,14,.08);
}
.al-publisher-zone-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:18px;
}
.al-section-kicker{
    display:inline-block;
    color:#ff7a00;
    font-weight:900;
    letter-spacing:.06em;
    font-size:13px;
    margin-bottom:4px;
}
.al-publisher-zone h2{
    margin:0;
    color:#08264a;
    font-size:30px;
    font-weight:900;
    letter-spacing:.03em;
}
.al-publisher-zone p{
    margin:8px 0 0;
    color:#6e5b43;
    font-size:16px;
    line-height:1.7;
}
.al-publisher-more{
    white-space:nowrap;
    color:#e86d00 !important;
    text-decoration:none;
    font-weight:800;
    padding:10px 16px;
    border-radius:999px;
    background:#fff;
    border:1px solid rgba(255,132,0,.24);
}
.al-publisher-more:hover{
    background:#fff2df;
}
.al-publisher-pills{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
}
.al-publisher-pill{
    display:inline-flex;
    align-items:center;
    gap:10px;
    max-width:100%;
    padding:11px 18px;
    border-radius:999px;
    background:#fff;
    border:1px solid rgba(240,122,0,.30);
    color:#26364f !important;
    text-decoration:none;
    font-weight:800;
    box-shadow:0 8px 18px rgba(87,53,12,.05);
    transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.al-publisher-pill:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 24px rgba(240,122,0,.12);
    border-color:rgba(240,122,0,.55);
}
.al-publisher-pill span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.al-publisher-pill em{
    flex:0 0 auto;
    min-width:30px;
    height:26px;
    padding:0 8px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#fff1df;
    color:#ff7600;
    font-style:normal;
    font-weight:900;
}

@media (max-width: 900px){
    .al-publisher-zone{ padding:22px 18px; border-radius:22px; }
    .al-publisher-zone-head{ align-items:flex-start; flex-direction:column; }
    .al-publisher-zone h2{ font-size:24px; }
    .al-publisher-more{ width:100%; text-align:center; }
    .al-publisher-pills{ flex-wrap:nowrap; overflow-x:auto; padding-bottom:8px; scroll-snap-type:x proximity; }
    .al-publisher-pill{ flex:0 0 auto; max-width:84vw; scroll-snap-align:start; }
}


/* V2.4 按鈕與出版社專區修正：白底元件一律橘字，出版社專區改為圖卡膠囊 */
.audiolist-v2 .al-section-kicker{display:none!important;}
.audiolist-v2 .al-publisher-zone{
    margin: 20px 0 28px;
    padding: 24px 30px;
    border-radius: 26px;
    background: linear-gradient(180deg,#fffaf2 0%,#fff7eb 100%);
    border: 1px solid rgba(255,132,0,.18);
}
.audiolist-v2 .al-publisher-zone-head{align-items:flex-start;}
.audiolist-v2 .al-publisher-zone h2{
    color:#08264a;
    font-size:30px;
    line-height:1.25;
}
.audiolist-v2 .al-publisher-zone p{
    color:#42516a;
    font-size:16px;
    margin-top:8px;
}
.audiolist-v2 .al-publisher-pills{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:14px!important;
    line-height:1!important;
}
.audiolist-v2 .al-publisher-pill{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:10px!important;
    padding:10px 18px!important;
    min-height:44px!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#eb7200!important;
    border:1px solid rgba(240,122,0,.36)!important;
    text-decoration:none!important;
    font-weight:850!important;
    box-shadow:0 8px 18px rgba(87,53,12,.05)!important;
}
.audiolist-v2 .al-publisher-pill span{color:#26364f!important;}
.audiolist-v2 .al-publisher-pill em{
    background:#fff1df!important;
    color:#ff7600!important;
    border-radius:999px!important;
    font-style:normal!important;
    font-weight:900!important;
}
.audiolist-v2 .al-publisher-more,
.audiolist-v2 .al-clear,
.audiolist-v2 .al-view-actions button,
.audiolist-v2 .al-chip-row a,
.audiolist-v2 .al-btn-outline,
.audiolist-v2 .al-btn-secondary,
.audiolist-v2 .al-card-actions a:not(.al-btn-primary),
.audiolist-v2 .al-card-actions button:not(.al-btn-primary),
.audiolist-v2 .btn-outline,
.audiolist-v2 .btn-secondary,
.audiolist-v2 .btn-ghost,
.audiolist-v2 .pill,
.audiolist-v2 .chip,
.audiolist-v2 .tag{
    background:#fff!important;
    color:#ff7a00!important;
    border-color:#ff9a2f!important;
}
.audiolist-v2 .al-submit,
.audiolist-v2 .al-btn-primary,
.audiolist-v2 .al-card-actions .al-btn-primary,
.audiolist-v2 .al-card-actions a[href*="player.aspx"]{
    background:linear-gradient(135deg,#ff9d00,#ff7600)!important;
    color:#fff!important;
    border-color:#ff8200!important;
}
.audiolist-v2 .al-submit *,
.audiolist-v2 .al-btn-primary *,
.audiolist-v2 .al-card-actions a[href*="player.aspx"] *{color:#fff!important;}
.audiolist-v2 .al-clear *,
.audiolist-v2 .al-view-actions button *,
.audiolist-v2 .al-publisher-more *{color:#ff7a00!important;}
.audiolist-v2 .al-chip-row a.active{
    background:#ff8200!important;
    color:#fff!important;
    border-color:#ff8200!important;
}
@media (max-width:900px){
    .audiolist-v2 .al-publisher-pills{flex-wrap:nowrap!important; overflow-x:auto!important; padding-bottom:8px;}
    .audiolist-v2 .al-publisher-pill{flex:0 0 auto!important; max-width:84vw!important;}
}


/* =========================================================
   Audiolist V2.5：出版社專區位置與格式修正
   - 一般 audiolist.aspx 預設不顯示出版社專區
   - 只有 audiolist.aspx?publisher=1#publisherZoneTitle 才顯示
   - 出版社格式：出版社名稱(出版數)
   - 首頁/列表摘要只保留二排
   ========================================================= */
.al-publisher-zone{
    display:none !important;
}
.al-publisher-zone.is-visible{
    display:block !important;
}
.al-publisher-pills{
    max-height:112px !important;
    overflow:hidden !important;
}
.al-publisher-pill{
    gap:0 !important;
}
.al-publisher-pill em{
    display:none !important;
}
.al-publisher-pill span{
    white-space:nowrap !important;
}


/* =========================================================
   Publisher Zone V2.1.7：出版社二排底部裁切修正
   原因：二排限制 max-height 太低，第二排膠囊陰影/邊框被 footer 或容器高度裁切。
   ========================================================= */
.sy-publisher-zone{
    padding-bottom:58px !important;
    margin-bottom:0 !important;
}
.sy-publisher-zone-inner{
    padding-bottom:14px !important;
}
.sy-publisher-pills-top{
    max-height:150px !important;
    overflow:hidden !important;
    padding-bottom:22px !important;
    margin-bottom:-8px !important;
}
.sy-publisher-pill{
    margin-bottom:4px !important;
}
.sy-footer{
    margin-top:0 !important;
}

/* audiolist 的出版社專區同樣避免二排被裁切 */
.al-publisher-zone{
    padding-bottom:42px !important;
}
.al-publisher-pills{
    max-height:150px !important;
    overflow:hidden !important;
    padding-bottom:22px !important;
    margin-bottom:-8px !important;
}
.al-publisher-pill{
    margin-bottom:4px !important;
}


/* =========================================================
   Audiolist V2.8：導覽加入出版社專區＋Hero 統計不換行
   ========================================================= */
.al-hero-stats {
    flex-wrap: nowrap !important;
    gap: 24px !important;
    white-space: nowrap !important;
    align-items: center !important;
}

.al-hero-stats div {
    flex: 0 0 auto !important;
    padding-right: 22px !important;
}

.al-hero-stats strong,
.al-hero-stats span {
    white-space: nowrap !important;
}

@media (max-width: 980px) {
    .al-hero-stats {
        flex-wrap: wrap !important;
        white-space: normal !important;
        gap: 18px !important;
    }
}

/* 新增出版社專區後，導覽列間距微調，避免桌機寬度不足 */
.syh-v22-nav {
    gap: 26px !important;
}

@media (max-width: 1280px) {
    .syh-v22-nav {
        gap: 20px !important;
    }
}

@media (max-width: 1100px) {
    .syh-v22-nav {
        gap: 16px !important;
    }
}


/* =========================================================
   Audiolist V2.10：列表模式改為書目摘要列＋版頭裁切修正
   ========================================================= */

/* 修正頁面最上方被 header / browser top 裁到一點的問題 */
body.audiolist-v2{
    overflow-x:hidden !important;
}

.al-page{
    padding-top:42px !important;
}

.al-hero{
    margin-top:0 !important;
    overflow:hidden !important;
}

/* 避免大標題貼到上緣時被切 */
.al-hero-left{
    padding-top:6px !important;
}

/* 列表模式不再使用傳統 table，改為書目摘要列 */
.TableDiv{
    width:100% !important;
    overflow:visible !important;
}

.al-list-view{
    display:flex;
    flex-direction:column;
    gap:16px;
    width:100%;
}

.al-list-item{
    display:grid;
    grid-template-columns:64px minmax(0,1fr);
    gap:18px;
    width:100%;
    padding:22px 24px;
    border:1px solid rgba(255,132,0,.24);
    border-radius:22px;
    background:linear-gradient(180deg,#ffffff 0%,#fffaf4 100%);
    box-shadow:0 12px 28px rgba(64,39,10,.06);
}

.al-list-no{
    width:46px;
    height:46px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff1df;
    color:#ff7a00;
    font-size:18px;
    font-weight:900;
}

.al-list-main{
    min-width:0;
}

.al-list-title{
    margin:0 0 10px;
    color:#073763;
    font-size:22px;
    line-height:1.45;
    font-weight:900;
}

.al-list-title a{
    color:#073763 !important;
    text-decoration:none !important;
}

.al-list-title a:hover{
    color:#ff7a00 !important;
}

.al-list-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px 18px;
    margin-bottom:10px;
    color:#637083;
    font-size:15px;
    font-weight:700;
    line-height:1.6;
}

.al-list-meta i{
    color:#ff8500;
    margin-right:5px;
}

.al-list-desc{
    margin:0 0 16px;
    color:#4b5d73;
    font-size:16px;
    line-height:1.85;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.al-list-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.al-view-actions button.is-active{
    background:#ff8500 !important;
    color:#fff !important;
    border-color:#ff8500 !important;
}

@media (max-width: 980px){
    .al-page{
        padding-top:28px !important;
    }

    .al-list-item{
        grid-template-columns:48px minmax(0,1fr);
        gap:14px;
        padding:18px;
    }

    .al-list-no{
        width:40px;
        height:40px;
        font-size:16px;
    }

    .al-list-title{
        font-size:19px;
    }
}

@media (max-width: 560px){
    .al-list-item{
        grid-template-columns:1fr;
    }

    .al-list-no{
        width:auto;
        height:auto;
        border-radius:999px;
        justify-content:flex-start;
        padding:4px 12px;
        display:inline-flex;
        justify-self:flex-start;
    }

    .al-list-actions .al-btn{
        width:100%;
        justify-content:center;
    }
}


/* =========================================================
   SunnyAudios Front V1：內容類型標籤
   ========================================================= */
.al-new-badge{
    min-width:54px;
    text-align:center;
    letter-spacing:.03em;
}
.al-new-badge::before{
    content:"";
    display:inline-block;
    width:6px;
    height:6px;
    border-radius:50%;
    background:rgba(255,255,255,.88);
    margin-right:5px;
    vertical-align:middle;
}


/* =========================================================
   SunnyAudios Front V1.1C：人物欄位標籤修正
   ========================================================= */

/* 卡片人物欄位改為「聲優／講師／表演者」後，避免行距過鬆 */
.al-card-meta span,
.al-list-meta span{
    line-height:1.55;
}

/* 若卡片寬度不足，允許人物欄位自然換行，不要裁切重要資訊 */
.al-card-meta span{
    white-space:normal;
}


/* =========================================================
   SunnyAudios Front V1.1D：人物欄位標籤全站修正
   ========================================================= */

.al-card-meta span,
.al-list-meta span{
    white-space:normal;
    line-height:1.55;
}


/* =========================================================
   SunnyAudios Front V1.1E：封面縮圖與首頁一致
   ========================================================= */

/* 列表卡片封面改成首頁同邏輯：直式書封比例，完整顯示，不裁切 */
.al-card-media{
    aspect-ratio:3/4 !important;
    background:#fff3df !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:hidden !important;
}

.al-card-media img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    display:block !important;
}

/* 人物欄位依使用者要求：聲優／講師 */
.al-card-meta span,
.al-list-meta span{
    white-space:normal !important;
    line-height:1.55 !important;
}


/* =========================================================
   SunnyAudios Front V1.1G：人物欄位依內容型態標示
   ========================================================= */

.al-card-meta span,
.al-list-meta span,
.sy-audio-card p{
    white-space:normal !important;
    line-height:1.55 !important;
}
