/* ========== AO3 底栏与页面结构 ========== */
.ao3-wrapper { display: flex; flex-direction: column; height: 100%; position: relative; }
.ao3-content-body { flex: 1; overflow-y: auto; padding-bottom: 16px; -webkit-overflow-scrolling: touch; }
.ao3-tab-content { display: none; animation: ao3FadeIn 0.25s ease; }
.ao3-tab-content.active { display: block; }
@keyframes ao3FadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ========== 底栏 ========== */
.ao3-tab-bar { flex-shrink: 0; height: 56px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 0.5px solid #e5e5ea; display: flex; justify-content: space-around; align-items: center; padding-bottom: env(safe-area-inset-bottom, 0); z-index: 100; }
.ao3-tab-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: 1; height: 100%; cursor: pointer; color: #8e8e93; transition: color 0.15s ease; -webkit-tap-highlight-color: transparent; }
.ao3-tab-item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
.ao3-tab-item span { font-size: 10px; font-weight: 500; }
.ao3-tab-item:active svg { transform: scale(0.9); }
.ao3-tab-item.active { color: #1d1d1f; }

/* ========== 空状态 ========== */
.ao3-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; color: #8e8e93; }
.ao3-empty-state svg { width: 48px; height: 48px; stroke: #d1d1d6; stroke-width: 1.2; margin-bottom: 16px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ao3-empty-state-title { font-size: 15px; font-weight: 500; color: #3a3a3c; margin-bottom: 4px; }
.ao3-empty-state-sub { font-size: 13px; color: #aeaeb2; }

/* ========== 书架卡片 ========== */
.ao3-fic-card { margin: 0 16px 12px; background: #fff; border-radius: 14px; padding: 16px; border: 1px solid #ececec; box-shadow: 0 1px 4px rgba(0,0,0,.02); position: relative; cursor: pointer; transition: transform 0.1s ease; }
.ao3-fic-card:active { transform: scale(0.98); background: #f9f9fb; }
.ao3-fic-title { font-size: 16px; font-weight: 600; color: #1d1d1f; margin-bottom: 6px; line-height: 1.4; padding-right: 20px; }
.ao3-fic-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ao3-fic-tags span { padding: 2px 8px; background: #f2f2f7; border-radius: 4px; font-size: 10px; color: #3a3a3c; font-weight: 500; }
.ao3-fic-desc { font-size: 13px; color: #8e8e93; line-height: 1.4; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ao3-fic-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #c7c7cc; }
.ao3-fic-stats { display: flex; gap: 12px; }
.ao3-fic-stats span { display: flex; align-items: center; gap: 4px; }
.ao3-fic-stats svg { width: 12px; height: 12px; stroke: #c7c7cc; fill: none; stroke-width: 1.5; }
.ao3-fic-continue-btn { position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; border-radius: 50%; background: #f2f2f7; display: flex; align-items: center; justify-content: center; color: #1d1d1f; transition: background 0.15s; }
.ao3-fic-continue-btn:active { background: #e5e5ea; }
.ao3-fic-continue-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ========== 书籍详情页 (极简高级版) ========== */
.detail-header-area {
    padding: 24px 20px 16px;
    background: transparent;
}

.detail-title-new {
    font-size: 28px;
    font-weight: 800;
    color: #1d1d1f;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.detail-author-new {
    font-size: 14px;
    color: #8e8e93;
    font-weight: 500;
    margin-bottom: 16px;
}

.detail-tags-new {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.detail-tags-new span {
    padding: 4px 10px;
    background: #e5e5ea;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #3a3a3c;
}

.detail-section {
    margin: 24px 20px;
}

.detail-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chapter-list {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f2f2f7;
    box-shadow: 0 2px 12px rgba(0,0,0,0.02);
}

.chapter-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f2f2f7;
    cursor: pointer;
    transition: background 0.15s;
}

.chapter-item:active {
    background: #f9f9fb;
}

.chapter-item:last-child {
    border-bottom: none;
}

.chapter-item-num {
    width: 44px;
    font-size: 13px;
    color: #c7c7cc;
    font-weight: 600;
    font-family: ui-monospace, Menlo, monospace;
}

.chapter-item-title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
}

.chapter-item svg {
    width: 16px;
    height: 16px;
    stroke: #c7c7cc;
    fill: none;
    stroke-width: 2;
}

/* ========== 高级阅读器 ========== */
#screen-fanfic-reader { background: #f2f2f7; }
.reader-card { background: #ffffff; margin: 16px; border-radius: 20px; box-shadow: 0 4px 24px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.02); overflow: hidden; position: relative; }
.reader-header { display: flex; align-items: center; gap: 14px; padding: 20px 20px 16px; }
.reader-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #1d1d1f, #3a3a3c); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.reader-avatar svg { width: 24px; height: 24px; stroke: #ffffff; fill: none; stroke-width: 1.5; }
.reader-author-info { display: flex; flex-direction: column; gap: 2px; }
.reader-author-name { font-size: 16px; font-weight: 700; color: #1d1d1f; letter-spacing: -0.3px; }
.reader-author-handle { font-size: 13px; color: #8e8e93; font-weight: 500; }
.reader-post-content { padding: 0 20px 20px; border-bottom: 1px solid #f2f2f7; }
.reader-title { font-size: 24px; font-weight: 800; color: #1d1d1f; line-height: 1.3; margin-bottom: 12px; letter-spacing: -0.5px; }
.reader-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.reader-tags span { padding: 4px 10px; background: #f2f2f7; border-radius: 6px; font-size: 12px; font-weight: 600; color: #3a3a3c; }
.reader-body { padding: 24px 20px 32px; }
.reader-chapter-title { font-size: 18px; font-weight: 700; color: #1d1d1f; margin-bottom: 16px; margin-top: 0; display: flex; align-items: center; gap: 8px; }
.reader-chapter-title::before { content: ''; display: block; width: 4px; height: 16px; background: #1d1d1f; border-radius: 2px; }
.reader-text-container { font-size: 16px; line-height: 1.85; color: #1d1d1f; text-align: justify; white-space: pre-wrap; }
.reader-para-comment-btn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px; background: #f2f2f7; color: #8e8e93; cursor: pointer; margin-left: 6px; vertical-align: middle; transform: translateY(-1px); transition: all 0.15s; }
.reader-para-comment-btn:active { background: #e5e5ea; color: #1d1d1f; }
.reader-para-comment-btn svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.reader-action-bar { display: flex; justify-content: space-around; padding: 16px 20px; margin: 0 16px 16px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(0,0,0,0.04); border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.reader-action-item { display: flex; align-items: center; gap: 6px; color: #3a3a3c; font-size: 14px; font-weight: 600; cursor: pointer; transition: color 0.15s; }
.reader-action-item:active { color: #1d1d1f; }
.reader-action-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* 评论区 */
.comment-section { margin: 32px 20px; }
.comment-list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.comment-item { display: flex; gap: 12px; }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; background: #e5e5ea; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.comment-avatar svg { width: 16px; height: 16px; stroke: #8e8e93; fill: none; stroke-width: 2; }
.comment-content-wrap { flex: 1; }
.comment-header { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.comment-name { font-size: 13px; font-weight: 700; color: #1d1d1f; }
.comment-time { font-size: 11px; color: #8e8e93; }
.comment-text { font-size: 14px; color: #1d1d1f; line-height: 1.5; margin-bottom: 6px; }
.comment-actions { display: flex; gap: 16px; font-size: 12px; color: #8e8e93; }
.comment-action-btn { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.comment-action-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* 段评抽屉 */
.bottom-sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 10000; opacity: 0; transition: opacity 0.3s; }
.bottom-sheet-overlay.active { opacity: 1; }
.bottom-sheet { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-radius: 24px 24px 0 0; padding: 24px 20px; z-index: 10001; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1); max-height: 70vh; display: flex; flex-direction: column; }
.bottom-sheet.active { transform: translateY(0); }

/* ========== 夜间模式 ========== */
#screen-fanfic-reader.dark-mode { background: #000000; }
#screen-fanfic-reader.dark-mode .reader-card { background: #1c1c1e; box-shadow: none; border: 1px solid #2c2c2e; }
#screen-fanfic-reader.dark-mode .reader-author-name,
#screen-fanfic-reader.dark-mode .reader-title,
#screen-fanfic-reader.dark-mode .reader-chapter-title,
#screen-fanfic-reader.dark-mode .reader-text-container,
#screen-fanfic-reader.dark-mode .reader-action-item,
#screen-fanfic-reader.dark-mode .comment-name,
#screen-fanfic-reader.dark-mode .comment-text,
#screen-fanfic-reader.dark-mode .detail-section-title { color: #f2f2f7; }
#screen-fanfic-reader.dark-mode .reader-tags span,
#screen-fanfic-reader.dark-mode .reader-para-comment-btn { background: #2c2c2e; color: #aeaeb2; }
#screen-fanfic-reader.dark-mode .reader-post-content { border-bottom-color: #2c2c2e; }
#screen-fanfic-reader.dark-mode .reader-action-bar { background: rgba(28, 28, 30, 0.85); border-color: #2c2c2e; }

/* ========== 生成器弹窗 (Modal) ========== */
.ao3-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 20000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s; }
.ao3-modal-overlay.active { opacity: 1; }
.ao3-modal-content { background: #fff; width: 90%; max-width: 400px; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); transform: scale(0.95); transition: transform 0.3s; overflow: hidden; display: flex; flex-direction: column; max-height: 85vh; }
.ao3-modal-overlay.active .ao3-modal-content { transform: scale(1); }
.ao3-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid #f2f2f7; }
.ao3-modal-title { font-size: 18px; font-weight: 700; color: #1d1d1f; }
.ao3-modal-close { background: none; border: none; padding: 4px; cursor: pointer; color: #8e8e93; }
.ao3-modal-close svg { width: 20px; height: 20px; }
.ao3-modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.ao3-form-group { margin-bottom: 20px; }
.ao3-form-group label { display: block; font-size: 13px; font-weight: 600; color: #3a3a3c; margin-bottom: 8px; }
.ao3-input, .ao3-textarea { width: 100%; padding: 12px; border: 1px solid #e5e5ea; border-radius: 10px; font-size: 14px; font-family: inherit; outline: none; background: #f9f9fb; box-sizing: border-box; }
.ao3-input:focus, .ao3-textarea:focus { border-color: #1d1d1f; background: #fff; }
.ao3-textarea { resize: none; height: 80px; }
.ao3-char-select { display: flex; gap: 8px; flex-wrap: wrap; }
.ao3-char-btn { padding: 8px 12px; border: 1px solid #e5e5ea; border-radius: 8px; font-size: 13px; font-weight: 500; color: #3a3a3c; cursor: pointer; transition: all 0.15s; background: #fff; }
.ao3-char-btn.active { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
.ao3-tags-select { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ao3-tag-btn { padding: 4px 10px; border: 1px solid #e5e5ea; border-radius: 20px; font-size: 12px; color: #3a3a3c; cursor: pointer; transition: all 0.15s; }
.ao3-tag-btn.active { background: #f2f2f7; border-color: #1d1d1f; color: #1d1d1f; font-weight: 600; }
.ao3-modal-footer { padding: 16px 20px; border-top: 1px solid #f2f2f7; }
.ao3-btn-primary { width: 100%; padding: 14px; background: #1d1d1f; color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.ao3-btn-primary:active { background: #000; }
.ao3-btn-primary:disabled { background: #8e8e93; cursor: not-allowed; }

/* ========== 评论输入栏 ========== */
.comment-input-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 0.5px solid #e5e5ea;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.comment-input {
    flex: 1;
    height: 36px;
    background: #f2f2f7;
    border: none;
    border-radius: 18px;
    padding: 0 16px;
    font-size: 14px;
    color: #1d1d1f;
    outline: none;
}
.comment-input::placeholder { color: #8e8e93; }
.comment-send-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #1d1d1f;
    color: #fff;
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform 0.1s;
}
.comment-send-btn:active { transform: scale(0.9); }
.comment-send-btn svg { width: 16px; height: 16px; margin-left: -2px; }

/* 夜间模式输入框适配 */
#screen-fanfic-reader.dark-mode .comment-input-bar {
    background: rgba(28, 28, 30, 0.9);
    border-color: #2c2c2e;
}
#screen-fanfic-reader.dark-mode .comment-input {
    background: #2c2c2e;
    color: #f2f2f7;
}
#screen-fanfic-reader.dark-mode .comment-send-btn {
    background: #f2f2f7;
    color: #1d1d1f;
}

/* 点赞动画 */
.liked svg {
    fill: #bcbcbc !important;
    stroke: #bcbcbc !important;
    animation: likePop 0.3s ease;
}
@keyframes likePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* 生成器模式切换 Tab */
.ao3-gen-mode-tabs {
    display: flex;
    background: #f2f2f7;
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 20px;
}
.ao3-gen-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #8e8e93;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.ao3-gen-tab.active {
    background: #fff;
    color: #1d1d1f;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* 专区聚合卡片 */
.ao3-zone-card {
    margin: 0 16px 12px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #ececec;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}
.ao3-zone-card:active {
    transform: scale(0.98);
    background: #f9f9fb;
}
.ao3-zone-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e5e5ea, #d1d1d6);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ao3-zone-icon svg {
    width: 24px; height: 24px;
    stroke: #1d1d1f; fill: none; stroke-width: 2;
}
.ao3-zone-info { flex: 1; }
.ao3-zone-title { font-size: 16px; font-weight: 700; color: #1d1d1f; margin-bottom: 4px; }
.ao3-zone-sub { font-size: 13px; color: #8e8e93; }

/* ========== 极简高级感：个人主页 ========== */
.profile-header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 20px;
}
.profile-avatar-large {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #e5e5ea;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}
.profile-avatar-large svg {
    width: 40px; height: 40px;
    stroke: #8e8e93; fill: none; stroke-width: 1.5;
}
.profile-avatar-large img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.profile-edit-badge {
    position: absolute;
    bottom: 0; right: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #1d1d1f;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #f2f2f7;
}
.profile-edit-badge svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2; }
.profile-info-center { text-align: center; cursor: pointer; }
.profile-name-large { font-size: 24px; font-weight: 800; color: #1d1d1f; margin-bottom: 6px; }
.profile-bio { font-size: 14px; color: #8e8e93; max-width: 280px; line-height: 1.4; }

.profile-stats-wrapper {
    display: flex;
    background: #fff;
    border-radius: 16px;
    margin: 0 20px;
    padding: 16px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    border: 1px solid #f2f2f7;
}
.profile-stat-box { flex: 1; display: flex; flex-direction: column; align-items: center; border-right: 1px solid #f2f2f7; }
.profile-stat-box:last-child { border-right: none; }
.profile-stat-num { font-size: 20px; font-weight: 800; color: #1d1d1f; margin-bottom: 2px; }
.profile-stat-label { font-size: 12px; color: #8e8e93; }

/* ========== 段评加载动画 ========== */
.para-loading-spinner {
    width: 20px; height: 20px;
    border: 2px solid #e5e5ea;
    border-top-color: #1d1d1f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 评论嵌套回复样式 */
.comment-replies {
    margin-top: 12px;
    padding-left: 16px;
    border-left: 2px solid #f2f2f7;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comment-item.reply-item { gap: 8px; }
.comment-item.reply-item .comment-avatar { width: 24px; height: 24px; }
.comment-item.reply-item .comment-avatar svg { width: 12px; height: 12px; }
.comment-item.reply-item .comment-name { font-size: 12px; }
.comment-item.reply-item .comment-text { font-size: 13px; margin-bottom: 0; }

/* 评论区内的输入框 */
.comment-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.comment-input-row .comment-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #e5e5ea;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.comment-input-row .comment-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}
.comment-input-row .comment-avatar svg {
    width: 16px; height: 16px; stroke: #8e8e93;
}
.comment-input-row input {
    flex: 1;
    height: 36px;
    background: #f9f9fb;
    border: 1px solid #e5e5ea;
    border-radius: 18px;
    padding: 0 16px;
    font-size: 14px;
    color: #1d1d1f;
    outline: none;
    transition: border 0.2s;
}
.comment-input-row input:focus {
    border-color: #1d1d1f;
    background: #fff;
}

/* ========== 评论区结构重构：点赞在最右侧 ========== */
.comment-item {
    display: flex;
    gap: 12px;
    align-items: flex-start; /* 顶部对齐 */
    margin-bottom: 16px;
}
.comment-content-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.comment-header {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}
.comment-text {
    font-size: 14px;
    color: #1d1d1f;
    line-height: 1.5;
    margin-bottom: 4px;
}

/* 点赞按钮固定在最右边 */
.comment-like-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding-left: 10px;
    color: #8e8e93;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.15s;
}
.comment-like-right svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.comment-like-right.liked svg {
    fill: #ff3b30;
    stroke: #ff3b30;
    animation: likePop 0.3s ease;
}

/* ========== 评论输入框（小头像） ========== */
.comment-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    align-items: center;
}
.comment-input-row .comment-avatar {
    width: 28px; 
    height: 28px; /* 更小的头像 */
    border-radius: 50%;
    background: #e5e5ea;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.comment-input-row .comment-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}
.comment-input-row .comment-avatar svg {
    width: 14px; height: 14px; stroke: #8e8e93;
}
.comment-input-row input {
    flex: 1;
    height: 32px; /* 更小的输入框 */
    background: #f2f2f7;
    border: none;
    border-radius: 16px;
    padding: 0 14px;
    font-size: 13px;
    color: #1d1d1f;
    outline: none;
}

/* ========== 段评抽屉（加高 + 关闭按钮） ========== */
.bottom-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 20px;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
    height: 65vh; /* ★ 至少占屏幕中段以上 */
    display: flex;
    flex-direction: column;
}
.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}
.bottom-sheet-close {
    background: #f2f2f7;
    border: none;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #8e8e93;
}
.bottom-sheet-content {
    flex: 1;
    overflow-y: auto;
}