/* 春风AI 首页样式 */
.home-page { display: flex; flex-direction: column; height: 100vh; }
.home-body { display: flex; flex: 1; overflow: hidden; }

.main-content {
    flex: 1; overflow-y: auto;
    display: flex; flex-direction: column; align-items: center;
    justify-content: flex-start; padding-top: 80px;
}
.hero-section { text-align: center; max-width: 800px; width: 100%; }
.hero-title {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    font-size: 32px; font-weight: 600; margin-bottom: 12px; color: #141414;
}
.hero-title img { width: 32px; height: 32px; object-fit: contain; }
.hero-subtitle { font-size: 14px; color: #999; margin-bottom: 32px; }

/* 输入框 */
.input-container {
    background: #fafafa; border: 1px solid #e5e5e5; border-radius: 16px;
    padding: 16px; max-width: 700px; margin: 0 auto; transition: all .3s;
}
.input-area {
    width: 100%; min-height: 60px; border: none; outline: none;
    background: transparent; font-size: 16px; color: #141414;
    resize: none; font-family: inherit;
}
.input-area::placeholder { color: #999; }
.input-toolbar { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.toolbar-left { display: flex; gap: 8px; }
.toolbar-right { display: flex; gap: 8px; }
.tool-btn {
    width: 32px; height: 32px; border-radius: 16px; border: 1px solid #e5e5e5;
    background: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .2s;
}
.tool-btn:hover { background: #f5f5f5; border-color: #ccc; }
.tool-btn svg { width: 16px; height: 16px; color: #666; }
.send-btn {
    width: 36px; height: 36px; border-radius: 18px;
    background: linear-gradient(135deg, #e6f9f0 0%, #b8ecd3 100%);
    border: 1px solid #80e0b8; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .2s;
}
.send-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,195,117,.3); }
.send-btn svg { width: 18px; height: 18px; color: #00c375; }
.send-btn:disabled { background: #f5f5f5; border-color: #e5e5e5; cursor: not-allowed; }
.send-btn:disabled svg { color: #ccc; }

/* 提示标签 */
.hint-tags { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; }
.hint-row { display: flex; justify-content: center; gap: 12px; flex-wrap: nowrap; }
.hint-tag {
    background: linear-gradient(135deg, #edfef9 0%, #f5fbfe 100%); border: 1px solid #cfeafb; padding: 8px 16px;
    border-radius: 20px; font-size: 12.5px; color: #141414; cursor: pointer;
    transition: all .2s; display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap; width: auto;
}
.hint-tag:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,195,160,.15); }

/* ===== 首页图片推荐 ===== */
.home-pic-section {
    max-width: 700px; width: 100%; margin: 32px auto 0;
    text-align: left;
}
.home-pic-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.home-pic-title {
    font-size: 15px; font-weight: 600; color: #141414;
}
.home-pic-more {
    font-size: 13px; color: #00c375; text-decoration: none;
    transition: opacity .2s;
}
.home-pic-more:hover { opacity: .7; }
.home-pic-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
@media (max-width: 768px) {
    .home-pic-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
}
.home-pic-item {
    border-radius: 10px; overflow: hidden;
    background: #f5f5f5; cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    aspect-ratio: 1; position: relative;
}
.home-pic-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.home-pic-item:hover .home-pic-download { opacity: 1; }
.home-pic-item img {
    width: 100%; height: 100%; display: block;
    object-fit: cover;
}

/* 首页图片卡片 - 下载按钮 */
.home-pic-download {
    position: absolute; top: 6px; right: 6px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(0,0,0,.45); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff; opacity: 0; transition: opacity .2s; z-index: 2;
}
.home-pic-download:hover { background: rgba(0,0,0,.7); }
.home-pic-download svg { width: 14px; height: 14px; }

/* 首页图片卡片 - 点击次数 */
.home-pic-count {
    position: absolute; bottom: 4px; right: 4px;
    padding: 2px 8px; border-radius: 10px;
    background: rgba(0,0,0,.4); color: #fff;
    font-size: 11px; pointer-events: none; z-index: 2;
}
/* 移动端隐藏下载按钮和次数 */
@media (max-width: 768px) {
    .home-pic-download { display: none !important; }
    .home-pic-count { display: none !important; }
    .home-preview-tool-btn { display: none !important; }
}

.home-pic-loading {
    grid-column: 1 / -1; text-align: center;
    padding: 30px 0; color: #ccc; font-size: 13px;
}

/* ===== 首页图片预览弹窗 ===== */
.home-preview-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,.92);
    display: none; align-items: center; justify-content: center;
}
.home-preview-overlay.active { display: flex; }
.home-preview-container {
    position: relative; display: inline-block;
    max-width: 90vw; max-height: 90vh;
}
.home-preview-img {
    max-width: 90vw; max-height: 90vh;
    object-fit: contain; border-radius: 4px; display: block;
}
.home-preview-toolbar {
    position: absolute; top: 12px; right: 12px;
    display: flex; gap: 8px; z-index: 10;
}
.home-preview-tool-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,.5); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: background .2s;
}
.home-preview-tool-btn:hover { background: rgba(0,0,0,.75); }
.home-preview-tool-btn svg { width: 18px; height: 18px; }

/* 品牌小字 */
.brand-footer { text-align: center; margin-top: auto; padding-bottom: 16px; font-size: 12px; color: #bbb; }
.brand-footer a { color: #bbb; text-decoration: none; margin: 0 6px; }
.brand-footer a:hover { color: #999; }
.brand-links { margin-bottom: 6px; }
.brand-copyright { color: #bbb; }

/* ===== 关于弹窗 ===== */
.about-modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.45);
    display: none; align-items: center; justify-content: center;
}
.about-modal-overlay.active { display: flex; }
.about-modal {
    width: 860px; max-width: 94vw; height: 560px; max-height: 85vh;
    background: #fff; border-radius: 16px; display: flex;
    overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.about-sidebar {
    width: 160px; min-width: 160px; background: #f9fafb;
    border-right: 1px solid #f0f0f0; padding: 20px 0;
    display: flex; flex-direction: column; gap: 2px;
}
.about-tab {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 12px 20px; border: none;
    background: transparent; font-size: 14px; color: #666;
    cursor: pointer; text-align: left; transition: all .15s;
}
.about-tab:hover { background: #f0f0f0; color: #333; }
.about-tab.active { background: #fff; color: #16a34a; font-weight: 500; border-right: 2px solid #22c55e; margin-right: -1px; }
.about-content {
    flex: 1; padding: 28px 32px; position: relative; overflow-y: auto;
}
.about-close {
    position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
    border: none; background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; color: #999; transition: all .15s;
}
.about-close:hover { background: #f5f5f5; color: #333; }
.about-title { font-size: 18px; font-weight: 600; color: #141414; margin-bottom: 20px; }
.about-body { font-size: 14px; line-height: 1.8; color: #555; }
.about-body p { margin-bottom: 12px; }

@media (max-width: 640px) {
    .about-sidebar { width: 110px; min-width: 110px; }
    .about-tab { padding: 10px 14px; font-size: 13px; }
    .about-content { padding: 20px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 22px; }
    .hero-title img { width: 26px; height: 26px; }
    .hero-subtitle { font-size: 13px; margin-bottom: 20px; }
    .hero-section { padding: 0 16px; }
    .input-container { padding: 12px; max-width: 100%; }
    .hint-tags { gap: 8px; }
    .hint-row { gap: 8px; justify-content: center; }
    .hint-tag { font-size: 12px; padding: 6px 14px; }
    .history-panel {
        position: fixed; left: -280px; top: 0; bottom: 0; z-index: 100;
        box-shadow: none; transition: left .3s, box-shadow .3s;
        padding-top: 60px;
    }
    .history-panel.mobile-open {
        left: 0; box-shadow: 4px 0 16px rgba(0,0,0,.15);
    }
    .main-content { padding-top: 70px; }
}
