/*
Theme Name: AeroCore Free Child
Theme URI: https://cozylingo.cn
Description: AeroCore Free 子主题（蔻兹定制）。继承父主题全部功能与样式，用于本站定制覆盖。
Author: CozyLingo
Author URI: https://cozylingo.cn
Template: AeroCoreFree
Version: 1.2.0
Requires at least: 4.0
Tested up to: 5.7
Requires PHP: 7.0
Text Domain: aerocore-child
*/

/* ===== 本站定制样式（覆盖父主题） ===== */

/* ===== 整体配色对齐 cozylingo.com（米白 #f7f1e8） ===== */
/* 页面背景：米白（与 cozylingo.com 一致） */
body {
    background-color: #f7f1e8;
}

/* 导航：米白 88% 半透明 + 毛玻璃（cozylingo.com 同款） */
.site-header {
    background: rgba(247, 241, 232, 0.88) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
/* 导航文字：深棕黑 */
.site-header,
.site-header a {
    color: #1c1410;
}
/* 暗色模式导航：深色版毛玻璃 */
[data-theme="dark"] .site-header,
.dark .site-header,
html.dark .site-header {
    background: rgba(38, 38, 40, 0.88) !important;
}

/* ===== 卡片/侧边栏/文章内容：暖白 #fffaf3（cozylingo.com 同款温馨学习风） ===== */
.article-item,
.widget,
.main-article-list,
.single-article,
.related-articles {
    background-color: #fffaf3;
}
/* 暗色模式恢复主题深色 */
[data-theme="dark"] .article-item,
[data-theme="dark"] .widget,
[data-theme="dark"] .main-article-list,
[data-theme="dark"] .single-article,
[data-theme="dark"] .related-articles {
    background-color: #262628;
}

/* ===== 分类/归档页：图文列表（左图右文，缩略图放大） =====
   布局沿用父主题默认的 .article-list--image_text（图左文右），
   仅把缩略图从默认 200x134 放大到 300x200（3:2）。
   只作用于归档页，不影响首页布局组件。 */
.archive-page .article-item__thumb {
    width: 300px;                 /* 默认 200px → 放大 1.5 倍 */
    height: 200px;                /* 默认 134px → 放大 1.5 倍 */
}
.archive-page .article-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* 小图裁剪填充，无变形 */
}

/* 摘要：最多 3 行省略（line-clamp 只支持整数行，"三行半"按 3 行） */
.archive-page .article-item__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 暗色模式（保持父主题卡片底色，无需额外调整） */

/* 移动端：缩略图适当缩小，避免挤压文字；隐藏「阅读原文」按钮（用户要求手机版不需要） */
@media (max-width: 768px) {
    .archive-page .article-item__thumb {
        width: 150px;
        height: 100px;
    }
    .cozy-read-more-wrap {
        display: none;
    }
}

/* ===== 列表卡片「阅读原文」按钮（摘要下方，右对齐显眼大按钮） ===== */
.cozy-read-more-wrap {
    text-align: right;
    margin: 35px 0 0px;
    padding-right: 58px;
}
.cozy-read-more {
    display: inline-block;
    padding: 8px 28px;
    border-radius: 8px;
    background: #e85d4c;          /* 用户指定：红橙色 */
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(232, 93, 76, 0.3);
    transition: background .2s, box-shadow .2s;
}
.cozy-read-more:hover {
    background: #d14f3f;
    color: #fff;
    box-shadow: 0 4px 12px rgba(232, 93, 76, 0.4);
}
