/* ============================================================
   首页样式（公共样式见 style.css）
   ============================================================ */

.hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 46px 16px 60px;
    text-align: center;
}

/* ---------- 站标与站名 ---------- */
.hero-logo {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    background: var(--accent-color);
    border-radius: 4px;
    color: var(--color-cream);
    font-family: var(--serif-font);
    font-size: 24px;
    line-height: 44px;
    text-align: center;
}

.hero-brand {
    font-family: var(--serif-font);
    font-size: 15px;
    color: var(--text-muted);
    letter-spacing: .5em;
    text-indent: .5em;   /* 抵消末字字距，保持居中 */
    margin-bottom: 30px;
}

/* ---------- 主标题 ---------- */
.hero-title {
    font-family: var(--serif-font);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 3px;
    color: var(--heading-color);
}

/* ---------- 装饰分隔（线 · 菱形 · 线） ---------- */
.hero-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 22px 0;
}

.hero-ornament span {
    display: block;
    width: 42px;
    height: 1px;
    background: var(--border-strong);
}

.hero-ornament em {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    transform: rotate(45deg);
}

/* ---------- 说明文字 ---------- */
.hero-desc {
    font-size: 15px;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ---------- 搜索 ---------- */
.hero-search {
    display: flex;
    align-items: stretch;
    max-width: 460px;
    margin: 0 auto;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    color: var(--text-muted);
    pointer-events: none;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 16px 0 44px;
    font-family: var(--sans-font);
    font-size: 16px;
    color: var(--text-color);
    background: var(--card-bg);
    border: 1px solid var(--border-strong);
    border-right: 0;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.hero-search input::placeholder {
    color: var(--text-muted);
}

.hero-search input:focus {
    border-color: var(--accent-color);
}

.hero-search button {
    flex: 0 0 auto;
    width: 100px;
    height: 50px;
    font-family: var(--sans-font);
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--color-cream);
    background: var(--color-ink);
    border: 1px solid var(--color-ink);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.hero-search button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* ---------- 热门搜索 ---------- */
.hero-hot {
    margin-top: 18px;
    font-size: 15px;
    color: var(--text-muted);
}

.hero-hot .hot-label {
    margin-right: 4px;
}

.hero-hot a {
    margin: 0 8px;
    color: var(--text-muted);
}

.hero-hot a:hover {
    color: var(--accent-deep);
    text-decoration: none;
}

/* ---------- 统计 ---------- */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: block;
    text-align: center;
    color: var(--text-color);
}

a.stat-item:hover {
    text-decoration: none;
}

.stat-item em {
    display: block;
    font-family: var(--serif-font);
    font-style: normal;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--heading-color);
    line-height: 1.3;
}

.stat-item span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

a.stat-item:hover em,
a.stat-item:hover span {
    color: var(--accent-deep);
}

/* ---------- 今日推荐 ---------- */
.today {
    margin-top: 46px;
    padding: 30px 0 34px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.today-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--serif-font);
    font-size: 23px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 26px;
}

.today-head span {
    letter-spacing: .4em;
    text-indent: .4em;   /* 抵消末字字距，保持居中 */
}

.today-head::before,
.today-head::after {
    content: "";
    flex: 0 0 46px;
    height: 1px;
    background: var(--border-strong);
}

.today-name {
    font-family: var(--serif-font);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--heading-color);
    margin-bottom: 14px;
}

.today-name a {
    color: var(--heading-color);
}

.today-name a:hover {
    color: var(--accent-deep);
    text-decoration: none;
}

.today-meta {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.today-meta a {
    color: var(--accent-color);
}

.today-meta a:hover {
    color: var(--accent-deep);
    text-decoration: none;
}

.today-body {
    max-width: 720px;
    margin: 0 auto 26px;
    font-size: 18px;
    line-height: 2.1;
    color: var(--text-secondary);
}

.today-more a {
    font-size: 15px;
    color: var(--text-muted);
}

.today-more a:hover {
    color: var(--accent-deep);
    text-decoration: none;
}

/* ---------- 最新诗文 / 热门诗人 两栏 ---------- */
.home-cols {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 16px 40px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 46px;
}

/* 左侧诗词占 62%，右侧诗人占 38% */
.col-main {
    flex: 62;
    min-width: 0;
}

.col-side {
    flex: 38;
    min-width: 0;
}

/* 栏目标题行 */
.col-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.col-head h2 {
    font-family: var(--serif-font);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--heading-color);
}

/* 左侧标题：方形点缀 + 下方绛红短线 */
.head-mark {
    position: relative;
    padding: 0 0 14px 16px;
}

.head-mark::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 1px;
}

.head-mark::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* 右侧标题：绛红竖条 */
.head-bar {
    padding-left: 12px;
    border-left: 3px solid var(--accent-color);
}

.col-more {
    flex: 0 0 auto;
    font-size: 14px;
    color: var(--text-muted);
}

.col-more:hover {
    color: var(--accent-deep);
    text-decoration: none;
}

/* ---------- 诗词两列列表 ---------- */
.poem-grid {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 40px;
}

.poem-grid li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    overflow: hidden;
    border-bottom: 1px dashed var(--border-color);
}

/* 最后一行的两项不画线，避免与区块底部实线重叠 */
.poem-grid li:nth-last-child(-n+2) {
    border-bottom: 0;
}

.pg-title {
    font-family: var(--serif-font);
    font-size: 19px;
    color: var(--heading-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-title:hover {
    color: var(--accent-deep);
    text-decoration: none;
}

.pg-meta {
    flex: 0 0 auto;
    font-size: 14px;
    color: var(--text-muted);
}

/* ---------- 诗人标签 ---------- */
.poet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 24px;
}

.poet-tags a {
    display: inline-block;
    padding: 7px 17px;
    font-size: 15px;
    color: var(--text-color);
    background: var(--card-bg);
    border: 1px solid var(--border-strong);
    border-radius: 3px;
}

.poet-tags a:hover {
    color: var(--accent-deep);
    background: var(--accent-soft);
    border-color: var(--accent-color);
    text-decoration: none;
}

/* 排序第一位的诗人高亮 */
.poet-tags a.is-top {
    color: var(--accent-deep);
    background: var(--accent-soft);
    border-color: var(--accent-color);
}

/* ---------- 响应式：移动端 ---------- */
@media (max-width: 768px) {
    .hero {
        padding: 30px 16px 40px;
    }

    .hero-logo {
        width: 38px;
        height: 38px;
        font-size: 21px;
        line-height: 38px;
        margin-bottom: 12px;
    }

    .hero-brand {
        font-size: 13px;
        letter-spacing: .4em;
        text-indent: .4em;
        margin-bottom: 22px;
    }

    .hero-title {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .hero-ornament {
        margin: 16px 0;
    }

    .hero-ornament span {
        width: 32px;
    }

    .hero-desc {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .hero-search input,
    .hero-search button {
        height: 46px;
        font-size: 15px;
    }

    .hero-search input {
        padding-left: 40px;
    }

    .hero-search button {
        width: 86px;
        letter-spacing: 1px;
    }

    .hero-hot {
        font-size: 14px;
        line-height: 2.2;
    }

    .hero-hot a {
        margin: 0 6px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px 0;
        margin-top: 30px;
        padding-top: 22px;
    }

    .stat-item {
        flex: 0 0 50%;
    }

    .stat-item em {
        font-size: 24px;
    }

    .today {
        margin-top: 30px;
        padding: 22px 0 26px;
    }

    .today-head {
        margin-bottom: 18px;
    }

    .today-head::before,
    .today-head::after {
        flex-basis: 30px;
    }

    .today-head {
        font-size: 14px;
    }

    .today-name {
        font-size: 23px;
        letter-spacing: 1px;
    }

    .today-meta {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .today-body {
        font-size: 16px;
        line-height: 2;
        margin-bottom: 20px;
    }

    .home-cols {
        flex-direction: column;
        gap: 30px;
        padding: 26px 16px 30px;
    }

    .col-main,
    .col-side {
        flex: 1 1 auto;
        width: 100%;
    }

    .col-head h2 {
        font-size: 20px;
    }

    .col-more {
        font-size: 13px;
    }

    .head-mark {
        padding-bottom: 12px;
    }

    .poem-grid {
        grid-template-columns: 1fr;
        gap: 0 20px;
    }

    .poem-grid li {
        padding: 11px 0;
    }

    /* 手机端单列排版，只有最后一项不画线 */
    .poem-grid li:nth-last-child(2) {
        border-bottom: 1px dashed var(--border-color);
    }

    .pg-title {
        font-size: 17px;
    }

    .pg-meta {
        font-size: 13px;
    }

    .poet-tags {
        gap: 8px;
        padding-bottom: 18px;
    }

    .poet-tags a {
        padding: 6px 14px;
        font-size: 14px;
    }
}
