/* ==========================================================
 * quote.css —— 表达/句子 模块专属样式
 * 主题色：玫红 #ec4899
 * 类名前缀：quote-
 * ========================================================== */

/* ========== 1. Hero ========== */
.quote-hero-card {
    margin: 0 0 16px;
    padding: 52px 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(236,72,153,0.18), rgba(236,72,153,0.03));
    position: relative;
    overflow: hidden;
}
.quote-hero-card::before {
    content: '❞';
    position: absolute;
    right: -20px; bottom: -50px;
    font-size: 260px;
    color: rgba(236,72,153,0.12);
    line-height: 1;
    font-family: Georgia, serif;
    pointer-events: none;
}
.quote-hero-card::after {
    content: '❝';
    position: absolute;
    left: -10px; top: -40px;
    font-size: 200px;
    color: rgba(236,72,153,0.08);
    line-height: 1;
    font-family: Georgia, serif;
    pointer-events: none;
}
.quote-hero-inner { text-align: center; position: relative; }
.quote-hero-icon { font-size: 52px; margin-bottom: 12px; }
.quote-hero-title {
    font-size: 40px; font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: 3px;
    color: var(--quote-accent-dark, #be185d);
}
.quote-hero-subtitle {
    font-size: 15px; color: var(--cf-muted, #6b7280);
    margin: 0;
    letter-spacing: 1px;
}

/* ========== 2. 筛选栏 ========== */
.quote-filter-bar {
    margin: 0 0 16px;
    padding: 20px 24px;
    border-radius: 18px;
}
.quote-filter-row {
    display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px;
    padding: 10px 0;
}
.quote-filter-row + .quote-filter-row {
    border-top: 1px dashed rgba(236,72,153,0.12);
}
.quote-filter-label {
    flex-shrink: 0;
    min-width: 64px;
    padding: 6px 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #6b7280;
    display: inline-flex; align-items: center;
}
.quote-filter-links {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1;
}

.quote-filter-link, .quote-mood-link, .quote-tag-link {
    display: inline-flex; align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    color: #374151;
    background: rgba(236,72,153,0.05);
    transition: all .2s;
    border: 1px solid transparent;
}
.quote-filter-link em, .quote-mood-link em, .quote-tag-link em {
    font-style: normal;
    font-size: 11.5px;
    color: #9ca3af;
    margin-left: 4px;
    font-weight: 500;
}
.quote-filter-link:hover, .quote-mood-link:hover, .quote-tag-link:hover {
    background: rgba(236,72,153,0.12);
    color: var(--quote-accent-dark, #be185d);
}
.quote-filter-link.active {
    background: var(--quote-accent, #ec4899);
    color: #fff !important;
    border-color: var(--quote-accent-dark, #be185d);
    box-shadow: 0 2px 10px rgba(236,72,153,0.35);
}
.quote-filter-link.active em, .quote-mood-link.active em { color: rgba(255,255,255,0.85) !important; }

/* 情绪标签特殊配色（gradient） */
.quote-mood-link {
    background: linear-gradient(135deg, rgba(236,72,153,0.08), rgba(244,114,182,0.06));
}
.quote-mood-link.active {
    background: linear-gradient(135deg, #ec4899, #f472b6) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(236,72,153,0.4);
    border-color: transparent;
}

/* 主题标签 chip 风格 */
.quote-tag-link {
    padding: 4px 12px;
    font-size: 12.5px;
    background: #fff;
    border: 1px solid rgba(236,72,153,0.15);
}
.quote-tag-link.active {
    background: #fff;
    color: var(--quote-accent-dark, #be185d) !important;
    border-color: var(--quote-accent, #ec4899) !important;
    box-shadow: 0 0 0 3px rgba(236,72,153,0.12);
}

/* 搜索行 */
.quote-search-row {
    display: flex; align-items: center; gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(236,72,153,0.12);
}
.quote-search-wrap {
    position: relative;
    flex: 0 1 380px;
}
.quote-search-input {
    width: 100%;
    padding: 10px 44px 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(236,72,153,0.25);
    outline: none;
    font-size: 14px;
    background: rgba(236,72,153,0.03);
    transition: all .2s;
}
.quote-search-input:focus {
    border-color: var(--quote-accent, #ec4899);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(236,72,153,0.15);
}
.quote-search-btn {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px;
    border: none; border-radius: 50%;
    background: var(--quote-accent, #ec4899); color: #fff;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.quote-search-extra {
    display: flex; align-items: center; gap: 14px;
    flex: 1; flex-wrap: wrap;
}
.quote-author-input {
    width: 200px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(236,72,153,0.2);
    outline: none;
    font-size: 13.5px;
    background: rgba(236,72,153,0.02);
    transition: all .2s;
}
.quote-author-input:focus {
    border-color: var(--quote-accent, #ec4899);
    box-shadow: 0 0 0 3px rgba(236,72,153,0.12);
}
.quote-total {
    font-size: 13px; color: var(--cf-muted, #6b7280);
    margin-left: auto;
}
.quote-total strong { color: var(--quote-accent-dark, #be185d); font-weight: 700; }

/* ========== 3. 双栏主网格 ========== */
.quote-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    padding: 0;
}
@media (max-width: 960px) {
    .quote-main-grid { grid-template-columns: 1fr; padding: 0; }
    .quote-hero-card { margin: 0 0 12px; padding: 36px 20px; }
    .quote-hero-title { font-size: 28px; }
    .quote-filter-bar { margin: 0 0 12px; padding: 16px; }
}

/* ========== 4. 卡片网格 ========== */
.quote-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}
.quote-card {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    padding: 30px 26px 22px;
    border-radius: 18px;
    border-left: 4px solid var(--quote-accent, #ec4899);
    background: #fff;
    transition: all .25s;
    overflow: hidden;
}
.quote-card::before {
    content: '❝';
    position: absolute;
    top: 2px; left: 14px;
    font-size: 42px;
    color: var(--quote-accent, #ec4899);
    opacity: .18;
    line-height: 1;
    font-family: Georgia, serif;
    pointer-events: none;
}
.quote-card::after {
    content: '❞';
    position: absolute;
    bottom: -6px; right: 18px;
    font-size: 48px;
    color: var(--quote-accent, #ec4899);
    opacity: .15;
    line-height: 1;
    font-family: Georgia, serif;
    pointer-events: none;
}
.quote-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(236,72,153,0.14);
    border-left-color: var(--quote-accent-dark, #be185d);
}
.quote-card-content {
    font-size: 16.5px;
    line-height: 1.95;
    color: #1f2937;
    font-family: var(--cf-poem, Georgia, 'Noto Serif SC', serif);
    margin: 0 0 18px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    position: relative;
    z-index: 1;
}
.quote-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
    position: relative; z-index: 1;
}
.quote-card-attribution {
    font-size: 13px;
    color: #6b7280;
    text-align: right;
    flex: 1;
}
.quote-author { color: var(--quote-accent-dark, #be185d); font-weight: 600; }
.quote-source { color: #9ca3af; font-style: italic; }
.quote-card-meta {
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
}
.quote-card-chips {
    display: flex; flex-wrap: wrap; gap: 6px;
    position: relative; z-index: 1;
    padding-top: 10px;
    border-top: 1px dashed rgba(236,72,153,0.1);
}
.quote-chip {
    display: inline-flex; align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    background: rgba(236,72,153,0.07);
    color: #6b7280;
}
.quote-chip-cat {
    background: rgba(236,72,153,0.12);
    color: var(--quote-accent-dark, #be185d);
    font-weight: 500;
}
.quote-chip-mood {
    background: linear-gradient(135deg, rgba(236,72,153,0.8), rgba(244,114,182,0.8));
    color: #fff;
}

/* ========== 5. 分页 ========== */
.quote-page-wrap {
    padding: 16px 0 0;
    text-align: center;
}

/* ========== 6. 右栏 ========== */
.quote-right-col { display: flex; flex-direction: column; gap: 16px; }
.quote-side-card {
    padding: 20px 22px;
    border-radius: 16px;
}
.quote-side-title {
    font-size: 15px; font-weight: 700;
    margin: 0 0 14px;
    color: #111827;
}

/* 今日精选 */
.quote-pick-card {
    background: linear-gradient(135deg, rgba(236,72,153,0.1), rgba(236,72,153,0.02));
    border: 1px solid rgba(236,72,153,0.15);
}
.quote-pick-inner {
    display: block;
    text-decoration: none; color: inherit;
    padding: 6px 4px;
}
.quote-pick-content {
    font-size: 15px;
    line-height: 1.9;
    font-family: var(--cf-poem, Georgia, serif);
    color: #1f2937;
    margin: 0 0 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}
.quote-pick-by {
    font-size: 12.5px;
    color: var(--quote-accent-dark, #be185d);
    font-weight: 500;
    text-align: right;
}
.quote-pick-by span + span { margin-left: 6px; }

/* 热门 */
.quote-hot-ol {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.quote-hot-li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 10px; align-items: flex-start;
    padding: 9px 6px;
    border-radius: 10px;
    transition: background .2s;
}
.quote-hot-li:hover { background: rgba(236,72,153,0.05); }
.quote-hot-idx {
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    color: #9ca3af; background: #f3f4f6;
    border-radius: 6px;
    margin-top: 2px;
}
.quote-hot-idx.top3 {
    background: linear-gradient(135deg,#ec4899,#f472b6);
    color: #fff;
}
.quote-hot-text {
    font-size: 13px; color: #374151;
    text-decoration: none;
    line-height: 1.65;
    font-family: var(--cf-poem, Georgia, serif);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.quote-hot-text:hover { color: var(--quote-accent-dark, #be185d); }

/* 标签云 */
.quote-side-tag-cloud {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.quote-side-tag {
    display: inline-flex; align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    background: #fff;
    border: 1px solid rgba(236,72,153,0.15);
    color: #374151;
    text-decoration: none;
    transition: all .2s;
}
.quote-side-tag em {
    font-style: normal;
    font-size: 10.5px;
    color: #9ca3af;
    margin-left: 4px;
}
.quote-side-tag:hover {
    background: rgba(236,72,153,0.08);
    border-color: var(--quote-accent, #ec4899);
    color: var(--quote-accent-dark, #be185d);
    transform: translateY(-1px);
}

/* ========== 7. 空态 ========== */
.quote-empty { margin: 20px 0 0; padding: 56px 40px; border-radius: 20px; text-align: center; }

/* ========== 8. 详情页 ========== */
.quote-topbar {
    margin: 0 0 16px;
    padding: 12px 22px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
}
.quote-back {
    color: #6b7280; text-decoration: none;
    font-size: 14px;
    transition: color .2s;
}
.quote-back:hover { color: var(--quote-accent-dark, #be185d); }
.quote-top-views {
    font-size: 13px;
    color: var(--quote-accent-dark, #be185d);
    font-weight: 500;
}

/* 居中引用卡 */
.quote-show-feature {
    margin: 0 0 16px;
    padding: 60px 56px 50px;
    border-radius: 22px !important;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, rgba(236,72,153,0.06), rgba(236,72,153,0.01)) !important;
    overflow: visible;
}
.quote-show-feature::before {
    content: '❝';
    position: absolute;
    left: 26px; top: 8px;
    font-size: 100px;
    color: rgba(236,72,153,0.14);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}
.quote-show-feature::after {
    content: '❞';
    position: absolute;
    right: 26px; bottom: -22px;
    font-size: 100px;
    color: rgba(236,72,153,0.14);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}
.quote-show-cat-badge {
    display: inline-block;
    padding: 6px 18px;
    margin-bottom: 24px;
    background: var(--quote-accent, #ec4899);
    color: #fff;
    border-radius: 999px;
    font-size: 13px; font-weight: 600;
    letter-spacing: 1px;
    position: relative; z-index: 2;
}
.quote-show-feature .quote-section-title {
    position: relative;
    z-index: 2;
}
.quote-show-content {
    position: relative;
    padding: 0 20px;
    margin-bottom: 22px;
    z-index: 2;
}
.quote-mark-quote {
    font-size: 52px;
    color: var(--quote-accent, #ec4899);
    opacity: .35;
    font-family: Georgia, serif;
    line-height: 1;
    display: block;
}
.quote-mark-quote.open { text-align: left; }
.quote-mark-quote.close { text-align: right; margin-top: 8px; }
.quote-show-text {
    font-size: 26px;
    line-height: 1.9;
    font-weight: 500;
    color: #111827;
    font-family: var(--cf-poem, Georgia, 'Noto Serif SC', serif);
    max-width: 720px;
    margin: 0 auto;
    letter-spacing: .5px;
    position: relative;
    z-index: 2;
}
.quote-show-feature .quote-show-attribution {
    position: relative;
    z-index: 2;
}
.quote-show-feature .quote-show-summary {
    position: relative;
    z-index: 2;
}
.quote-show-attribution {
    font-size: 15px;
    color: #6b7280;
    margin-top: 12px;
}
.quote-show-author {
    color: var(--quote-accent-dark, #be185d);
    font-weight: 600;
    font-size: 16px;
}
.quote-show-source {
    font-style: italic;
    color: #9ca3af;
}
.quote-show-summary {
    margin-top: 22px;
    padding: 14px 22px;
    background: rgba(236,72,153,0.05);
    border-radius: 12px;
    color: #6b7280;
    line-height: 1.85;
    font-size: 14px;
    max-width: 640px;
    margin-left: auto; margin-right: auto;
    border-left: 3px solid var(--quote-accent, #ec4899);
    text-align: left;
}

/* 深度解读 */
.quote-show-analysis {
    margin: 0 0 16px;
    padding: 32px 40px;
    border-radius: 20px;
}
.quote-section-title {
    font-size: 18px; font-weight: 700;
    margin: 0 0 18px;
    color: #111827;
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(236,72,153,0.12);
}
.quote-section-title span { font-size: 20px; }
.quote-analysis-body {
    font-size: 15.5px;
    line-height: 2.1;
    color: #374151;
}
.quote-analysis-body p { margin: 0 0 14px; text-indent: 2em; }

/* 标签聚合 */
.quote-show-tags {
    margin: 0 0 16px;
    padding: 24px 28px;
    border-radius: 18px;
    display: flex; flex-direction: column; gap: 14px;
}
.quote-tag-group {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.quote-tag-label {
    flex-shrink: 0;
    min-width: 80px;
    font-size: 13.5px; font-weight: 600;
    color: #6b7280;
}
.quote-tag-chip {
    display: inline-flex; align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 13px;
    background: rgba(236,72,153,0.08);
    color: #374151;
    text-decoration: none;
    transition: all .2s;
}
.quote-tag-chip:hover {
    background: rgba(236,72,153,0.18);
    transform: translateY(-1px);
}
.quote-tag-chip.quote-chip-cat {
    background: var(--quote-accent, #ec4899);
    color: #fff !important;
    font-weight: 500;
}
.quote-tag-chip.quote-chip-mood {
    background: linear-gradient(135deg,#ec4899,#f472b6);
    color: #fff !important;
}

/* 相关句子 */
.quote-show-related {
    margin: 0 0 16px;
    padding: 28px 32px;
    border-radius: 20px;
}
.quote-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.quote-related-card {
    display: block;
    padding: 20px 22px;
    border-radius: 14px;
    background: rgba(236,72,153,0.04);
    text-decoration: none; color: inherit;
    border-left: 3px solid transparent;
    transition: all .2s;
    position: relative;
    overflow: hidden;
}
.quote-related-card::before {
    content: '❝';
    position: absolute;
    top: 4px; left: 10px;
    font-size: 28px;
    color: var(--quote-accent, #ec4899);
    opacity: .18;
    line-height: 1;
}
.quote-related-card:hover {
    background: #fff;
    border-left-color: var(--quote-accent, #ec4899);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(236,72,153,0.12);
}
.quote-related-text {
    font-size: 15px;
    line-height: 1.8;
    font-family: var(--cf-poem, Georgia, serif);
    color: #1f2937;
    margin: 0 0 12px;
    padding-left: 22px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.quote-related-by {
    padding-left: 22px;
    font-size: 12.5px;
    color: var(--quote-accent-dark, #be185d);
    text-align: right;
}
.quote-related-by span + span { margin-left: 6px; }

@media (max-width: 768px) {
    .quote-topbar, .quote-show-feature, .quote-show-analysis,
    .quote-show-tags, .quote-show-related {
        margin: 0 0 12px;
        padding: 22px 18px;
    }
    .quote-show-feature { padding: 42px 18px 36px; }
    .quote-show-text { font-size: 20px; }
    .quote-mark-quote { font-size: 36px; }
}
