/* ============================================
   发现美好 - PC官网样式
   主色调: #FF8800 (与App一致)  辅助: #FF2442
   品牌渐变: linear-gradient(135deg, #FF8800, #FF2442)
   设计风格: 简约、清新、现代
   ============================================ */

/* ====== 基础重置 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF8800;
    --primary-light: #ffa940;
    --primary-dark: #e67300;
    --accent: #FF2442;
    --brand-grad: linear-gradient(135deg, #FF8800, #FF2442);
    --primary-bg: #fff5e6;
    --text-main: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border: #eeeeee;
    --bg-gray: #f7f7f7;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --header-h: 64px;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-main);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease;
}

input, textarea {
    font-family: inherit;
    outline: none;
    border: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ====== 顶部导航 ====== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.logo-img {
    height: 34px;
    width: auto;
    display: block;
}

.logo-icon {
    font-size: 26px;
}

.logo-icon.big {
    font-size: 48px;
}

.nav-menu {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 15px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.nav-link:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary);
    color: #fff;
    font-weight: 500;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    width: 240px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
}

.search-icon:hover {
    color: var(--primary);
}

.search-box input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 36px;
    border-radius: 20px;
    background: var(--bg-gray);
    font-size: 14px;
    transition: all 0.2s;
}

.search-box input:focus {
    background: #fff;
    box-shadow: 0 0 0 2px var(--primary-bg);
}

.btn-download {
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-bg);
    cursor: pointer;
}

.user-name {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
}

.btn-login {
    padding: 7px 20px;
    border-radius: 20px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 14px;
    background: #fff;
}

.btn-login:hover {
    background: var(--primary);
    color: #fff;
}

/* ====== 主内容区 ====== */
.main {
    margin-top: var(--header-h);
    min-height: calc(100vh - var(--header-h));
}

/* ====== Hero ====== */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px 80px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 36, 66, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 36, 66, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-primary-lg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 28px;
    background: var(--brand-grad);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(255, 136, 0, 0.3);
}

.btn-primary-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 136, 0, 0.4);
}

.btn-ghost-lg {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 28px;
    border: 2px solid var(--border);
    color: var(--text-main);
    font-size: 16px;
    font-weight: 500;
}

.btn-ghost-lg:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
}

.stat-item span {
    font-size: 13px;
    color: var(--text-light);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ====== Hero视觉区 ====== */
.hero-visual {
    flex: 1;
    position: relative;
    height: 520px;
    z-index: 1;
}

.phone-mockup {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 520px;
    border-radius: 40px;
    background: #1a1a1a;
    padding: 12px;
    box-shadow: var(--shadow-lg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: var(--bg-gray);
    position: relative;
}

.phone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-feed-overlay {
    position: absolute;
    bottom: 20px;
    left: 16px;
    right: 16px;
}

.phone-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.phone-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.phone-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4px 2px;
    font-size: 12px;
    color: var(--text-secondary);
}

.phone-card-info .like {
    color: var(--primary);
}

.floating-card {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: float 3s ease-in-out infinite;
}

.floating-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.floating-card span {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.card-1 {
    top: 40px;
    left: -20px;
    animation-delay: 0s;
}

.card-2 {
    top: 160px;
    right: -30px;
    animation-delay: 0.8s;
}

.card-3 {
    bottom: 60px;
    left: 0;
    animation-delay: 1.6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ====== 通用Section Header ====== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
}

/* ====== 特色功能 ====== */
.features {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ====== 内容展示瀑布流 ====== */
.showcase {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.showcase-waterfall {
    columns: 4;
    column-gap: 16px;
}

.showcase-more {
    text-align: center;
    margin-top: 40px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 36px;
    border-radius: 24px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ====== 瀑布流卡片 (通用) ====== */
.feed-card {
    break-inside: avoid;
    margin-bottom: 16px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.feed-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feed-card-img {
    width: 100%;
    display: block;
    border-radius: var(--radius) var(--radius) 0 0;
}

.feed-card-body {
    padding: 12px 14px;
}

.feed-card-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-card-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.feed-card-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.feed-card-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-card-name {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-card-likes {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
    flex-shrink: 0;
}

.feed-card-likes .heart {
    color: var(--primary);
}

/* ====== 下载区 ====== */
.download-section {
    background: var(--brand-grad);
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '🌸';
    position: absolute;
    font-size: 200px;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.download-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.download-content > p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

.download-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qr-placeholder {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.qr-placeholder svg {
    width: 100%;
    height: 100%;
    color: var(--text-main);
}

.qr-box span {
    color: #fff;
    font-size: 14px;
}

.download-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    color: #fff;
    text-align: left;
    backdrop-filter: blur(10px);
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.store-btn svg {
    flex-shrink: 0;
}

.store-btn small {
    display: block;
    font-size: 11px;
    opacity: 0.8;
}

.store-btn strong {
    font-size: 16px;
}

/* ====== 页脚 ====== */
.footer {
    background: #1a1a2e;
    padding: 60px 24px 30px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-copyrightno {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    padding-top: 24px;
}

/* ====== 发现页 ====== */
.discover-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 24px 60px;
}

.category-bar {
    position: sticky;
    top: var(--header-h);
    background: #fff;
    padding: 16px 0;
    margin-bottom: 20px;
    z-index: 50;
}

.category-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.category-list::-webkit-scrollbar {
    height: 0;
}

.category-item {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 15px;
    color: var(--text-secondary);
    background: var(--bg-gray);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.category-item:hover {
    color: var(--primary);
}

.category-item.active {
    background: var(--primary);
    color: #fff;
    font-weight: 500;
}

.waterfall {
    columns: 5;
    column-gap: 14px;
}

.load-more {
    text-align: center;
    padding: 40px 0;
}

.btn-load-more {
    padding: 12px 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-secondary);
    font-size: 15px;
}

.btn-load-more:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ====== 发布页 ====== */
.publish-page {
    min-height: calc(100vh - var(--header-h));
    background: var(--bg-gray);
    padding: 40px 24px;
}

.publish-container {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.publish-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
}

.publish-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* 类型切换栏（与 App 一致） */
.pub-type-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.pub-type-item {
    padding: 8px 24px;
    font-size: 15px;
    color: var(--text-secondary);
    background: var(--bg-gray);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.pub-type-item.active {
    color: var(--primary);
    background: var(--primary-bg);
    font-weight: 600;
}

/* 分割线 */
.pub-divider {
    height: 1px;
    background: var(--border);
    margin: 18px 0;
}

/* 图片九宫格 */
.pub-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pub-img-grid {
    display: contents;
}

.pub-img-box {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-gray);
}

.pub-img-box img,
.pub-img-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-video-thumb {
    background: #000;
}

.pub-play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    line-height: 36px;
    text-align: center;
    pointer-events: none;
}

.pub-vtag {
    position: absolute;
    bottom: 6px; left: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
}

.pub-del {
    position: absolute;
    top: -6px; right: -6px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
}

.pub-del:hover {
    background: rgba(0, 0, 0, 0.8);
}

.pub-add-img {
    width: 110px;
    height: 110px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.pub-add-img:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pub-plus {
    font-size: 32px;
    line-height: 1;
}

.pub-tip {
    font-size: 12px;
    margin-top: 6px;
}

/* 视频选择区 */
.pub-video-section {
    margin-bottom: 8px;
}

.pub-video-preview {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    margin-bottom: 12px;
}

.pub-video-preview video {
    width: 100%;
    display: block;
    max-height: 420px;
}

.pub-add-video {
    width: 100%;
    height: 220px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.pub-add-video:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pub-add-video .pub-plus {
    font-size: 30px;
}

/* 视频封面 */
.pub-cover-section {
    margin-bottom: 8px;
}

.pub-cover-label {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.pub-cover-preview {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}

.pub-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-add-cover {
    width: 100%;
    height: 150px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.pub-add-cover:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* 话题标签块 */
.pub-tags-block {
    margin-bottom: 8px;
}

.pub-tags-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}

.pub-tag-label {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
}

.pub-tag-hint {
    font-size: 12px;
    color: var(--text-light);
}

.pub-tag-cat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.pub-tag-cat {
    padding: 6px 18px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-gray);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.pub-tag-cat.active {
    color: var(--primary);
    background: var(--primary-bg);
    font-weight: 600;
}

.pub-tag-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pub-tag-option {
    padding: 6px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.pub-tag-option.active {
    color: var(--accent);
    background: #fff0f2;
    border-color: var(--accent);
    font-weight: 500;
}

.pub-selected-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sel-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
}

.sel-text {
    margin-right: 6px;
}

.sel-del {
    font-size: 14px;
    line-height: 1;
}

.form-group {
    margin-bottom: 8px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    resize: vertical;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.publish-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.btn-draft {
    padding: 12px 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-secondary);
    font-size: 15px;
}

.btn-draft:hover {
    border-color: var(--text-secondary);
}

.btn-publish {
    padding: 12px 48px;
    border-radius: 24px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.btn-publish:hover {
    background: var(--primary-dark);
}

/* ====== 个人中心页 ====== */
.profile-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 24px 60px;
}

/* 顶部渐变色块 - 头像和资料在内部 */
.profile-banner {
    border-radius: var(--radius-lg);
    background: var(--brand-grad);
    position: relative;
    overflow: hidden;
    padding: 32px 40px;
}

.profile-banner::before {
    content: '🌸';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 180px;
    opacity: 0.12;
    line-height: 1;
}

/* 资料行：在色块内部 */
.profile-info {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.9);
    object-fit: cover;
    background: var(--bg-gray);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.profile-meta {
    flex: 1;
    min-width: 0;
    color: #fff;
}

.profile-nick {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.profile-xhsid {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.profile-bio {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.profile-stats {
    display: flex;
    gap: 36px;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.profile-stat strong {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.profile-stat span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-edit-profile {
    padding: 8px 22px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit-profile:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.btn-publish-profile {
    padding: 8px 22px;
    border-radius: 20px;
    border: none;
    color: var(--primary);
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-publish-profile:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-logout-profile {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(255, 77, 79, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout-profile:hover {
    background: #ff4d4f;
    border-color: #ff4d4f;
}

.profile-tabs {
    display: flex;
    gap: 32px;
    padding: 24px 40px 20px;
    border-bottom: 1px solid var(--border);
    margin: 24px 0;
}

.profile-tab {
    font-size: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    padding-bottom: 8px;
    position: relative;
}

.profile-tab.active {
    color: var(--text-main);
    font-weight: 600;
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.profile-waterfall {
    columns: 4;
    column-gap: 14px;
}

/* ====== 未登录提示 ====== */
.not-logged-in {
    text-align: center;
    padding: 80px 24px;
}

.not-logged-in .emoji {
    font-size: 64px;
    margin-bottom: 20px;
}

.not-logged-in h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.not-logged-in p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ====== 登录弹窗 ====== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-modal {
    width: 820px;
    max-width: 95vw;
    height: 520px;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.auth-left {
    width: 340px;
    background: var(--brand-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '🌸';
    position: absolute;
    font-size: 280px;
    opacity: 0.08;
    bottom: -60px;
    right: -40px;
}

.auth-banner {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
    padding: 40px;
}

.auth-banner h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 16px 0 8px;
}

.auth-banner > p {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 32px;
}

.auth-features {
    list-style: none;
    text-align: left;
}

.auth-features li {
    font-size: 14px;
    margin-bottom: 14px;
    opacity: 0.9;
}

.auth-right {
    flex: 1;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    overflow-y: auto;
}

.auth-form {
    width: 100%;
}

.auth-form h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-tip {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 24px;
}

.auth-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.auth-tab {
    padding-bottom: 12px;
    font-size: 15px;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
}

.auth-tab.active {
    color: var(--text-main);
    font-weight: 600;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.input-group {
    margin-bottom: 16px;
}

.input-group input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--primary);
}

.input-with-btn {
    display: flex;
    gap: 12px;
}

.input-with-btn input {
    flex: 1;
}

.btn-sms {
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary);
    color: var(--primary);
    background: #fff;
    font-size: 13px;
    white-space: nowrap;
}

.btn-sms:hover {
    background: var(--primary-bg);
}

.btn-sms:disabled {
    border-color: var(--border);
    color: var(--text-light);
    cursor: not-allowed;
}

.btn-auth {
    width: 100%;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-top: 8px;
}

.btn-auth:hover {
    background: var(--primary-dark);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 500;
}

.auth-third {
    margin-top: 32px;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    background: #fff;
    padding: 0 16px;
    font-size: 13px;
    color: var(--text-light);
    position: relative;
}

.third-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.third-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: #07c160;
    display: flex;
    align-items: center;
    justify-content: center;
}

.third-btn:hover {
    border-color: #07c160;
    background: #f0fff4;
}

.third-btn.password-login {
    color: var(--primary);
}

.third-btn.password-login:hover {
    border-color: var(--primary);
    background: #fff5f0;
}

.third-btn.qr-app {
    color: #5b6bde;
}

.third-btn.qr-app:hover {
    border-color: #5b6bde;
    background: #f0f2ff;
}

/* ====== App 扫码登录 ====== */
.qr-login-box {
    position: relative;
    width: 232px;
    margin: 18px auto 6px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.qr-login-box #qrLoginCanvas svg {
    border-radius: 6px;
}

.qr-login-status {
    margin-top: 10px;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-direction: column;
    font-size: 13px;
    color: #666;
}

.qr-login-status p { margin: 0; }

.qr-login-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #eee;
    border-top-color: var(--primary, #ff4081);
    border-radius: 50%;
    animation: qr-spin 0.9s linear infinite;
    margin: 2px auto;
}

@keyframes qr-spin {
    to { transform: rotate(360deg); }
}

.qr-login-status.qr-scanned { color: #07c160; }
.qr-login-status.qr-ok { color: #07c160; font-weight: 600; }
.qr-login-status.qr-expired { color: #e6a23c; }
.qr-status-icon { font-size: 16px; line-height: 1; }

/* ====== Toast ====== */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 28px;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 14px;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: #07c160;
}

.toast.error {
    background: var(--accent);
}

/* ====== 回到顶部 ====== */
.back-top {
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-md);
    color: var(--text-secondary);
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.back-top.show {
    display: flex;
}

.back-top:hover {
    color: var(--primary);
}

/* ====== 加载动画 ====== */
.loading-dots {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.loading-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin: 0 3px;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ====== App截图上传按钮 ====== */
.phone-upload-btn {
    position: absolute;
    bottom: -52px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--primary-bg);
    white-space: nowrap;
    z-index: 5;
}

.phone-upload-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* ====== 发现页 类型筛选(笔记/视频/动态) ====== */
.type-filter {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.type-item {
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.type-item:hover {
    color: var(--primary);
}

.type-item.active {
    background: var(--primary);
    color: #fff;
}

.category-bar {
    display: flex;
    align-items: center;
    gap: 16px;
}

.category-bar .category-list {
    flex: 1;
}

/* ====== 个人中心 视频卡 / 动态时间轴 / 操作按钮 / FAB ====== */
.profile-waterfall .feed-card-video,
.video-card {
    break-inside: avoid;
    margin-bottom: 14px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.video-thumb {
    position: relative;
    width: 100%;
    background: #000;
}

.video-thumb img {
    width: 100%;
    display: block;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
}

/* 动态时间轴 */
.moment-item {
    break-inside: avoid;
    margin-bottom: 14px;
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
}

.moment-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-break: break-word;
}

.moment-imgs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.moment-imgs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}

.moment-video-box {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #000;
}

.moment-video-box img {
    width: 100%;
    display: block;
}

.moment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}

/* 卡片删除/取消操作按钮 */
.card-action {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 2;
}

.card-action:hover {
    background: var(--accent);
}

.feed-card {
    position: relative;
}

/* ====== 编辑资料弹窗 ====== */
.edit-modal {
    width: 480px;
    max-width: 95vw;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.edit-modal h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.avatar-edit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.avatar-edit-row img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-gray);
    border: 2px solid var(--border);
}

.btn-change-avatar {
    padding: 8px 16px;
    border-radius: 18px;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: #fff;
    font-size: 13px;
}

.btn-change-avatar:hover {
    background: var(--primary);
    color: #fff;
}

.edit-gender {
    display: flex;
    gap: 10px;
}

.edit-gender span {
    padding: 8px 20px;
    border-radius: 18px;
    background: var(--bg-gray);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.edit-gender span.active {
    background: var(--primary);
    color: #fff;
}

/* 个人中心 爱找号 */
.profile-xhsid {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.profile-tab .tab-badge {
    font-size: 12px;
    color: var(--text-light);
    margin-left: 4px;
}

/* ====== 搜索结果提示 ====== */
.search-hint {
    max-width: var(--max-width);
    margin: 0 auto 16px;
    padding: 12px 24px;
    background: #fff8f0;
    border: 1px solid #ffe0c0;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-hint strong {
    color: var(--primary);
}

.search-clear {
    margin-left: auto;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
}

.search-clear:hover {
    color: var(--primary);
}

/* ====== 错误提示弹窗 ====== */
.alert-modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 360px;
    max-width: 90vw;
    padding: 32px 28px 24px;
    text-align: center;
    animation: alertPop 0.25s ease;
}

@keyframes alertPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.alert-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fff0f0;
    color: #ff4d4f;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-message {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 24px;
    word-break: break-word;
}

.btn-alert-ok {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-alert-ok:hover {
    opacity: 0.85;
}

/* ====== 微信扫码登录弹窗 ====== */
.wechat-qr-modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 360px;
    max-width: 90vw;
    overflow: hidden;
    animation: modalIn 0.25s ease;
}
.wechat-qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}
.wechat-qr-close {
    cursor: pointer;
    font-size: 20px;
    color: #999;
    line-height: 1;
}
.wechat-qr-close:hover { color: #333; }
.wechat-qr-body {
    padding: 32px 24px;
    text-align: center;
}
.wechat-qr-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border: 1px solid #eee;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
}
.wechat-qr-tip {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.wechat-qr-mock-hint {
    font-size: 12px;
    color: #bbb;
    margin-bottom: 20px;
}
.btn-wechat-confirm {
    background: #07c160;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 10px 32px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-wechat-confirm:hover { opacity: 0.9; }

/* ====== 关注/粉丝列表弹窗 ====== */
.follow-modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 420px;
    max-width: 90vw;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.follow-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.follow-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.follow-close {
    cursor: pointer;
    color: var(--text-light);
    font-size: 18px;
    transition: color 0.2s;
}

.follow-close:hover {
    color: var(--text-main);
}

.follow-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.follow-user-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    transition: background 0.2s;
}

.follow-user-item:hover {
    background: var(--bg-gray);
}

.follow-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-gray);
}

.follow-user-info {
    flex: 1;
    min-width: 0;
}

.follow-user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.follow-user-bio {
    font-size: 13px;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-follow-sm {
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
}

.btn-follow-sm.following {
    background: var(--bg-gray);
    color: var(--text-secondary);
}

.btn-follow-sm:hover {
    opacity: 0.85;
}

.follow-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-light);
}

.follow-empty .emoji {
    font-size: 40px;
    margin-bottom: 12px;
}

/* 视频占位图 */
.video-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    font-size: 40px;
}

/* ====== 笔记详情页 ====== */
.detail-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.detail-back {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--bg-gray);
    transition: all 0.2s;
}

.detail-back:hover {
    color: var(--primary);
    background: #f0f0f0;
}

/* 媒体区域 */
.detail-gallery {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    background: #f5f5f5;
}

.detail-gallery-track {
    display: flex;
    transition: transform 0.3s ease;
}

.detail-slide {
    min-width: 100%;
}

.detail-slide img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    background: #f5f5f5;
}

.detail-gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.detail-gallery-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.2s;
}

.detail-gallery-dots span.active {
    background: #fff;
}

/* 左右切换箭头：用纯 CSS 边框画，不依赖字体字符（emoji/特殊符号跨机器不可控） */
.detail-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
}

.detail-gallery-nav:hover {
    background: rgba(0, 0, 0, 0.55);
}

.detail-gallery-nav.prev { left: 12px; }
.detail-gallery-nav.next { right: 12px; }

.detail-gallery-nav::before {
    content: '';
    width: 9px;
    height: 9px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.detail-gallery-nav.prev::before {
    transform: rotate(-135deg);
    margin-left: 2px;
}

.detail-gallery-nav.next::before {
    transform: rotate(45deg);
    margin-right: 2px;
}

/* 右下角页码，比一排看不清的白点更直观 */
.detail-gallery-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    z-index: 2;
}

/* ===== 全屏大图查看 ===== */
body.viewer-open {
    overflow: hidden;
}

.detail-viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
}

.detail-viewer-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
    -webkit-user-drag: none;
}

.detail-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.detail-viewer-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.detail-viewer-nav.prev { left: 24px; }
.detail-viewer-nav.next { right: 24px; }

.detail-viewer-nav::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.detail-viewer-nav.prev::before {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.detail-viewer-nav.next::before {
    transform: rotate(45deg);
    margin-right: 3px;
}

/* 关闭按钮：两条对角线拼的 ×，同样不用 ✕ 字符 */
.detail-viewer-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: background 0.2s;
}

.detail-viewer-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.detail-viewer-close::before,
.detail-viewer-close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    background: #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.detail-viewer-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.detail-viewer-count {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 13px;
}

.detail-media.video {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    background: #000;
}

.detail-media video {
    width: 100%;
    max-height: 500px;
    display: block;
}

/* 正文区域 */
.detail-body {
    padding: 0 8px;
}

.detail-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.detail-category {
    padding: 4px 12px;
    background: #fff3e6;
    color: var(--primary);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.detail-stats-inline {
    font-size: 13px;
    color: var(--text-light);
}

.detail-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text-main);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.detail-tag {
    padding: 4px 12px;
    background: var(--bg-gray);
    color: var(--text-secondary);
    border-radius: 12px;
    font-size: 13px;
}

.detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    white-space: pre-wrap;
    margin-bottom: 24px;
}

.detail-content a {
    color: var(--primary);
    text-decoration: underline;
}

.detail-divider {
    height: 1px;
    background: var(--border);
    margin: 28px 0;
}

/* 作者信息 */
.detail-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.detail-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
    background: var(--bg-gray);
}

.detail-author-info {
    flex: 1;
    min-width: 0;
}

.detail-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    margin-bottom: 2px;
}

.detail-author-name:hover {
    color: var(--primary);
}

.detail-author-sub {
    font-size: 13px;
    color: var(--text-light);
}

.btn-follow {
    padding: 8px 22px;
    border-radius: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-follow:hover {
    background: var(--primary-dark);
}

/* 操作按钮 */
.detail-actions {
    display: flex;
    gap: 24px;
    padding: 16px 0;
}

.detail-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.detail-action:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.detail-action.active {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff8f0;
}

.detail-action-icon {
    font-size: 18px;
}

/* 评论区 */
.detail-comments-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
}

.detail-comment-input {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.detail-comment-input input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.detail-comment-input input:focus {
    border-color: var(--primary);
}

.btn-comment-send {
    padding: 10px 24px;
    border-radius: 24px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-comment-send:hover {
    background: var(--primary-dark);
}

.detail-login-hint {
    text-align: center;
    padding: 16px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.detail-login-hint a {
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 12px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-gray);
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.comment-text {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 6px;
    word-break: break-word;
}

.comment-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
}

.comment-like {
    cursor: pointer;
    transition: color 0.2s;
}

.comment-like:hover {
    color: var(--primary);
}

/* 加载/空状态 */
.detail-loading, .detail-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-light);
}

.detail-empty .emoji {
    font-size: 48px;
    margin-bottom: 16px;
}

.detail-empty h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.detail-empty-mini {
    text-align: center;
    padding: 24px;
    color: var(--text-light);
    font-size: 14px;
}

/* ====== 响应式 ====== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-waterfall { columns: 3; }
    .waterfall, .profile-waterfall { columns: 4; }
    .hero { flex-direction: column; text-align: center; }
    .hero-visual { display: none; }
    .hero-actions, .hero-stats { justify-content: center; }
}

@media (max-width: 768px) {
    .header-inner { padding: 0 16px; gap: 12px; }
    .search-box { display: none; }
    .nav-menu { gap: 0; }
    .nav-link { padding: 6px 12px; font-size: 14px; }
    .hero-title { font-size: 36px; }
    .features-grid { grid-template-columns: 1fr; }
    .showcase-waterfall { columns: 2; }
    .waterfall, .profile-waterfall { columns: 2; }
    .auth-modal { flex-direction: column; height: auto; }
    .auth-left { display: none; }
    .auth-right { padding: 32px 24px; }
    .profile-info { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
    .profile-stats { justify-content: center; }
    .profile-actions { justify-content: center; }
    .detail-container { padding: 16px 12px 60px; }
    .detail-title { font-size: 20px; }
    .detail-actions { gap: 12px; flex-wrap: wrap; }
    .detail-action { padding: 6px 12px; font-size: 13px; }
    .detail-slide img { max-height: 320px; }
    .download-actions { flex-direction: column; }
}

/* ==========================================================================
   「好编」入口按钮（右侧操作区，与「下载App」并列）
   用描边样式：与实心的「下载App」形成主次，避免两个橙色实心按钮抢视觉
   ========================================================================== */
.btn-haobian {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6.5px 15px;
    border-radius: 20px;
    border: 1.5px solid var(--primary);
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}

.btn-haobian:hover {
    background: var(--primary-bg);
    transform: translateY(-1px);
}

.btn-haobian .hb-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    display: block;
}

/* 窄屏右侧空间紧张，只留文字（必须放在上面的规则之后才生效） */
@media (max-width: 768px) {
    .btn-haobian .hb-icon { display: none; }
}
