@charset "utf-8";
/*
 * 520表白墙主题 - 520love
 * 粉系浪漫 · 响应式 · 含动画
 * 适配 Z-BlogPHP 1.7+
 */

:root {
    --c-pink: #ff6b9d;            /* 主粉 */
    --c-pink-deep: #ff3d7f;       /* 深粉 */
    --c-pink-light: #ffe0ec;      /* 浅粉背景 */
    --c-rose: #ff8fb1;            /* 玫粉 */
    --c-purple: #c490e4;          /* 浪漫紫 */
    --c-cream: #fff5f8;           /* 奶粉背景 */
    --c-gold: #ffb86c;            /* 暖金点缀 */
    --c-text: #4a2c3a;            /* 深玫瑰棕字色 */
    --c-text-2: #8a5a6e;          /* 次级文字 */
    --c-text-3: #b89aab;          /* 弱化文字 */
    --c-border: #ffd6e3;
    --c-white: #fff;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 6px 22px rgba(255, 107, 157, 0.12);
    --shadow-hover: 0 12px 32px rgba(255, 61, 127, 0.22);
    --grad-pink: linear-gradient(135deg, #ff8fb1 0%, #ff6b9d 50%, #ff3d7f 100%);
    --grad-romance: linear-gradient(135deg, #ffe0ec 0%, #fff5f8 100%);
    --grad-hero: linear-gradient(135deg, #ffb3d1 0%, #ff6b9d 50%, #c490e4 100%);
    --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: var(--c-text);
    background: var(--c-cream);
    line-height: 1.75;
    overflow-x: hidden;
}

a { color: var(--c-pink-deep); text-decoration: none; transition: all .2s; }
a:hover { color: var(--c-purple); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, button, textarea, select { font-family: inherit; outline: none; border: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ============ 通用按钮 ============ */
.btn { display: inline-block; padding: 10px 26px; border-radius: 30px; font-size: 14px; cursor: pointer; transition: all .25s; border: none; }
.btn-pink { background: var(--grad-pink); color: #fff; box-shadow: 0 4px 14px rgba(255, 61, 127, 0.35); }
.btn-pink:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 61, 127, 0.5); color: #fff; }
.btn-outline { background: #fff; color: var(--c-pink-deep); border: 2px solid var(--c-pink); }
.btn-outline:hover { background: var(--c-pink-light); color: var(--c-pink-deep); }

/* ============ 顶部公告条 ============ */
.topbar { background: var(--grad-pink); color: #fff; font-size: 13px; height: 36px; line-height: 36px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #fff; margin-left: 12px; }
.topbar .heart { display: inline-block; animation: beat 1.2s ease-in-out infinite; }

@keyframes beat { 0%,100% { transform: scale(1); } 25% { transform: scale(1.15); } 50% { transform: scale(1); } 75% { transform: scale(1.15); } }

/* ============ 头部 ============ */
.header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 16px rgba(255, 107, 157, 0.08); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 700; color: var(--c-pink-deep); }
.logo .logo-ico { font-size: 28px; animation: beat 1.5s ease-in-out infinite; }
.logo img { height: 44px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a { display: block; padding: 0 16px; height: 72px; line-height: 72px; font-size: 15px; color: var(--c-text); font-weight: 500; position: relative; }
.nav > li > a:hover, .nav > li.active > a { color: var(--c-pink-deep); }
.nav > li > a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 18px; height: 2px; background: var(--grad-pink); transform: scaleX(0); transition: transform .25s; border-radius: 1px; }
.nav > li:hover > a::after, .nav > li.active > a::after { transform: scaleX(1); }
.nav .sub { position: absolute; top: 72px; left: 0; min-width: 160px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; z-index: 100; padding: 6px 0; }
.nav > li:hover .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .sub li a { display: block; padding: 10px 16px; font-size: 14px; color: var(--c-text); }
.nav .sub li a:hover { background: var(--c-pink-light); color: var(--c-pink-deep); }

.header-right { display: flex; align-items: center; gap: 12px; }
.search-box { position: relative; }
.search-box input { width: 180px; height: 36px; padding: 0 36px 0 14px; border-radius: 18px; background: var(--c-pink-light); font-size: 13px; color: var(--c-text); }
.search-box input::placeholder { color: var(--c-text-3); }
.search-box button { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-pink); color: #fff; cursor: pointer; font-size: 13px; }
.btn-publish { padding: 8px 18px; font-size: 13px; }

.menu-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; width: 36px; height: 36px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--c-pink-deep); margin: 3px 0; transition: .3s; border-radius: 2px; }

/* ============ 首页 Hero 区 ============ */
.hero { position: relative; height: 560px; overflow: hidden; background: var(--grad-hero); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero .hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 20px; }
.hero h1 { font-size: 56px; font-weight: 700; text-shadow: 0 2px 16px rgba(0,0,0,.2); margin-bottom: 18px; letter-spacing: 2px; }
.hero .typewriter { font-size: 22px; min-height: 36px; margin-bottom: 30px; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero .typewriter .cursor { display: inline-block; width: 2px; height: 22px; background: #fff; margin-left: 4px; animation: blink 1s steps(2) infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0; } }
.hero .hero-btns { display: flex; gap: 16px; }
.hero .hero-btns .btn { padding: 12px 32px; font-size: 15px; }
.hero .hero-btns .btn-pink { background: #fff; color: var(--c-pink-deep); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.hero .hero-btns .btn-pink:hover { background: var(--c-pink-light); }
.hero .hero-btns .btn-outline { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; backdrop-filter: blur(4px); }
.hero .hero-btns .btn-outline:hover { background: rgba(255,255,255,.3); }
.hero .scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3; color: #fff; font-size: 12px; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ============ 通用区块 ============ */
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 30px; color: var(--c-text); font-weight: 700; position: relative; display: inline-block; padding: 0 30px; }
.section-title h2::before, .section-title h2::after { content: "♥"; position: absolute; top: 50%; transform: translateY(-50%); color: var(--c-pink); font-size: 20px; animation: beat 1.5s ease-in-out infinite; }
.section-title h2::before { left: 0; }
.section-title h2::after { right: 0; }
.section-title p { color: var(--c-text-3); font-size: 14px; margin-top: 10px; }

/* ============ 表白墙瀑布流 ============ */
.wall { column-count: 4; column-gap: 20px; }
.wall-item { break-inside: avoid; margin-bottom: 20px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all .3s; position: relative; }
.wall-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.wall-item .pic { position: relative; overflow: hidden; }
.wall-item .pic img { width: 100%; transition: transform .5s; }
.wall-item:hover .pic img { transform: scale(1.06); }
.wall-item .pic .to { position: absolute; top: 10px; left: 10px; background: rgba(255, 61, 127, 0.85); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; backdrop-filter: blur(4px); }
.wall-item .body { padding: 16px; }
.wall-item .body h3 { font-size: 16px; margin-bottom: 8px; color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wall-item .body h3 a { color: inherit; }
.wall-item .body .excerpt { font-size: 13px; color: var(--c-text-2); line-height: 1.7; max-height: 75px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.wall-item .meta { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-top: 1px dashed var(--c-border); font-size: 12px; color: var(--c-text-3); }
.wall-item .meta .from { display: flex; align-items: center; gap: 6px; }
.wall-item .meta .avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--grad-pink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.wall-item .meta .like { display: flex; align-items: center; gap: 4px; cursor: pointer; user-select: none; transition: all .2s; }
.wall-item .meta .like:hover, .wall-item .meta .like.liked { color: var(--c-pink-deep); }
.wall-item .meta .like.liked .heart { animation: beat 0.6s ease; }

/* ============ 标签云 ============ */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-cloud a { padding: 6px 16px; background: #fff; border: 1px solid var(--c-border); border-radius: 20px; font-size: 13px; color: var(--c-text-2); transition: all .2s; }
.tag-cloud a:hover, .tag-cloud a.hot { background: var(--grad-pink); color: #fff; border-color: transparent; transform: translateY(-2px); }

/* ============ 面包屑 ============ */
.crumb { background: #fff; padding: 14px 0; font-size: 13px; color: var(--c-text-3); border-bottom: 1px solid var(--c-border); }
.crumb a { color: var(--c-text-2); }
.crumb a:hover { color: var(--c-pink-deep); }
.crumb .sep { margin: 0 8px; color: var(--c-text-3); }

/* ============ 列表页 ============ */
.list-page { padding: 30px 0 60px; }
.list-page .layout { display: grid; grid-template-columns: 1fr 300px; gap: 25px; }
.list-page .main .filter-bar { background: #fff; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.list-page .main .filter-bar .label { font-weight: 700; margin-right: 10px; color: var(--c-text); }
.list-page .main .filter-bar a { padding: 4px 14px; border-radius: 16px; font-size: 13px; color: var(--c-text-2); }
.list-page .main .filter-bar a.active, .list-page .main .filter-bar a:hover { background: var(--grad-pink); color: #fff; }

.list-page .sidebar .widget { background: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.list-page .sidebar .widget h3 { font-size: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--c-pink-light); color: var(--c-pink-deep); }
.list-page .sidebar .widget ul li { padding: 8px 0; border-bottom: 1px dashed var(--c-border); font-size: 13px; }
.list-page .sidebar .widget ul li:last-child { border-bottom: none; }
.list-page .sidebar .widget ul li a { color: var(--c-text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-page .sidebar .widget ul li a:hover { color: var(--c-pink-deep); }

/* 分页 */
.pagination { text-align: center; margin-top: 30px; }
.pagination a, .pagination span { display: inline-block; min-width: 38px; height: 38px; line-height: 38px; padding: 0 12px; margin: 0 3px; border-radius: 19px; background: #fff; color: var(--c-text-2); font-size: 13px; box-shadow: var(--shadow); transition: all .2s; }
.pagination a:hover, .pagination span.active { background: var(--grad-pink); color: #fff; }
.pagination span.ext { background: transparent; box-shadow: none; }

/* ============ 详情页 ============ */
.detail { padding: 30px 0 60px; }
.detail .layout { display: grid; grid-template-columns: 1fr 300px; gap: 25px; }
.detail-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.detail-head { text-align: center; padding-bottom: 20px; border-bottom: 2px dashed var(--c-border); margin-bottom: 25px; }
.detail-head h1 { font-size: 26px; margin-bottom: 12px; color: var(--c-text); }
.detail-head .to-badge { display: inline-block; background: var(--grad-pink); color: #fff; padding: 6px 18px; border-radius: 20px; font-size: 13px; margin-bottom: 10px; }
.detail-head .meta { font-size: 13px; color: var(--c-text-3); }
.detail-head .meta span { margin: 0 10px; }
.detail-body { font-size: 15px; line-height: 2; color: var(--c-text); }
.detail-body p { margin-bottom: 18px; }
.detail-body img { max-width: 100%; margin: 20px auto; border-radius: var(--radius-sm); }
.detail-body blockquote { background: var(--c-pink-light); border-left: 4px solid var(--c-pink); padding: 14px 18px; margin: 20px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--c-text-2); font-style: italic; }

/* 点赞栏 */
.like-bar { text-align: center; padding: 25px 0; margin: 25px 0; border-top: 2px dashed var(--c-border); border-bottom: 2px dashed var(--c-border); }
.like-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 36px; border-radius: 30px; background: #fff; border: 2px solid var(--c-pink); color: var(--c-pink-deep); font-size: 15px; cursor: pointer; transition: all .25s; }
.like-btn:hover, .like-btn.liked { background: var(--grad-pink); color: #fff; transform: scale(1.05); }
.like-btn .heart { font-size: 18px; }
.like-btn.liked .heart { animation: beat 0.6s ease; }

/* 上下篇 */
.prev-next { display: flex; justify-content: space-between; gap: 15px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--c-border); }
.prev-next .pn-item { flex: 1; padding: 12px 16px; background: var(--c-pink-light); border-radius: var(--radius-sm); font-size: 13px; }
.prev-next .pn-item .label { color: var(--c-text-3); font-size: 12px; }
.prev-next .pn-item a { color: var(--c-text); display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 评论 */
.comments { margin-top: 30px; }
.comments h3 { font-size: 18px; color: var(--c-pink-deep); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--c-pink-light); }
.comment-list .comment { padding: 16px 0; border-bottom: 1px dashed var(--c-border); }
.comment-list .comment .c-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-list .comment .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad-pink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.comment-list .comment .name { font-weight: 700; color: var(--c-text); font-size: 14px; }
.comment-list .comment .date { color: var(--c-text-3); font-size: 12px; margin-left: auto; }
.comment-list .comment .c-body { padding-left: 46px; color: var(--c-text-2); font-size: 14px; }

.comment-form { background: var(--c-cream); padding: 20px; border-radius: var(--radius); margin-top: 20px; }
.comment-form .form-row { margin-bottom: 12px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); font-size: 14px; background: #fff; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--c-pink); }
.comment-form textarea { min-height: 100px; resize: vertical; }

/* ============ 发布表白页 ============ */
.publish-page { padding: 40px 0 60px; }
.publish-card { max-width: 720px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.publish-card h1 { text-align: center; font-size: 26px; color: var(--c-pink-deep); margin-bottom: 8px; }
.publish-card .sub { text-align: center; color: var(--c-text-3); font-size: 13px; margin-bottom: 28px; }
.publish-card .form-row { margin-bottom: 18px; }
.publish-card label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--c-text); font-size: 14px; }
.publish-card label .req { color: var(--c-pink-deep); }
.publish-card input, .publish-card textarea, .publish-card select { width: 100%; padding: 12px 16px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); font-size: 14px; background: var(--c-cream); transition: all .2s; }
.publish-card input:focus, .publish-card textarea:focus, .publish-card select:focus { border-color: var(--c-pink); background: #fff; box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1); }
.publish-card textarea { min-height: 160px; resize: vertical; }
.publish-card .upload-area { border: 2px dashed var(--c-pink); border-radius: var(--radius-sm); padding: 30px; text-align: center; color: var(--c-text-3); cursor: pointer; transition: all .2s; background: var(--c-pink-light); }
.publish-card .upload-area:hover { background: var(--c-pink-light); opacity: 0.85; }
.publish-card .upload-area .ico { font-size: 32px; margin-bottom: 8px; }
.publish-card .submit-row { text-align: center; margin-top: 24px; }
.publish-card .submit-row .btn { padding: 12px 40px; font-size: 15px; }

/* ============ 单页 ============ */
.page-single { padding: 30px 0 60px; }
.page-card { max-width: 900px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.page-card h1 { font-size: 26px; text-align: center; color: var(--c-pink-deep); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px dashed var(--c-border); }
.page-card .body { font-size: 15px; line-height: 2; }
.page-card .body p { margin-bottom: 16px; }
.page-card .body img { max-width: 100%; margin: 16px auto; border-radius: var(--radius-sm); }

/* ============ 404 ============ */
.not-found { padding: 80px 0; text-align: center; }
.not-found .big { font-size: 120px; font-weight: 700; background: var(--grad-pink); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.not-found h2 { font-size: 24px; margin: 16px 0 10px; color: var(--c-text); }
.not-found p { color: var(--c-text-3); margin-bottom: 24px; }

/* ============ 底部 ============ */
.footer { background: linear-gradient(135deg, #4a2c3a 0%, #6b3d52 100%); color: #f3d6e1; padding: 50px 0 0; margin-top: 40px; }
.footer .foot-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 214, 227, 0.15); }
.footer .foot-col h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer .foot-col li { margin-bottom: 8px; }
.footer .foot-col a { color: #f3d6e1; font-size: 13px; }
.footer .foot-col a:hover { color: var(--c-pink); }
.footer .foot-contact .tel { font-size: 22px; color: var(--c-pink); font-weight: 700; margin: 8px 0; }
.footer .foot-contact p { font-size: 13px; }
.footer .links { padding: 14px 0; border-bottom: 1px solid rgba(255, 214, 227, 0.15); font-size: 12px; }
.footer .links a { color: #f3d6e1; margin: 0 8px; }
.footer .foot-bottom { text-align: center; padding: 20px 0; font-size: 12px; color: #b89aab; }
.footer .foot-bottom a { color: #b89aab; }
.footer .foot-bottom .sep { margin: 0 8px; }

/* 返回顶部 */
.back-top { position: fixed; right: 20px; bottom: 30px; width: 48px; height: 48px; border-radius: 50%; background: var(--grad-pink); color: #fff; display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 99; font-size: 20px; box-shadow: 0 4px 16px rgba(255, 61, 127, 0.4); }
.back-top.show { display: flex; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .wall { column-count: 3; }
    .list-page .layout, .detail .layout { grid-template-columns: 1fr; }
    .list-page .sidebar, .detail .sidebar { order: 2; }
}

@media (max-width: 768px) {
    .topbar .topbar-r { display: none; }
    .header .container { height: 60px; }
    .logo { font-size: 20px; }
    .nav { position: fixed; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column; height: auto; max-height: 0; overflow: hidden; transition: max-height .3s; box-shadow: 0 4px 14px rgba(255, 107, 157, 0.15); z-index: 998; gap: 0; }
    .nav.open { max-height: 600px; }
    .nav > li { width: 100%; }
    .nav > li > a { height: 48px; line-height: 48px; border-bottom: 1px solid var(--c-border); padding: 0 20px; }
    .nav > li > a::after { display: none; }
    .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 6px 20px; }
    .menu-toggle { display: flex; }
    .search-box { display: none; }
    .header-right .btn-publish { display: none; }

    .hero { height: 440px; }
    .hero h1 { font-size: 30px; letter-spacing: 1px; }
    .hero .typewriter { font-size: 16px; }

    .section-title h2 { font-size: 22px; }
    .section { padding: 40px 0; }
    .wall { column-count: 1; }

    .detail-card, .publish-card, .page-card { padding: 20px; }
    .detail-head h1 { font-size: 20px; }
    .prev-next { flex-direction: column; }

    .footer .foot-top { grid-template-columns: 1fr 1fr; gap: 20px; }
}
