/*
Theme Name: AIGC FUN
Theme URI: https://resc.cn
Author: 小性工作室
Author URI: https://resc.cn
Description: Recreate · 探索 AI，重塑创意。浅蓝极简卡片式个人主页，mumingfang.com 风格版式。
Version: 2.3
License: GNU General Public License v2 or later
Text Domain: aigc-fun
*/

:root {
    --primary: #3B82F6;
    --primary-light: #60A5FA;
    --primary-bg: #EFF6FF;
    --accent: #8B5CF6;
    --bg: #F0F4FF;
    --surface: #FFFFFF;
    --text: #1E293B;
    --text-2: #475569;
    --text-3: #94A3B8;
    --border: #E2E8F0;
    --shadow: 0 2px 12px rgba(59,130,246,0.06);
    --shadow-hover: 0 6px 24px rgba(59,130,246,0.10);
    --radius: 16px;
    --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    cursor: none;
    overflow-x: hidden;
    background: linear-gradient(135deg, #E0E7FF 0%, #DBEAFE 25%, #E0F2FE 50%, #F0F9FF 75%, #EFF6FF 100%);
    background-attachment: fixed;
}

/* ===== 海绵宝宝鼠标 ===== */
.sponge-cursor {
    position: fixed; pointer-events: none; z-index: 99999;
    font-size: 32px; transform: translate(-50%,-50%);
    transition: transform 0.12s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}
.sc-click {
    position: fixed; pointer-events: none; z-index: 99998;
    font-size: 44px; transform: translate(-50%,-50%) scale(0); opacity: 0;
}
.sc-click.pop { animation: scPop 0.5s ease-out forwards; }
@keyframes scPop {
    0% { transform: translate(-50%,-50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%,-50%) scale(1.4); opacity: 0.7; }
    100% { transform: translate(-50%,-50%) scale(1.8); opacity: 0; }
}

/* ===== 主网格：2列规整布局 ===== */
.home-grid {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 18px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    position: relative; z-index: 1;
}

/* ===== 卡片基础 ===== */
.card {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}
.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* ===== 入场动画 ===== */
.anim-in { opacity: 0; transform: translateY(16px); transition: all 0.5s ease; }
.anim-in.show { opacity: 1; transform: translateY(0); }

/* ===== Hero（全宽） ===== */
.hero-section {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 36px;
    padding-bottom: 28px;
}
.hero-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 3px;
    margin-bottom: 16px;
    animation: avatarFloat 3.5s ease-in-out infinite;
}
@keyframes avatarFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.hero-avatar-img {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 50%;
    border: 3px solid white;
}
.hero-avatar-placeholder {
    width: 100%; height: 100%;
    border-radius: 50%; background: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
}
.hero-name {
    font-size: 22px; font-weight: 800;
    letter-spacing: -0.5px; margin-bottom: 8px;
}
.hero-bio {
    font-size: 13px; color: var(--text-2);
    line-height: 1.55; max-width: 320px;
}

/* ===== 模块通用头部 ===== */
.mod-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 16px;
}
.mod-ico { font-size: 17px; }
.mod-header h2 { font-size: 15px; font-weight: 700; }

/* ===== 服务/技能（全宽） ===== */
.card-module:nth-of-type(2) { grid-column: span 2; }
.svc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.svc-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(59,130,246,0.03), rgba(139,92,246,0.03));
    border-radius: var(--radius-sm);
    transition: all 0.25s;
}
.svc-item:hover {
    background: linear-gradient(135deg, rgba(59,130,246,0.07), rgba(139,92,246,0.07));
    transform: translateX(3px);
}
.svc-icon { font-size: 20px; flex-shrink: 0; }
.svc-info strong { font-size: 13px; font-weight: 600; display: block; }
.svc-info small { font-size: 11px; color: var(--text-3); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    padding: 4px 12px; font-size: 11px; font-weight: 500;
    color: var(--text-2);
    background: rgba(59,130,246,0.05);
    border: 1px solid rgba(59,130,246,0.1);
    border-radius: 100px;
    transition: all 0.25s;
}
.tag:hover {
    color: var(--primary);
    background: var(--primary-bg);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

/* ===== 最近的想法（全宽） ===== */
.card-module:nth-of-type(3) { grid-column: span 2; }
.idea-highlight {
    background: linear-gradient(135deg, var(--primary-bg), rgba(139,92,246,0.04));
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 12px;
    position: relative;
}
.idea-highlight::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 3px;
}
.idea-text { font-size: 13px; color: var(--text-2); line-height: 1.55; margin-bottom: 8px; padding-left: 6px; }
.idea-tag { font-size: 11px; color: var(--text-3); padding-left: 6px; }

.idea-list { display: flex; flex-direction: column; gap: 6px; }
.idea-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    background: var(--bg);
    border-radius: 10px;
    font-size: 12px; color: var(--text-2);
    transition: all 0.25s;
}
.idea-item:hover { background: var(--primary-bg); transform: translateX(3px); }
.idea-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--primary); flex-shrink: 0;
}
.idea-text-mini { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 每日一言（全宽） ===== */
.card-module:nth-of-type(4) { grid-column: span 2; text-align: center; }
.quote-box { padding: 6px 0; }
.quote-txt {
    font-size: 13px; line-height: 1.7;
    color: var(--text-2); font-style: italic;
    min-height: 44px;
    transition: opacity 0.3s;
    display: inline-block;
}
.quote-btn {
    margin-top: 12px;
    padding: 6px 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; border: none;
    border-radius: 100px;
    font-size: 11px; cursor: pointer;
    font-weight: 500;
    transition: all 0.25s;
}
.quote-btn:hover { transform: scale(1.06); box-shadow: 0 4px 16px rgba(59,130,246,0.3); }

/* ===== 关于我 / 联系方式（各占一列） ===== */
.contact-hint { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.contact-list { display: flex; flex-direction: column; gap: 8px; }
.contact-row {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: all 0.25s;
    font-size: 12px;
}
.contact-row:hover { background: var(--primary-bg); transform: translateX(3px); }
.contact-label { font-size: 13px; font-weight: 600; min-width: 68px; }
.contact-val { color: var(--text-2); }

/* ===== 博客入口（全宽，居中） ===== */
.card-module:last-of-type { grid-column: span 2; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.blog-desc { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.primary-btn {
    display: inline-block; padding: 10px 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; text-decoration: none;
    border-radius: 100px; font-size: 13px; font-weight: 600;
    transition: all 0.3s;
}
.primary-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}

/* ===== 底部浮动 Dock 栏 — macOS 风格悬浮 ===== */
.bottom-nav {
    position: fixed;
    bottom: 28px;
    left: 50%; transform: translateX(-50%);
    z-index: 100;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(59,130,246,0.12), 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 10px 20px max(10px, env(safe-area-inset-bottom));
}
.bnav-item {
    display: flex; flex-direction: column; align-items: center;
    justify-content: flex-end;
    gap: 4px;
    text-decoration: none;
    color: var(--text-3);
    font-size: 10px; font-weight: 500;
    padding: 6px 20px;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    border-radius: 14px;
    position: relative;
}
.bnav-item .bnav-ico {
    font-size: 22px; line-height: 1;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    display: block;
}
/* DOCK 放大效果 — 鼠标悬停时图标放大 */
.bnav-item:hover .bnav-ico { transform: scale(1.3); }
.bnav-item:hover { color: var(--text-2); background: rgba(59,130,246,0.06); }
/* 选中态 — macOS 风格高亮 + 底部指示点 */
.bnav-item.active { color: var(--primary); }
.bnav-item.active .bnav-ico { transform: scale(1.2); }
.bnav-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%; transform: translateX(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 6px rgba(59,130,246,0.5);
    animation: dockDotPulse 2s ease-in-out infinite;
}
@keyframes dockDotPulse {
    0%,100% { opacity: 1; box-shadow: 0 0 4px rgba(59,130,246,0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 8px rgba(59,130,246,0.7); }
}
/* 非选中项：hover 时底部也出现小点 */
.bnav-item:hover::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--text-3);
}

/* ===== Footer ===== */
.site-footer {
    text-align: center; padding: 24px 18px 80px;
    color: var(--text-3); font-size: 11px;
    line-height: 1.8; position: relative; z-index: 1;
}
.site-footer a { color: var(--primary); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ===== 响应式：手机端单列 ===== */
@media (max-width: 720px) {
    body { cursor: auto; }
    .sponge-cursor, .sc-click { display: none; }
    
    .home-grid {
        grid-template-columns: 1fr !important;
        padding: 14px 12px 85px;
        gap: 12px;
    }
    .hero-section,
    .card-module { grid-column: span 1 !important; }
    .hero-name { font-size: 19px; }
    .hero-bio { max-width: 260px; }
    .svc-grid { grid-template-columns: 1fr; }
    .bnav-item { padding: 4px 16px; font-size: 9px; }
    .bnav-ico { font-size: 20px; }
    .support-grid { grid-template-columns: 1fr; }
    .blog-list { gap: 10px; }
    .page-wrap { padding: 14px 12px 80px; }
}

@media (max-width: 480px) {
    .card { padding: 16px; border-radius: 14px; }
    .hero-avatar { width: 64px; height: 64px; }
    .hero-name { font-size: 18px; }
}

/* ===== 赞助支持页 ===== */
.support-hero { text-align: center; padding: 40px 0 30px; }
.support-label { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.support-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.support-hero p { font-size: 14px; color: var(--text-2); line-height: 1.8; }

.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 560px; margin: 0 auto; }
.support-pay-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 26px 20px; text-align: center; transition: all 0.3s;
}
.support-pay-card:hover { border-color: var(--primary-light); box-shadow: 0 6px 24px rgba(59,130,246,0.1); transform: translateY(-3px); }
.pay-header { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 6px; }
.pay-icon { font-size: 26px; }
.pay-header h3 { font-size: 16px; font-weight: 700; }
.pay-desc { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.pay-qr { width: 160px; height: 160px; margin: 0 auto; background: #f8fafc; border: 2px dashed var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pay-qr img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.qr-placeholder { text-align: center; color: var(--text-3); line-height: 1.8; font-size: 12px; padding: 18px; }
.qr-placeholder span { display: block; font-size: 13px; margin-bottom: 4px; }

.sponsors-grid { display: flex; flex-direction: column; gap: 7px; }
.sponsor-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 14px 16px;
    text-decoration: none; color: var(--text); transition: all 0.25s;
}
.sponsor-card:hover { border-color: var(--primary-light); box-shadow: 0 4px 14px rgba(59,130,246,0.08); transform: translateX(4px); }
.sponsor-card-static { cursor: default; }
.sponsor-card-static:hover { transform: none; }
.sponsor-emoji { font-size: 24px; flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #F1F5F9; border-radius: 10px; }
.sponsor-detail { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sponsor-name { font-size: 13px; font-weight: 600; }
.sponsor-desc { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sponsor-go { margin-left: auto; color: var(--text-3); font-size: 16px; transition: transform 0.2s; flex-shrink: 0; }
.sponsor-card:hover .sponsor-go { transform: translateX(4px); color: var(--primary); }

.blog-post-card { margin-bottom: 14px; }

/* ===== 博客/赞助页面通用 ===== */
.page-wrap { max-width: 720px; margin: 0 auto; padding: 20px 18px 80px; position: relative; z-index: 1; }
.page-header { text-align: center; padding: 36px 0 28px; }
.page-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.page-desc { font-size: 13px; color: var(--text-3); }

/* 博客列表 */
.blog-list { display: flex; flex-direction: column; gap: 12px; }
.blog-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; padding: 0; overflow: hidden; }
.blog-card:hover { transform: translateY(-3px); }
.blog-cover { width: 100%; height: 160px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-cover img { transform: scale(1.04); }
.blog-info { padding: 14px 18px; }
.blog-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.blog-date { font-size: 11px; color: var(--text-3); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-3); }

/* 赞助页 */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.support-card { padding: 22px; }
.pay-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pay-icon { font-size: 22px; }
.pay-header h3 { font-size: 16px; font-weight: 700; }
.pay-desc { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.pay-qr { width: 100%; aspect-ratio: 1; max-width: 200px; margin: 0 auto; background: #f8fafc; border: 2px dashed var(--border); border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pay-qr img { width: 100%; height: 100%; object-fit: contain; }
.qr-placeholder { text-align: center; color: var(--text-3); line-height: 1.9; font-size: 12px; padding: 16px; }
.qr-placeholder span { display: block; font-size: 13px; margin-bottom: 4px; }
.sponsor-intro { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.sponsors-grid { display: flex; flex-direction: column; gap: 7px; }
.sponsor-card { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--text); transition: all 0.25s; }
.sponsor-card:hover { border-color: var(--primary-light); box-shadow: 0 4px 14px rgba(59,130,246,0.08); transform: translateX(4px); }
.sponsor-card-static { cursor: default; }
.sponsor-card-static:hover { transform: none; }
.sponsor-emoji { font-size: 22px; flex-shrink: 0; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: white; border-radius: 10px; }
.sponsor-detail { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sponsor-name { font-size: 13px; font-weight: 600; }
.sponsor-desc { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sponsor-go { margin-left: auto; color: var(--text-3); font-size: 16px; transition: transform 0.2s; flex-shrink: 0; }
.sponsor-card:hover .sponsor-go { transform: translateX(4px); color: var(--primary); }
