/*
Theme Name: Astra Feiyun
Theme URI: https://feiyun01.xyz/
Description: 对标11dmh的苹果CMS模板下载站子主题
Author: Feiyun
Author URI: https://feiyun01.xyz/
Template: astra
Version: 1.2.7
Text Domain: astra-feiyun
*/

/* ===== CSS变量 ===== */
:root {
    --fy-primary: #1a73e8;
    --fy-primary-hover: #1557b0;
    --fy-nav-bg: #2c3e50;
    --fy-nav-hover: #34495e;
    --fy-nav-text: #ffffff;
    --fy-bg: #f5f5f5;
    --fy-card-bg: #ffffff;
    --fy-text: #333333;
    --fy-text-light: #666666;
    --fy-meta: #767676;
    --fy-border: #e8e8e8;
    --fy-download: #ff6b35;
    --fy-download-hover: #e55a2b;
    --fy-cat-bg: #e8f0fe;
    --fy-cat-text: #1a73e8;
    --fy-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --fy-sidebar-bg: #ffffff;
    --fy-sidebar-title: #2c3e50;
}

/* ===== 全局 ===== */
body {
    background: var(--fy-bg) !important;
    color: var(--fy-text);
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a { color: var(--fy-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--fy-primary-hover); text-decoration: underline; }

/* Skip link (a11y) */
.fy-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--fy-primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    transition: top 0.2s;
}
.fy-skip-link:focus { top: 0; color: #fff; }

/* Focus visible (a11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.fy-tab > a:focus-visible {
    outline: 2px solid var(--fy-primary);
    outline-offset: 2px;
}

/* Hamburger menu toggle */
.fy-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}
.fy-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--fy-nav-text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
/* 汉堡菜单激活时的X形态 */
.fy-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.fy-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.fy-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== 导航栏 ===== */
.fy-header {
    background: var(--fy-nav-bg);
    height: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.fy-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.fy-logo { color: var(--fy-nav-text); font-size: 20px; font-weight: 700; margin-right: 40px; white-space: nowrap; }
.fy-logo a { color: var(--fy-nav-text); text-decoration: none; }
.fy-logo a:hover { text-decoration: none; opacity: 0.9; }

.fy-nav-menu { display: flex; list-style: none; margin: 0; padding: 0; flex: 1; }
.fy-nav-menu > li { position: relative; }
.fy-nav-menu > li > a {
    color: var(--fy-nav-text);
    display: block;
    padding: 0 18px;
    line-height: 60px;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
}
.fy-nav-menu > li > a:hover,
.fy-nav-menu > li.current-menu-item > a { background: var(--fy-nav-hover); text-decoration: none; }

.fy-search { margin-left: auto; }
.fy-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 0 10px;
    height: 36px;
    width: 200px;
}
.fy-search-form input[type="search"] {
    background: transparent; border: none; color: var(--fy-nav-text);
    outline: none; flex: 1; font-size: 13px; height: 100%;
}
.fy-search-form input[type="search"]::placeholder { color: rgba(255,255,255,0.6); }
.fy-search-form button { background: transparent; border: none; color: var(--fy-nav-text); cursor: pointer; padding: 0 0 0 8px; font-size: 14px; }

/* ===== 顶部广告位(由FY Ads Manager渲染) ===== */
.fy-ad-slot.fy-ad-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    text-align: center;
}
.fy-ad-slot.fy-ad-top .fy-ad-item {
    display: block;
    margin: 0 auto 2px;
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
}
.fy-ad-slot.fy-ad-top .fy-ad-item img {
    display: block;
    width: 100%;
    height: 60px;
    object-fit: fill;
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== 主内容容器(左右两栏) ===== */
.fy-main {
    max-width: 1200px;
    margin: 15px auto 0;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.fy-content-area {
    flex: 1;
    min-width: 0;
    background: var(--fy-card-bg);
    border-radius: 4px;
    box-shadow: var(--fy-shadow);
    padding: 20px;
}

/* ===== 侧边栏 ===== */
.fy-sidebar {
    flex-shrink: 0;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.fy-sidebar > * { margin-bottom: 0; }

.fy-sidebar-widget {
    background: var(--fy-sidebar-bg);
    border-radius: 4px;
    box-shadow: var(--fy-shadow);
    padding: 15px;
}

.fy-sidebar-widget h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--fy-sidebar-title);
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fy-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fy-widget-more { font-size: 12px; font-weight: 400; }
.fy-widget-more a { color: var(--fy-meta); }
.fy-widget-more a:hover { color: var(--fy-primary); }

/* 常见问题列表 */
.fy-faq-list { list-style: none; padding: 0; margin: 0; counter-reset: faq; }
.fy-faq-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--fy-border);
    font-size: 13px;
    counter-increment: faq;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fy-faq-list li:last-child { border-bottom: none; }
.fy-faq-list li::before {
    content: counter(faq);
    display: inline-block;
    width: 18px; height: 18px;
    line-height: 18px;
    text-align: center;
    background: #ccc;
    color: #fff;
    border-radius: 2px;
    font-size: 11px;
    flex-shrink: 0;
}
.fy-faq-list li:nth-child(1)::before { background: #e74c3c; }
.fy-faq-list li:nth-child(2)::before { background: #e67e22; }
.fy-faq-list li:nth-child(3)::before { background: #f39c12; }
.fy-faq-list li .fy-faq-item { color: var(--fy-text); flex: 1; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.fy-faq-list li .fy-faq-item:hover { color: var(--fy-primary); }
.fy-faq-thumb { width: 60px; height: 40px; flex-shrink: 0; overflow: hidden; border-radius: 3px; }
.fy-faq-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fy-faq-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 广告投放 */
.fy-ad-promote {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #fff5f0, #fff);
    border: 1px dashed var(--fy-download);
    border-radius: 4px;
}
.fy-ad-promote p { margin: 0 0 10px; font-size: 13px; color: var(--fy-text-light); }
.fy-ad-promote-btn {
    display: inline-block;
    background: var(--fy-download);
    color: #fff;
    padding: 6px 20px;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
}
.fy-ad-promote-btn:hover { background: var(--fy-download-hover); color: #fff; text-decoration: none; }

/* 排行榜 */
.fy-rank-list { list-style: none; padding: 0; margin: 0; counter-reset: rank; }
.fy-rank-list li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--fy-border);
    font-size: 13px;
    counter-increment: rank;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fy-rank-list li:last-child { border-bottom: none; }
.fy-rank-list li::before {
    content: counter(rank);
    display: inline-block;
    width: 18px; height: 18px;
    line-height: 18px;
    text-align: center;
    background: #ccc;
    color: #fff;
    border-radius: 2px;
    font-size: 11px;
    flex-shrink: 0;
}
.fy-rank-list li:nth-child(1)::before { background: #e74c3c; }
.fy-rank-list li:nth-child(2)::before { background: #e67e22; }
.fy-rank-list li:nth-child(3)::before { background: #f39c12; }
.fy-rank-list li .fy-rank-item { color: var(--fy-text); flex: 1; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.fy-rank-list li .fy-rank-item:hover { color: var(--fy-primary); }
.fy-rank-thumb { width: 50px; height: 34px; flex-shrink: 0; overflow: hidden; border-radius: 3px; }
.fy-rank-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fy-rank-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.fy-rank-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 1.3; }
.fy-rank-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--fy-meta); }
.fy-rank-list li .fy-rank-views { color: var(--fy-meta); font-size: 11px; }
.fy-rank-date { color: var(--fy-meta); font-size: 11px; }

/* ===== 页面标题 ===== */
.fy-page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--fy-text);
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--fy-primary);
}

/* ===== 首页 Tab 按钮菜单(对标11dmh sec-panel-head tabs) ===== */
.fy-tabs-wrap {
    background: var(--fy-card-bg);
    border-radius: 4px;
    box-shadow: var(--fy-shadow);
    overflow: hidden;
}

.fy-tabs-nav {
    border-bottom: 2px solid var(--fy-primary);
    background: #fafafa;
}

.fy-tabs-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.fy-tab {
    position: relative;
}

.fy-tab > a {
    display: block;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 500;
    color: var(--fy-text-light);
    text-decoration: none;
    border-right: 1px solid var(--fy-border);
    transition: color 0.2s, background 0.2s;
}

.fy-tab > a:hover {
    color: var(--fy-primary);
    background: #fff;
    text-decoration: none;
}

.fy-tab.fy-tab-active > a {
    color: #fff;
    background: var(--fy-primary);
    font-weight: 700;
}

/* Tab 面板(显隐) */
.fy-tab-panel {
    display: none;
    padding: 0 20px;
}

.fy-tab-panel.fy-tab-panel-active {
    display: block;
}

.fy-tab-panel .fy-post-list .fy-post-item:first-child {
    padding-top: 20px;
}

.fy-tab-panel .fy-post-list .fy-post-item:last-child {
    padding-bottom: 20px;
}

.fy-tab-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--fy-meta);
    font-size: 14px;
}

/* 移动端 Tab 自适应 */
@media screen and (max-width: 768px) {
    .fy-tabs-nav ul {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .fy-tab {
        flex-shrink: 0;
    }
    .fy-tab > a {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
}

/* ===== 文章列表项 ===== */
.fy-post-list { list-style: none; padding: 0; margin: 0; }
.fy-post-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid var(--fy-border);
}
.fy-post-item:last-child { border-bottom: none; }

.fy-post-thumb {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    margin-right: 20px;
    overflow: hidden;
    border-radius: 4px;
    background: #eee;
}
.fy-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.fy-post-item:hover .fy-post-thumb img { transform: scale(1.05); }

.fy-post-content { flex: 1; min-width: 0; }
.fy-post-title { font-size: 17px; font-weight: 600; margin: 0 0 8px 0; line-height: 1.4; }
.fy-post-title a { color: var(--fy-text); text-decoration: none; }
.fy-post-title a:hover { color: var(--fy-primary); text-decoration: none; }

.fy-post-excerpt {
    color: var(--fy-text-light);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fy-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: var(--fy-meta);
}

.fy-cat-tag {
    display: inline-block;
    background: var(--fy-cat-bg);
    color: var(--fy-cat-text);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
}
.fy-cat-tag:hover { background: var(--fy-primary); color: #fff; text-decoration: none; }

.fy-views { color: var(--fy-meta); }
.fy-views::before { content: "\1F441 "; margin-right: 3px; }

.fy-post-thumb-placeholder {
    width: 160px; height: 100px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex; align-items: center; justify-content: center;
    color: #bbb; font-size: 12px; border-radius: 4px;
}

/* ===== 分页 ===== */
.fy-pagination { text-align: center; padding: 30px 0 10px; }
.fy-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: #fff;
    border: 1px solid var(--fy-border);
    border-radius: 4px;
    color: var(--fy-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.fy-pagination .page-numbers:hover { background: var(--fy-primary); color: #fff; border-color: var(--fy-primary); text-decoration: none; }
.fy-pagination .page-numbers.current { background: var(--fy-primary); color: #fff; border-color: var(--fy-primary); }
.fy-pagination .page-numbers.dots { border: none; background: transparent; }

/* ===== 详情页 ===== */
.fy-single {
    background: var(--fy-card-bg);
    border-radius: 4px;
    box-shadow: var(--fy-shadow);
    padding: 30px;
}

.fy-breadcrumb { font-size: 13px; color: var(--fy-meta); margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--fy-border); }
.fy-breadcrumb a { color: var(--fy-meta); }
.fy-breadcrumb a:hover { color: var(--fy-primary); }
.fy-breadcrumb-sep { margin: 0 8px; color: #ccc; }

.fy-single-title { font-size: 24px; font-weight: 700; color: var(--fy-text); margin: 0 0 15px 0; line-height: 1.4; }

.fy-single-meta {
    display: flex; align-items: center; gap: 15px;
    font-size: 13px; color: var(--fy-meta);
    margin-bottom: 25px; padding-bottom: 15px;
    border-bottom: 1px solid var(--fy-border);
}

.fy-single-content { font-size: 15px; line-height: 1.8; color: var(--fy-text); }
.fy-single-content p { margin-bottom: 18px; }
.fy-single-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 15px 0; }
.fy-single-content h2, .fy-single-content h3 { margin: 25px 0 15px; font-weight: 600; }

.fy-download-box {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #fff5f0, #fff);
    border: 2px dashed var(--fy-download);
    border-radius: 8px;
    text-align: center;
}
.fy-download-box h3 { margin: 0 0 15px 0; color: var(--fy-download); font-size: 18px; }
.fy-download-btn {
    display: inline-block;
    background: var(--fy-download);
    color: #fff;
    padding: 12px 40px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.fy-download-btn:hover { background: var(--fy-download-hover); color: #fff; text-decoration: none; transform: translateY(-1px); }
.fy-download-help { margin-top: 12px; font-size: 13px; color: var(--fy-meta); }
.fy-download-help a { color: var(--fy-primary); }

.fy-prev-next {
    display: flex; justify-content: space-between;
    padding: 20px 0; margin-top: 30px;
    border-top: 1px solid var(--fy-border); gap: 20px;
}
.fy-prev-next > div { flex: 1; min-width: 0; }
.fy-prev-next .fy-prev { text-align: left; }
.fy-prev-next .fy-next { text-align: right; }
.fy-prev-next .fy-label { display: block; font-size: 12px; color: var(--fy-meta); margin-bottom: 5px; }
.fy-prev-next a { color: var(--fy-text); font-size: 14px; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fy-prev-next a:hover { color: var(--fy-primary); text-decoration: none; }

.fy-comments { margin-top: 30px; }

/* ===== 页脚 ===== */
.fy-footer {
    background: var(--fy-nav-bg);
    color: rgba(255,255,255,0.7);
    padding: 30px 0;
    margin-top: 40px;
}
.fy-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.fy-footer a { color: rgba(255,255,255,0.7); text-decoration: none; margin: 0 8px; font-size: 13px; }
.fy-footer a:hover { color: #fff; text-decoration: underline; }
.fy-footer-copyright { font-size: 13px; }
.fy-footer-links { display: flex; gap: 15px; }

/* ===== 友情链接区域(页脚上方) ===== */
.fy-friend-links {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 15px 20px;
    background: var(--fy-card-bg);
    border-radius: 4px;
    box-shadow: var(--fy-shadow);
}
.fy-friend-links h3 {
    font-size: 14px;
    color: var(--fy-sidebar-title);
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--fy-border);
}
.fy-friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
}
.fy-friend-links-list a { color: var(--fy-text-light); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .fy-main { flex-direction: column; }
    .fy-sidebar { width: 100%; }
}

@media (max-width: 768px) {
    .fy-header-inner { flex-wrap: wrap; height: auto; padding: 10px 15px; }
    .fy-logo { font-size: 18px; margin-right: 0; }

    /* 汉堡菜单: 移动端显示 */
    .fy-menu-toggle { display: flex; order: 3; }

    /* 导航菜单: 默认收起, 通过aria-expanded控制展开 */
    .fy-nav {
        order: 4;
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .fy-nav.fy-nav-open { max-height: 500px; }
    .fy-nav-menu { flex-direction: column; width: 100%; }
    .fy-nav-menu > li > a { padding: 12px 15px; line-height: 1.4; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.1); }

    /* 搜索框: 独立成行, 宽度100% */
    .fy-search { order: 2; margin-left: 0; width: 100%; margin-top: 0; }
    .fy-search-form { width: 100%; }

    .fy-main { padding: 0 10px; margin: 10px auto 0; }
    .fy-content-area { padding: 15px; }
    .fy-post-item { flex-direction: column; padding: 15px 0; }

    /* 移动端封面图: 使用aspect-ratio保持比例 */
    .fy-post-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-right: 0;
        margin-bottom: 12px;
    }
    .fy-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .fy-post-thumb-placeholder { width: 100%; height: auto; aspect-ratio: 16 / 9; }

    .fy-post-title { font-size: 16px; }
    .fy-single { padding: 20px 15px; }
    .fy-single-title { font-size: 20px; }
    .fy-prev-next { flex-direction: column; }
    .fy-prev-next .fy-next { text-align: left; }
    .fy-footer-inner { flex-direction: column; text-align: center; }
}

/* ===== 无障碍: 尊重用户的动画偏好 ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 移除Astra默认元素 */
.site-footer, .ast-footer-copyright, footer.site-footer { display: none !important; }
.ast-archive-title, .ast-page-title { display: none !important; }

/* ===== 评论区样式(详情页) - 卡片化重写 ===== */
.fy-comments {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--fy-primary);
}

/* 评论标题 */
.fy-comments .comments-title,
.fy-comments #reply-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--fy-sidebar-title);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--fy-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.fy-comments .comments-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--fy-primary);
    border-radius: 2px;
}

/* 评论列表 */
.fy-comments .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 单条评论卡片 */
.fy-comments .comment-list .comment {
    background: #fafafa;
    border: 1px solid var(--fy-border);
    border-radius: 6px;
    padding: 16px 18px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.fy-comments .comment-list .comment:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-color: #d0d0d0;
}

/* 评论主体: 头像 + 内容 */
.fy-comments .comment-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.fy-comments .comment-author {
    flex-shrink: 0;
}
.fy-comments .avatar {
    border-radius: 50%;
    width: 42px;
    height: 42px;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 评论元信息(作者+时间) */
.fy-comments .comment-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}
.fy-comments .comment-meta .comment-author vcard {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.fy-comments .comment-meta .fn {
    font-size: 14px;
    font-weight: 600;
    color: var(--fy-text);
    margin-right: 6px;
}
.fy-comments .comment-meta .says {
    display: none;
}
.fy-comments .comment-metadata {
    font-size: 12px;
    color: var(--fy-meta);
}
.fy-comments .comment-metadata a { color: var(--fy-meta); text-decoration: none; }
.fy-comments .comment-metadata a:hover { color: var(--fy-primary); }

/* 评论内容 */
.fy-comments .comment-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--fy-text);
    padding: 10px 14px;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid var(--fy-primary);
    margin: 0;
}
.fy-comments .comment-content p { margin: 0; }

/* 回复按钮 */
.fy-comments .reply {
    margin-top: 10px;
    text-align: right;
}
.fy-comments .reply a {
    display: inline-block;
    font-size: 12px;
    color: var(--fy-meta);
    padding: 3px 12px;
    border: 1px solid var(--fy-border);
    border-radius: 12px;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s;
}
.fy-comments .reply a:hover {
    color: var(--fy-primary);
    border-color: var(--fy-primary);
    background: var(--fy-cat-bg);
}

/* 子评论缩进 */
.fy-comments .comment-list .children {
    list-style: none;
    padding: 0 0 0 56px;
    margin: 15px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 2px dashed var(--fy-border);
    padding-left: 20px;
}

/* 评论表单容器 */
.fy-comments .comment-respond {
    margin-top: 25px;
    padding: 22px 24px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid var(--fy-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.fy-comments #reply-title {
    margin-bottom: 16px;
}

/* 评论表单 */
.fy-comments #commentform {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.fy-comments #commentform p {
    margin: 0;
}
.fy-comments #commentform label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--fy-text);
    margin-bottom: 6px;
}
.fy-comments #commentform input[type="text"],
.fy-comments #commentform input[type="email"],
.fy-comments #commentform input[type="url"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--fy-border);
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.fy-comments #commentform input[type="text"]:focus,
.fy-comments #commentform input[type="email"]:focus,
.fy-comments #commentform input[type="url"]:focus {
    border-color: var(--fy-primary);
}
.fy-comments #commentform textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px 12px;
    border: 1px solid var(--fy-border);
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.fy-comments #commentform textarea:focus {
    border-color: var(--fy-primary);
}
.fy-comments #commentform .submit {
    align-self: flex-start;
    padding: 8px 28px;
    background: var(--fy-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.fy-comments #commentform .submit:hover {
    background: var(--fy-primary-hover);
}
.fy-comments #commentform .comment-notes,
.fy-comments #commentform .logged-in-as {
    font-size: 12px;
    color: var(--fy-meta);
}
/* 隐藏cookies存储勾选(简化表单) */
.fy-comments #commentform .comment-form-cookies-consent {
    display: none;
}
