/* ============================================================
   长荡湖网站 - 前端样式系统 v1.0
   定版色板 + 组件样式
   基于《长荡湖门户网站-视觉风格定版.md》
   ============================================================ */

/* ---- 设计 Token ---- */
:root {
    /* 主色板（定版 12 色） */
    --c-primary: #00B4C6;       /* 洮水青 */
    --c-primary-dark: #00707E;
    --c-primary-light: #66D5DD;
    --c-primary-bg: #E8F7F9;

    --c-purple: #6C5CE7;       /* 派对紫 */
    --c-purple-dark: #5040C0;
    --c-purple-light: #A29BFE;
    --c-purple-bg: #F0EDFF;

    --c-blue: #1F6FEB;         /* 湖心蓝 */
    --c-blue-dark: #0F4FB8;
    --c-blue-bg: #E0EDFF;

    --c-green: #2FBF71;        /* 生态绿 */
    --c-green-dark: #1E9955;
    --c-green-bg: #E3F8ED;

    --c-gold: #FF9F1C;         /* 丰收金 */
    --c-gold-dark: #C77A00;
    --c-gold-bg: #FFF4E0;

    --c-navy: #2B4C7E;         /* 黛蓝 */
    --c-navy-dark: #1A3358;

    /* 中性色 */
    --c-dark: #0B1B2B;
    --c-ink: #14212B;
    --c-text: #2D3A45;
    --c-gray: #56697A;
    --c-gray-light: #8899A6;
    --c-border: #E0E8EA;
    --c-bg: #F2F8F9;
    --c-white: #FFFFFF;

    /* 语义色 */
    --c-success: #2FBF71;
    --c-danger: #E74C3C;
    --c-warning: #FF9F1C;
    --c-info: #1F6FEB;

    /* 尺寸 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(9, 40, 54, 0.06);
    --shadow-md: 0 4px 16px rgba(9, 40, 54, 0.08);
    --shadow-lg: 0 10px 30px rgba(9, 40, 54, 0.12);
    --shadow-xl: 0 20px 50px rgba(9, 40, 54, 0.16);

    /* 过渡 */
    --t-fast: 0.15s ease;
    --t-normal: 0.25s ease;
    --t-slow: 0.4s ease;

    /* 布局 */
    --header-h: 64px;
    --max-w: 1200px;
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'HarmonyOS Sans', 'MiSans', 'Segoe UI', sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}
a { color: var(--c-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---- 容器 ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    height: var(--header-h);
    transition: box-shadow var(--t-normal);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
    max-width: var(--max-w); margin: 0 auto;
    padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 100%; gap: 16px;
}
.logo {
    display: flex; align-items: center; gap: 8px;
    color: var(--c-primary-dark);
    text-decoration: none;
    flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-icon { width: 32px; height: 32px; color: var(--c-primary); }
.logo-text { font-size: 20px; font-weight: 800; color: var(--c-dark); }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-link {
    color: var(--c-text);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--t-fast);
    text-decoration: none;
}
.nav-link:hover { background: var(--c-primary-bg); color: var(--c-primary-dark); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ---- 用户菜单 ---- */
.user-menu { position: relative; }
.user-avatar-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: var(--radius-full);
    background: var(--c-bg);
    transition: background var(--t-fast);
}
.user-avatar-btn:hover { background: var(--c-primary-bg); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-name { font-size: 14px; font-weight: 500; color: var(--c-text); }
.chevron { color: var(--c-gray); transition: transform var(--t-fast); }
.user-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 180px;
    background: var(--c-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all var(--t-normal);
}
.user-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 18px;
    color: var(--c-text);
    font-size: 14px;
    text-decoration: none;
    transition: background var(--t-fast);
}
.dropdown-item:hover { background: var(--c-bg); text-decoration: none; }
.dropdown-icon { font-size: 16px; }
.dropdown-danger { color: var(--c-danger); }
.dropdown-danger:hover { background: #FDECEA; }
.dropdown-divider { height: 1px; background: var(--c-border); margin: 4px 0; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--t-fast);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    line-height: 1.4;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
    background: var(--c-primary);
    color: var(--c-white);
}
.btn-primary:hover { background: var(--c-primary-dark); color: var(--c-white); }
.btn-outline {
    background: transparent;
    color: var(--c-primary);
    border-color: var(--c-primary);
}
.btn-outline:hover { background: var(--c-primary-bg); color: var(--c-primary-dark); }
.btn-ghost {
    background: transparent;
    color: var(--c-gray);
}
.btn-ghost:hover { background: var(--c-bg); color: var(--c-text); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
}
.form-optional { color: var(--c-gray-light); font-weight: 400; font-size: 13px; }
.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--c-text);
    background: var(--c-white);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    outline: none;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 198, 0.12);
}
.form-input-disabled { background: var(--c-bg); color: var(--c-gray); cursor: not-allowed; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--c-gray-light); margin-top: 6px; }
.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.form-link { color: var(--c-primary); font-size: 14px; }
.form-actions { display: flex; gap: 12px; margin-top: 28px; }

.input-wrap { position: relative; }
.input-suffix {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    color: var(--c-gray); padding: 4px;
    background: none; border: none; cursor: pointer;
    transition: color var(--t-fast);
}
.input-suffix:hover { color: var(--c-primary); }

/* ---- Checkbox ---- */
.checkbox-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--c-text); cursor: pointer;
    user-select: none;
}
.checkbox-input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-custom {
    width: 20px; height: 20px;
    border: 2px solid var(--c-border);
    border-radius: 4px;
    background: var(--c-white);
    position: relative;
    transition: all var(--t-fast);
    flex-shrink: 0;
}
.checkbox-input:checked + .checkbox-custom {
    background: var(--c-primary);
    border-color: var(--c-primary);
}
.checkbox-input:checked + .checkbox-custom::after {
    content: '';
    position: absolute; left: 6px; top: 2px;
    width: 5px; height: 10px;
    border: solid var(--c-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.form-agree { margin-bottom: 24px; }

/* ---- Alert ---- */
.alert {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-icon { font-size: 18px; flex-shrink: 0; }
.alert-success { background: var(--c-green-bg); color: var(--c-green-dark); border: 1px solid #B7E8CC; }
.alert-error { background: #FDECEA; color: var(--c-danger); border: 1px solid #F5C6CB; }
.alert p { margin: 0; }

/* ---- Auth Pages ---- */
.auth-wrapper {
    min-height: calc(100vh - var(--header-h) - 200px);
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
}
.auth-card {
    width: 100%; max-width: 440px;
    background: var(--c-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 40px;
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-back { display: inline-block; font-size: 13px; color: var(--c-gray); margin-bottom: 16px; }
.auth-title { font-size: 24px; font-weight: 800; color: var(--c-dark); margin-bottom: 8px; }
.auth-subtitle { font-size: 14px; color: var(--c-gray); }
.auth-form { margin-bottom: 24px; }
.auth-footer { text-align: center; font-size: 14px; color: var(--c-gray); }
.auth-footer p { margin: 0; }

/* ---- Dashboard ---- */
.dashboard-container { padding: 32px 24px; max-width: 900px; margin: 0 auto; }
.dashboard-hero {
    display: flex; align-items: center; gap: 24px;
    background: var(--c-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}
.avatar-lg { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--c-primary-bg); }
.avatar-xl { width: 100px; height: 100px; border-radius: 50%; border: 4px solid var(--c-primary-bg); }
.dashboard-info { flex: 1; }
.dashboard-name { font-size: 22px; font-weight: 800; color: var(--c-dark); margin-bottom: 6px; }
.dashboard-role { margin-bottom: 6px; }
.dashboard-bio { font-size: 14px; color: var(--c-gray); }
.badge {
    display: inline-block; padding: 2px 12px;
    border-radius: var(--radius-full);
    font-size: 12px; font-weight: 600;
}
.badge-admin { background: var(--c-purple); color: var(--c-white); }
.badge-user { background: var(--c-green); color: var(--c-white); }
.dashboard-stats { display: flex; gap: 24px; }
.stat-item { text-align: center; }
.stat-value { font-size: 20px; font-weight: 800; color: var(--c-primary-dark); }
.stat-label { font-size: 12px; color: var(--c-gray); }
.dashboard-actions { display: flex; gap: 12px; margin-bottom: 32px; }

/* ---- Card Section ---- */
.card-section {
    background: var(--c-white);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}
.section-title {
    font-size: 18px; font-weight: 700; color: var(--c-dark);
    border-bottom: 2px solid var(--c-border);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

/* ---- Table ---- */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
    text-align: left; padding: 10px 14px;
    background: var(--c-bg);
    color: var(--c-gray);
    font-weight: 600; font-size: 13px;
    border-bottom: 1px solid var(--c-border);
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--c-border); }
.data-table tr:last-child td { border-bottom: none; }
.text-success { color: var(--c-success); font-weight: 600; }
.text-danger { color: var(--c-danger); font-weight: 600; }

/* ---- Empty State ---- */
.empty-state { text-align: center; padding: 40px; color: var(--c-gray); }

/* ---- Profile ---- */
.profile-container { padding: 32px 24px; max-width: 700px; margin: 0 auto; }
.profile-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-title { font-size: 24px; font-weight: 800; color: var(--c-dark); }
.profile-card {
    background: var(--c-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}
.profile-avatar-section { text-align: center; margin-bottom: 28px; }
.profile-avatar-note { font-size: 12px; color: var(--c-gray-light); margin-top: 8px; }
.security-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--c-border);
}
.security-item:last-child { border-bottom: none; }
.security-item h3 { font-size: 15px; font-weight: 600; color: var(--c-text); }
.security-item p { font-size: 13px; color: var(--c-gray); }

/* ---- Home Placeholder ---- */
.home-placeholder { text-align: center; padding: 60px 24px; }
.home-hero {
    background: linear-gradient(135deg, var(--c-dark), #0F2A3D);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    color: var(--c-white);
    margin-bottom: 40px;
}
.home-hero h1 { font-size: 36px; font-weight: 900; margin-bottom: 12px; }
.home-hero p { font-size: 18px; color: rgba(255, 255, 255, 0.8); margin-bottom: 28px; }
.home-modules { color: var(--c-gray); font-size: 14px; line-height: 2; }

/* ---- Footer ---- */
.site-footer { background: var(--c-dark); color: rgba(255, 255, 255, 0.7); margin-top: 60px; }
.footer-inner {
    max-width: var(--max-w); margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 32px;
}
.footer-logo { font-size: 24px; font-weight: 800; color: var(--c-white); margin-bottom: 8px; }
.footer-slogan { font-size: 14px; color: var(--c-primary-light); margin-bottom: 8px; }
.footer-desc { font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.footer-links h4 { color: var(--c-white); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer-links a { display: block; color: rgba(255, 255, 255, 0.6); font-size: 13px; margin-bottom: 8px; text-decoration: none; }
.footer-links a:hover { color: var(--c-primary-light); text-decoration: none; }
.footer-contact h4 { color: var(--c-white); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer-contact p { font-size: 13px; color: rgba(255, 255, 255, 0.5); margin-bottom: 4px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--c-primary-light); text-decoration: none; }
.footer-bottom p { margin: 0; }
.footer-bottom a { margin-left: 12px; }

/* ---- Main Content ---- */
.main-content { min-height: calc(100vh - var(--header-h) - 300px); }

/* ---- Mobile Toggle ---- */
.mobile-toggle {
    display: none;
    flex-direction: column; justify-content: space-around;
    width: 28px; height: 28px;
    cursor: pointer;
    background: none; border: none;
}
.mobile-toggle span {
    display: block;
    width: 100%; height: 3px;
    background: var(--c-dark);
    border-radius: 2px;
    transition: all var(--t-normal);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        background: var(--c-white);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
        box-shadow: var(--shadow-md);
        transform: translateY(-200%);
        transition: transform var(--t-normal);
        z-index: 999;
    }
    .main-nav.show { transform: translateY(0); }
    .nav-link { width: 100%; padding: 12px 14px; }
    .mobile-toggle { display: flex; z-index: 1001; }
    .header-actions .btn { display: none; }

    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .dashboard-hero { flex-direction: column; text-align: center; }
    .dashboard-stats { justify-content: center; }
    .auth-card { padding: 28px; }
    .form-actions { flex-direction: column; }
    .form-row { flex-direction: column; gap: 12px; align-items: flex-start; }
    .home-hero { padding: 40px 24px; }
    .home-hero h1 { font-size: 26px; }
}

@media (max-width: 480px) {
    .container, .header-inner { padding: 0 16px; }
    .auth-card { padding: 20px; }
    .auth-title { font-size: 20px; }
    .dashboard-container, .profile-container { padding: 16px; }
    .dashboard-hero, .profile-card { padding: 20px; }
    .dashboard-stats { flex-wrap: wrap; }
    .stat-item { min-width: 80px; }
}

/* ============================================================
   P4 变现模块样式 - 好物/活动/门票/酒店民宿
   ============================================================ */

/* ---- 好物卡片 ---- */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.goods-card {
    background: var(--c-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.goods-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.goods-cover { width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--c-bg); }
.goods-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.goods-card:hover .goods-cover img { transform: scale(1.05); }
.goods-cover-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: var(--c-gray-light); font-size: 48px;
}
.goods-body { padding: 14px 16px; }
.goods-name { font-size: 15px; font-weight: 600; color: var(--c-ink); margin-bottom: 4px; line-height: 1.4; }
.goods-subtitle { font-size: 12px; color: var(--c-gray); line-height: 1.5; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.goods-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.goods-price-original { font-size: 12px; color: var(--c-gray-light); text-decoration: line-through; }
.goods-price-sale { font-size: 18px; font-weight: 700; color: var(--c-danger); }
.goods-meta { font-size: 12px; color: var(--c-gray-light); display: flex; gap: 12px; }

/* ---- 好物详情 ---- */
.goods-detail { max-width: 900px; margin: 0 auto; padding: 20px 0; }
.goods-breadcrumb { font-size: 13px; color: var(--c-gray); margin-bottom: 16px; }
.goods-breadcrumb .sep { margin: 0 6px; }
.goods-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.goods-detail-image { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1; background: var(--c-bg); }
.goods-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.goods-detail-info { display: flex; flex-direction: column; justify-content: center; }
.goods-detail-title { font-size: 24px; font-weight: 700; color: var(--c-ink); margin-bottom: 8px; }
.goods-detail-subtitle { font-size: 14px; color: var(--c-gray); margin-bottom: 16px; }
.goods-detail-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.goods-detail-price .goods-price-sale { font-size: 28px; }
.goods-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.goods-detail-stats { display: flex; gap: 20px; font-size: 13px; color: var(--c-gray); margin-bottom: 24px; }
.goods-detail-stats i { margin-right: 4px; }

/* ---- CPS 按钮 ---- */
.cps-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-cps {
    padding: 12px 28px; font-size: 16px; font-weight: 600;
    background: var(--c-primary); color: var(--c-white);
    border-radius: var(--radius-full); border: none; cursor: pointer;
    transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.btn-cps:hover { background: var(--c-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ---- 活动卡片 ---- */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.event-card {
    background: var(--c-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.event-cover { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--c-bg); }
.event-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.event-card:hover .event-cover img { transform: scale(1.05); }
.event-cover-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: var(--c-gray-light); font-size: 48px;
}
.event-badge {
    position: absolute; top: 10px; right: 10px;
    padding: 4px 10px; border-radius: var(--radius-full);
    font-size: 12px; font-weight: 600; color: var(--c-white);
}
.badge-open { background: var(--c-green); }
.badge-ended { background: var(--c-gray); }
.badge-cancelled { background: var(--c-danger); }
.event-body { padding: 14px 16px; }
.event-name { font-size: 16px; font-weight: 600; color: var(--c-ink); margin-bottom: 4px; }
.event-subtitle { font-size: 13px; color: var(--c-gray); line-height: 1.5; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-meta { font-size: 12px; color: var(--c-gray-light); display: flex; gap: 12px; margin-bottom: 6px; }
.event-meta i { margin-right: 4px; }
.event-reg-count { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--c-text); }
.event-fee { font-weight: 600; color: var(--c-danger); }
.event-free { color: var(--c-green); }

/* ---- 活动详情 ---- */
.event-detail { max-width: 900px; margin: 0 auto; padding: 20px 0; }
.event-detail-title { font-size: 26px; font-weight: 700; color: var(--c-ink); margin-bottom: 8px; }
.event-detail-subtitle { font-size: 15px; color: var(--c-gray); margin-bottom: 20px; }
.event-detail-cover { width: 100%; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 24px; aspect-ratio: 16/9; }
.event-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.event-info-item { display: flex; align-items: flex-start; gap: 8px; }
.event-info-item i { font-size: 20px; color: var(--c-primary); margin-top: 2px; }
.event-info-label { display: block; font-size: 12px; color: var(--c-gray-light); }
.event-info-value { display: block; font-size: 14px; color: var(--c-text); font-weight: 500; }

/* ---- 报名表单 ---- */
.register-form-section {
    margin: 32px 0; padding: 24px;
    background: var(--c-primary-bg); border-radius: var(--radius-md);
}
.register-title { font-size: 18px; font-weight: 600; color: var(--c-ink); margin-bottom: 16px; }
.register-form { max-width: 500px; }
.register-closed {
    margin: 24px 0; padding: 20px; text-align: center;
    background: var(--c-bg); border-radius: var(--radius-md);
    color: var(--c-gray); font-size: 15px;
}
.register-closed i { font-size: 24px; display: block; margin-bottom: 8px; }

/* ---- 筛选标签 ---- */
.filter-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid var(--c-border); }
.filter-tab { padding: 8px 20px; font-size: 14px; color: var(--c-gray); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.filter-tab:hover { color: var(--c-primary); }
.filter-tab.active { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: 600; }

/* ---- 门票卡片 ---- */
.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.ticket-card {
    background: var(--c-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.ticket-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ticket-cover { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; background: var(--c-bg); }
.ticket-cover img { width: 100%; height: 100%; object-fit: cover; }
.ticket-cover-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: var(--c-gray-light); font-size: 48px;
}
.ticket-platform {
    position: absolute; top: 10px; right: 10px;
    padding: 4px 10px; border-radius: var(--radius-full);
    font-size: 12px; font-weight: 600; color: var(--c-white);
    background: var(--c-blue);
}
.ticket-body { padding: 14px 16px; }
.ticket-name { font-size: 16px; font-weight: 600; color: var(--c-ink); margin-bottom: 4px; }
.ticket-subtitle { font-size: 13px; color: var(--c-gray); margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket-price-row { display: flex; align-items: baseline; gap: 8px; }
.ticket-price-original { font-size: 13px; color: var(--c-gray-light); text-decoration: line-through; }
.ticket-price-sale { font-size: 20px; font-weight: 700; color: var(--c-danger); }

/* ---- 门票详情 ---- */
.ticket-detail { max-width: 900px; margin: 0 auto; padding: 20px 0; }
.ticket-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.ticket-detail-image { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/10; background: var(--c-bg); }
.ticket-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.ticket-detail-info { display: flex; flex-direction: column; justify-content: center; }
.ticket-detail-title { font-size: 24px; font-weight: 700; color: var(--c-ink); margin: 8px 0; }
.ticket-detail-subtitle { font-size: 14px; color: var(--c-gray); margin-bottom: 16px; }
.ticket-detail-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.ticket-detail-price .ticket-price-sale { font-size: 28px; }
.ticket-spot-info { font-size: 13px; color: var(--c-gray); margin-bottom: 12px; }
.ticket-spot-info i { margin-right: 4px; }
.ticket-detail-stats { font-size: 13px; color: var(--c-gray); margin-bottom: 24px; }

/* ---- 酒店民宿卡片 ---- */
.lodging-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.lodging-card {
    background: var(--c-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.lodging-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lodging-cover { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; background: var(--c-bg); }
.lodging-cover img { width: 100%; height: 100%; object-fit: cover; }
.lodging-cover-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: var(--c-gray-light); font-size: 48px;
}
.lodging-platform {
    position: absolute; top: 10px; right: 10px;
    padding: 4px 10px; border-radius: var(--radius-full);
    font-size: 12px; font-weight: 600; color: var(--c-white);
    background: var(--c-blue);
}
.lodging-stars {
    position: absolute; bottom: 10px; left: 10px;
    color: var(--c-gold); font-size: 14px; letter-spacing: 2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.lodging-body { padding: 14px 16px; }
.lodging-name { font-size: 16px; font-weight: 600; color: var(--c-ink); margin-bottom: 4px; }
.lodging-subtitle { font-size: 13px; color: var(--c-gray); margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lodging-address { font-size: 12px; color: var(--c-gray-light); margin-bottom: 8px; }
.lodging-address i { margin-right: 4px; }
.lodging-price-row { display: flex; align-items: baseline; gap: 4px; }
.lodging-price-label { font-size: 12px; color: var(--c-gray-light); }
.lodging-price { font-size: 20px; font-weight: 700; color: var(--c-primary); }

/* ---- 酒店民宿详情 ---- */
.lodging-detail { max-width: 900px; margin: 0 auto; padding: 20px 0; }
.lodging-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.lodging-detail-image { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; background: var(--c-bg); }
.lodging-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.lodging-detail-info { display: flex; flex-direction: column; justify-content: center; }
.lodging-detail-title { font-size: 24px; font-weight: 700; color: var(--c-ink); margin: 8px 0; }
.lodging-detail-subtitle { font-size: 14px; color: var(--c-gray); margin-bottom: 16px; }
.lodging-detail-address { font-size: 14px; color: var(--c-gray); margin-bottom: 16px; }
.lodging-detail-address i { margin-right: 4px; }
.lodging-detail-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 16px; }
.lodging-detail-price .lodging-price { font-size: 28px; }
.lodging-price-unit { font-size: 14px; color: var(--c-gray-light); }
.lodging-amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.amenity-tag { font-size: 12px; color: var(--c-green-dark); background: var(--c-green-bg); padding: 4px 10px; border-radius: var(--radius-full); }
.amenity-tag i { margin-right: 2px; }

/* ---- Responsive (P4) ---- */
@media (max-width: 768px) {
    .goods-detail-layout,
    .ticket-detail-layout,
    .lodging-detail-layout { grid-template-columns: 1fr; }
    .event-info-grid { grid-template-columns: 1fr; }
    .goods-grid, .event-grid, .ticket-grid, .lodging-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   P3: SNS 社区模块样式
   ============================================================ */

/* 社区双栏布局 */
.sns-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
}
.sns-main { min-width: 0; }
.sns-sidebar { position: sticky; top: 20px; align-self: start; }

/* 发布动态框 */
.sns-publish-box {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.sns-publish-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.sns-publish-placeholder {
    color: var(--c-gray);
    font-size: 15px;
    flex: 1;
}
.sns-publish-actions { text-align: right; margin-top: 12px; }
.sns-publish-btn {
    background: linear-gradient(120deg, var(--c-primary), var(--c-purple));
    color: var(--c-white);
    border: none;
    border-radius: 999px;
    padding: 8px 24px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 220ms ease-out;
}
.sns-publish-btn:hover { opacity: 0.9; }

/* 登录提示 */
.sns-login-prompt {
    background: var(--c-bg);
    border: 1px dashed var(--c-border);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--c-gray);
}
.sns-login-prompt i { font-size: 32px; color: var(--c-primary); }
.sns-login-prompt p { margin: 8px 0 12px; }

/* 动态卡片 */
.sns-feed { display: flex; flex-direction: column; gap: 16px; }
.sns-post-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    transition: box-shadow 220ms ease-out;
}
.sns-post-card:hover { box-shadow: 0 10px 30px rgba(9,40,54,0.08); }
.sns-post-card.is-pinned { border-color: var(--c-gold); }
.sns-pin-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--c-gold);
    color: var(--c-white);
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 999px;
}

/* 动态头部 */
.sns-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.sns-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.sns-avatar-sm {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.sns-post-user-info { flex: 1; min-width: 0; }
.sns-username {
    font-weight: 600;
    color: var(--c-ink);
    text-decoration: none;
    font-size: 14px;
}
.sns-post-time {
    display: block;
    font-size: 12px;
    color: var(--c-gray);
}

/* 话题标签 */
.sns-topic-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,180,198,0.08);
    color: var(--topic-color, var(--c-primary));
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}
.sns-topic-tag:hover { opacity: 0.8; }

/* 动态内容 */
.sns-post-content {
    color: var(--c-text);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 12px;
    word-break: break-word;
}
.sns-detail-content { font-size: 16px; }

/* 图片网格 */
.sns-image-grid {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
}
.sns-image-grid img {
    width: 100%; height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 220ms ease-out;
}
.sns-image-grid img:hover { transform: scale(1.02); }
.sns-grid-1 { grid-template-columns: 1fr; max-height: 400px; }
.sns-grid-1 .sns-image-item { height: 400px; }
.sns-grid-2, .sns-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sns-grid-2 .sns-image-item, .sns-grid-3 .sns-image-item { height: 200px; }
.sns-grid-4, .sns-grid-5, .sns-grid-6 { grid-template-columns: repeat(3, 1fr); }
.sns-grid-4 .sns-image-item, .sns-grid-5 .sns-image-item, .sns-grid-6 .sns-image-item { height: 160px; }
.sns-grid-7, .sns-grid-8, .sns-grid-9 { grid-template-columns: repeat(3, 1fr); }
.sns-grid-7 .sns-image-item, .sns-grid-8 .sns-image-item, .sns-grid-9 .sns-image-item { height: 130px; }

/* 链接卡片 */
.sns-link-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--c-blue);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 12px;
}
.sns-link-card:hover { background: var(--c-border); }

/* 视频嵌入 */
.sns-video-container { margin-bottom: 12px; }
.sns-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--c-dark);
}
.sns-video-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.sns-video-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--c-primary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    background: var(--c-bg);
    border-radius: 8px;
}
.sns-video-link:hover { background: var(--c-border); }
.sns-video-douyin { color: var(--c-dark); }

/* 动态底部操作栏 */
.sns-post-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--c-border);
}
.sns-detail-footer { gap: 16px; }
.sns-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--c-gray);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    padding: 4px 0;
    transition: color 220ms ease-out;
}
.sns-action-btn:hover { color: var(--c-primary); }
.sns-like-btn.is-liked { color: var(--c-danger); }
.sns-like-btn.is-liked i { color: var(--c-danger); }
.sns-delete-btn:hover { color: var(--c-danger); }
.sns-follow-btn.is-following { color: var(--c-gray); }
.sns-view-count { cursor: default; }

/* 侧栏话题列表 */
.sns-topic-list .sidebar-list a {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sns-topic-count {
    margin-left: auto;
    background: var(--c-bg);
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    color: var(--c-gray);
}
.sns-notification-entry {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--c-text);
    text-decoration: none;
    padding: 8px 0;
}

/* 评论区域 */
.sns-comments-section {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
}
.sns-comments-title {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--c-ink);
}
.sns-comment-form { margin-bottom: 20px; }
.sns-comment-input-wrap {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
}
.sns-comment-input {
    flex: 1;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    resize: vertical;
    min-height: 40px;
    font-family: inherit;
}
.sns-comment-input:focus {
    border-color: var(--c-primary);
    outline: none;
}
.sns-comment-actions { text-align: right; }

/* 评论列表 */
.sns-comment-list { display: flex; flex-direction: column; gap: 16px; }
.sns-comment-item {
    display: flex;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c-border);
}
.sns-comment-item:last-child { border-bottom: none; }
.sns-comment-body { flex: 1; min-width: 0; }
.sns-comment-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 4px;
}
.sns-comment-user { font-weight: 600; color: var(--c-ink); }
.sns-reply-arrow { color: var(--c-gray); }
.sns-comment-reply-to { color: var(--c-gray); }
.sns-comment-time { color: var(--c-gray); margin-left: auto; font-size: 12px; }
.sns-comment-text {
    color: var(--c-text);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 6px;
}
.sns-comment-footer { display: flex; gap: 16px; }
.sns-comment-action {
    background: none;
    border: none;
    color: var(--c-gray);
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sns-comment-action:hover { color: var(--c-primary); }
.sns-empty-comments {
    text-align: center;
    color: var(--c-gray);
    padding: 24px;
}

/* 用户主页 */
.sns-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}
.sns-profile-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--c-primary);
}
.sns-profile-info { flex: 1; }
.sns-profile-name { font-size: 20px; margin-bottom: 4px; }
.sns-profile-bio { color: var(--c-gray); font-size: 14px; margin-bottom: 8px; }
.sns-profile-stats { display: flex; gap: 24px; }
.sns-stat { text-align: center; }
.sns-stat-num { display: block; font-size: 20px; font-weight: 700; color: var(--c-ink); }
.sns-stat-label { font-size: 12px; color: var(--c-gray); }

/* 通知列表 */
.sns-notification-list {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    overflow: hidden;
}
.sns-notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--c-border);
    transition: background 220ms ease-out;
}
.sns-notification-item:last-child { border-bottom: none; }
.sns-notification-item.is-unread { background: rgba(0,180,198,0.04); }
.sns-notification-item:hover { background: var(--c-bg); }
.sns-noti-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-bg);
    color: var(--c-gray);
    flex-shrink: 0;
}
.sns-noti-follow .sns-noti-icon,
.sns-noti-like .sns-noti-icon { color: var(--c-danger); }
.sns-noti-comment .sns-noti-icon,
.sns-noti-reply .sns-noti-icon { color: var(--c-primary); }
.sns-noti-body { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.sns-noti-content { flex: 1; }
.sns-noti-user { font-weight: 600; color: var(--c-ink); }
.sns-noti-text { color: var(--c-text); font-size: 14px; }
.sns-noti-time { display: block; font-size: 12px; color: var(--c-gray); margin-top: 2px; }
.sns-noti-link { color: var(--c-gray); text-decoration: none; }

/* 弹窗 */
.sns-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11,27,43,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sns-modal {
    background: var(--c-white);
    border-radius: 16px;
    width: 90%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
}
.sns-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--c-border);
}
.sns-modal-header h3 { font-size: 18px; }
.sns-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--c-gray);
}
.sns-modal-body { padding: 20px; }
.sns-textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    resize: vertical;
    font-family: inherit;
}
.sns-textarea:focus { border-color: var(--c-primary); outline: none; }
.sns-form-actions { text-align: right; margin-top: 16px; }

/* 相关动态 */
.sns-related-list { list-style: none; padding: 0; }
.sns-related-item {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--c-border);
    text-decoration: none;
    color: var(--c-text);
}
.sns-related-item:last-child { border-bottom: none; }
.sns-related-content {
    font-size: 13px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sns-related-meta { display: flex; gap: 12px; font-size: 12px; color: var(--c-gray); }

/* 图片灯箱 */
.sns-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.sns-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* 后台色点 */
.color-dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    vertical-align: middle;
}

/* 响应式 */
@media (max-width: 768px) {
    .sns-layout { grid-template-columns: 1fr; }
    .sns-sidebar { position: static; order: -1; }
    .sns-profile-header { flex-direction: column; text-align: center; }
    .sns-profile-stats { justify-content: center; }
    .sns-image-grid { grid-template-columns: 1fr 1fr !important; }
    .sns-grid-1 { grid-template-columns: 1fr !important; }
    .sns-post-footer { flex-wrap: wrap; gap: 12px; }
}

/* ============================================================
   SNS 补充：搜索框、图片上传、表情选择器、AI 互动
   ============================================================ */

/* 搜索框 */
.sns-search-box { margin-bottom: 16px; }
.sns-search-form {
    display: flex;
    gap: 8px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 4px;
}
.sns-search-input {
    flex: 1;
    border: none;
    padding: 8px 14px;
    font-size: 14px;
    background: transparent;
    outline: none;
    font-family: inherit;
}
.sns-search-btn {
    background: var(--c-primary);
    color: var(--c-white);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: opacity 200ms ease-out;
}
.sns-search-btn:hover { opacity: 0.85; }

/* 发帖工具栏 */
.sns-toolbar {
    display: flex;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--c-border);
    margin-top: 8px;
}
.sns-toolbar-btn {
    background: none;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--c-gray);
    font-size: 18px;
    transition: all 200ms ease-out;
}
.sns-toolbar-btn:hover {
    background: var(--c-bg);
    color: var(--c-primary);
    border-color: var(--c-primary);
}

/* 表情选择器 */
.sns-emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto;
}
.sns-emoji-item {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 150ms ease-out;
}
.sns-emoji-item:hover { background: var(--c-white); }

/* 图片预览区 */
.sns-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    min-height: 0;
}
.sns-image-preview:empty { display: none; }
.sns-image-preview-item {
    position: relative;
    width: 80px; height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--c-border);
}
.sns-image-preview-item img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.sns-image-remove {
    position: absolute;
    top: 2px; right: 2px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sns-image-remove:hover { background: rgba(220,53,69,0.9); }

/* AI 互动面板（帖子详情侧栏） */
.sns-ai-panel {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}
.sns-ai-title { font-size: 16px; margin-bottom: 8px; }
.sns-ai-desc { font-size: 13px; color: var(--c-gray); margin-bottom: 12px; }
.sns-ai-chars {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.sns-ai-char-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0,180,198,0.08);
    color: var(--ai-color, var(--c-primary));
}

/* AI 广场页面 */
.sns-ai-layout {
    max-width: 800px;
    margin: 0 auto;
}
.sns-ai-char-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.sns-ai-char-card {
    background: var(--c-white);
    border: 2px solid var(--c-border);
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 200ms ease-out;
}
.sns-ai-char-card:hover { border-color: var(--ai-color); }
.sns-ai-char-card.active {
    border-color: var(--ai-color);
    background: rgba(0,180,198,0.04);
}
.sns-ai-char-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--ai-color, var(--c-primary));
    color: var(--c-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 22px;
}
.sns-ai-char-name { font-weight: 600; font-size: 14px; }
.sns-ai-char-role { font-size: 11px; color: var(--c-gray); }

/* AI 对话区 */
.sns-ai-chat-area {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}
.sns-ai-chat-messages {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sns-ai-welcome {
    text-align: center;
    color: var(--c-gray);
    padding: 60px 20px;
}
.sns-ai-welcome i { font-size: 48px; color: var(--c-primary); }
.sns-ai-welcome p { margin-top: 12px; }

.sns-ai-msg { display: flex; gap: 10px; }
.sns-ai-msg-user { justify-content: flex-end; }
.sns-ai-msg-bubble {
    background: var(--c-bg);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 70%;
    word-break: break-word;
}
.sns-ai-msg-user .sns-ai-msg-bubble {
    background: var(--c-primary);
    color: var(--c-white);
}
.sns-ai-msg-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-white);
    flex-shrink: 0;
    font-size: 16px;
}
.sns-ai-msg-body { flex: 1; min-width: 0; }
.sns-ai-msg-name { font-size: 12px; color: var(--c-gray); margin-bottom: 2px; display: block; }
.sns-ai-msg-error { color: var(--c-danger); }
.sns-ai-thinking { display: flex; align-items: center; gap: 6px; }
.sns-ai-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--c-gray);
    animation: sns-ai-bounce 1.4s infinite ease-in-out both;
}
.sns-ai-dot:nth-child(1) { animation-delay: -0.32s; }
.sns-ai-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes sns-ai-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.sns-ai-chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--c-border);
    background: var(--c-bg);
}
.sns-ai-input {
    flex: 1;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}
.sns-ai-input:focus { border-color: var(--c-primary); }
.sns-ai-send-btn {
    background: var(--c-primary);
    color: var(--c-white);
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    cursor: pointer;
    font-size: 18px;
    transition: opacity 200ms ease-out;
}
.sns-ai-send-btn:hover { opacity: 0.85; }

/* AI 讨论区 */
.sns-ai-discuss-section {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 20px;
}
.sns-ai-discuss-title { font-size: 16px; margin-bottom: 4px; }
.sns-ai-discuss-desc { font-size: 13px; color: var(--c-gray); margin-bottom: 16px; }
.sns-ai-discuss-input-area {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.sns-ai-discuss-result { margin-top: 16px; }
.sns-ai-discuss-loading {
    text-align: center;
    padding: 24px;
    color: var(--c-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.sns-ai-discuss-replies {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.sns-ai-discuss-reply {
    border-left: 3px solid var(--c-primary);
    background: var(--c-bg);
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
}
.sns-ai-discuss-reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.sns-ai-discuss-char-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-white);
    font-size: 14px;
}
.sns-ai-discuss-char-name { font-weight: 600; font-size: 14px; }
.sns-ai-discuss-char-role { font-size: 12px; color: var(--c-gray); }
.sns-ai-discuss-reply-text { font-size: 14px; line-height: 1.6; color: var(--c-text); }
.sns-ai-consensus {
    background: rgba(47,191,113,0.08);
    border: 1px solid var(--c-success);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--c-success);
}
.sns-ai-consensus p { margin-top: 4px; color: var(--c-text); }
.sns-ai-no-consensus {
    text-align: center;
    color: var(--c-warning);
    padding: 12px;
}
.sns-ai-discuss-error {
    color: var(--c-danger);
    text-align: center;
    padding: 16px;
}

/* 评论点赞状态 */
.sns-comment-action.is-liked { color: var(--c-danger); }
.sns-comment-action.is-liked i { color: var(--c-danger); }

/* AI 角色头像图片（SVG） */
.sns-ai-char-img {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 8px;
}
.sns-ai-char-tag-img {
    width: 20px; height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.sns-ai-msg-avatar-img {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.sns-ai-discuss-char-img {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* 响应式补充 */
@media (max-width: 768px) {
    .sns-ai-char-grid { grid-template-columns: repeat(3, 1fr); }
    .sns-ai-msg-bubble { max-width: 85%; }
    .sns-search-form { flex-direction: column; }
}

/* ============================================================
   P5: 全站搜索、SEO、合规化、用户收藏、广告前台
   ============================================================ */

/* 顶部搜索框 */
.header-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--c-border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--c-white);
    transition: border-color 200ms ease-out;
}
.header-search:focus-within { border-color: var(--c-primary); }
.header-search-input {
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    width: 140px;
    outline: none;
    background: transparent;
    font-family: inherit;
}
.header-search-btn {
    background: none;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--c-gray);
    font-size: 16px;
    transition: color 150ms ease-out;
}
.header-search-btn:hover { color: var(--c-primary); }

/* 搜索页 */
.search-page { max-width: 800px; margin: 0 auto; padding: 20px 0 40px; }
.search-hero { text-align: center; margin-bottom: 32px; }
.search-title { font-size: 28px; margin-bottom: 16px; }
.search-form-main {
    display: flex;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}
.search-input-main {
    flex: 1;
    border: 2px solid var(--c-border);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    transition: border-color 200ms ease-out;
}
.search-input-main:focus { border-color: var(--c-primary); }
.search-btn-main {
    background: var(--c-primary);
    color: var(--c-white);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 15px;
    transition: opacity 200ms ease-out;
}
.search-btn-main:hover { opacity: 0.85; }
.search-hot {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.search-hot-label { font-size: 13px; color: var(--c-gray); }
.search-hot-tag {
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--c-bg);
    color: var(--c-text);
    transition: all 150ms ease-out;
}
.search-hot-tag:hover { background: var(--c-primary); color: var(--c-white); }
.search-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.search-count { font-size: 14px; color: var(--c-gray); }
.search-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.search-tab {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--c-bg);
    color: var(--c-text);
    transition: all 150ms ease-out;
}
.search-tab.active { background: var(--c-primary); color: var(--c-white); }
.search-results { display: flex; flex-direction: column; gap: 12px; }
.search-result-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    transition: box-shadow 200ms ease-out, border-color 200ms ease-out;
}
.search-result-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); border-color: var(--c-primary); }
.search-result-thumb { flex-shrink: 0; width: 100px; height: 70px; border-radius: 8px; overflow: hidden; }
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-body { flex: 1; min-width: 0; }
.search-result-meta { margin-bottom: 4px; }
.search-result-type {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0,180,198,0.08);
    color: var(--c-primary);
}
.search-result-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.search-result-excerpt { font-size: 13px; color: var(--c-gray); line-height: 1.5; }
.search-empty { text-align: center; padding: 60px 20px; }
.search-empty i { font-size: 48px; color: var(--c-gray); }
.search-empty p { margin: 12px 0 20px; color: var(--c-gray); }

/* 分页 */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 24px; }
.pagination-link {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--c-text);
    transition: all 150ms ease-out;
}
.pagination-link:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination-link.active { background: var(--c-primary); color: var(--c-white); border-color: var(--c-primary); }

/* Cookie 提示条 */
.cookie-consent {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--c-dark, #0B1B2B);
    color: #fff;
    z-index: 9999;
    padding: 12px 0;
    animation: cookie-slide-up 300ms ease-out;
}
@keyframes cookie-slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cookie-consent-text { font-size: 13px; }
.cookie-consent-text a { text-decoration: underline; opacity: 0.8; }

/* 面包屑 */
.breadcrumb-wrap { padding: 8px 0; }
.breadcrumb ol { list-style: none; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb a { color: var(--c-gray); font-size: 13px; transition: color 150ms ease-out; }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb span[itemprop="name"] { font-size: 13px; }
.breadcrumb-sep { color: var(--c-border); font-size: 13px; margin: 0 2px; }

/* 合规页面 */
.legal-page { max-width: 800px; margin: 0 auto; padding: 20px 0 60px; }
.legal-article {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 40px;
}
.legal-article h1 { font-size: 24px; margin-bottom: 8px; }
.legal-updated { font-size: 13px; color: var(--c-gray); margin-bottom: 24px; }
.legal-article h2 { font-size: 18px; margin: 24px 0 12px; }
.legal-article h3 { font-size: 15px; margin: 16px 0 8px; }
.legal-article p { font-size: 14px; line-height: 1.8; color: var(--c-text); margin-bottom: 12px; }
.legal-article ul { padding-left: 20px; margin-bottom: 12px; }
.legal-article li { font-size: 14px; line-height: 1.8; color: var(--c-text); }
.legal-article a { color: var(--c-primary); text-decoration: underline; }
.legal-cookie-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal-cookie-table th, .legal-cookie-table td {
    border: 1px solid var(--c-border);
    padding: 8px 12px;
    font-size: 13px;
    text-align: left;
}
.legal-cookie-table th { background: var(--c-bg); font-weight: 600; }

/* 页脚补充 */
.footer-bottom-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-sep { color: var(--c-gray); }

/* 用户收藏页 */
.fav-tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.fav-tab {
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--c-bg);
    color: var(--c-text);
    transition: all 150ms ease-out;
}
.fav-tab.active { background: var(--c-primary); color: var(--c-white); }
.fav-tab-count { font-size: 12px; opacity: 0.7; margin-left: 4px; }
.fav-list { display: flex; flex-direction: column; gap: 12px; }
.fav-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    transition: box-shadow 200ms ease-out, border-color 200ms ease-out;
}
.fav-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); border-color: var(--c-primary); }
.fav-item-thumb { flex-shrink: 0; width: 100px; height: 70px; border-radius: 8px; overflow: hidden; }
.fav-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fav-item-body { flex: 1; min-width: 0; }
.fav-item-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.fav-item-excerpt { font-size: 13px; color: var(--c-gray); line-height: 1.5; }
.fav-empty { text-align: center; padding: 60px 20px; }
.fav-empty i { font-size: 48px; color: var(--c-gray); }
.fav-empty p { margin: 12px 0 20px; color: var(--c-gray); }

/* 广告前台 */
.ad-slot { margin: 16px 0; }
.ad-item { text-align: center; }
.ad-item img { max-width: 100%; border-radius: 8px; }
.ad-html-content { padding: 8px; }

/* 响应式 */
@media (max-width: 768px) {
    .header-search { display: none; }
    .search-form-main { flex-direction: column; }
    .legal-article { padding: 20px; }
    .cookie-consent-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   P10: 首页样式
   ============================================================ */

/* Hero 横幅 */
.home-hero {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #0B1B2B 0%, #1F6FEB 40%, #00B4C6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.home-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(0,180,198,.3) 0%, transparent 60%),
                radial-gradient(ellipse at 30% 80%, rgba(108,92,231,.2) 0%, transparent 50%);
}
.home-hero .hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}
.home-hero .hero-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 8px;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
    letter-spacing: 2px;
}
.home-hero .hero-subtitle {
    font-size: 20px;
    margin: 0 0 6px;
    opacity: .95;
}
.home-hero .hero-desc {
    font-size: 14px;
    margin: 0 0 28px;
    opacity: .8;
}
.home-hero .hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.home-hero .hero-cta .btn-outline {
    border-color: rgba(255,255,255,.6);
    color: #fff;
}
.home-hero .hero-cta .btn-outline:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff;
}
.home-hero .hero-scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.6);
    text-align: center;
    z-index: 2;
    animation: bounce 2s ease-in-out infinite;
}
.home-hero .scroll-text { font-size: 12px; display: block; margin-bottom: 4px; }
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* 频道导航 */
.home-channels { padding: 56px 0 32px; background: #f7f9fc; }
.home-channels .channel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.home-channels .channel-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all .25s ease;
    text-decoration: none;
    color: #333;
}
.home-channels .channel-card:hover {
    border-color: var(--ch-color);
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    transform: translateY(-3px);
}
.home-channels .channel-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--ch-color) 12%, #fff);
    color: var(--ch-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.home-channels .channel-info { flex: 1; }
.home-channels .channel-name { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: #1a2733; }
.home-channels .channel-desc { font-size: 13px; color: #6b7d8c; margin: 0; }
.home-channels .channel-arrow { font-size: 18px; color: var(--ch-color); opacity: .6; }

/* 通用 section */
.home-section { padding: 48px 0; }
.home-section:nth-child(even) { background: #f7f9fc; }
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-header-center { text-align: center; flex-direction: column; align-items: center; }
.section-title { font-size: 24px; font-weight: 800; color: #1a2733; margin: 0; }
.section-subtitle { font-size: 14px; color: #6b7d8c; margin: 6px 0 0; }
.section-more { font-size: 14px; color: #00B4C6; text-decoration: none; font-weight: 600; }
.section-more:hover { text-decoration: underline; }

/* 卡片网格 */
.card-grid { display: grid; gap: 20px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8edf2;
    transition: box-shadow .25s, transform .25s;
    text-decoration: none;
    color: inherit;
}
.card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.1); transform: translateY(-3px); }
.card-image { width: 100%; height: 200px; overflow: hidden; background: #f0f4f8; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px; }
.card-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: #1a2733; }
.card-text { font-size: 13px; color: #6b7d8c; margin: 0; line-height: 1.6; }
.card-rating { margin-top: 8px; font-size: 13px; }
.card-rating .rating-stars { color: #FF9F1C; }
.card-rating .rating-num { color: #6b7d8c; margin-left: 4px; }

/* 双列布局 */
.home-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.home-col { min-width: 0; }

/* 专题列表 */
.destination-list, .event-list, .article-list { display: flex; flex-direction: column; gap: 16px; }
.destination-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8edf2;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .25s;
}
.destination-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.destination-image { width: 120px; height: 80px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.destination-image img { width: 100%; height: 100%; object-fit: cover; }
.destination-info { flex: 1; min-width: 0; }
.destination-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: #1a2733; }
.destination-desc { font-size: 13px; color: #6b7d8c; margin: 0; line-height: 1.5; }

/* 活动列表 */
.event-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8edf2;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .25s;
}
.event-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.event-date {
    width: 56px;
    text-align: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FF9F1C, #FFD166);
    color: #fff;
    border-radius: 10px;
    padding: 8px 0;
    line-height: 1.3;
}
.event-date .event-month { font-size: 11px; display: block; }
.event-date .event-day { font-size: 22px; font-weight: 800; display: block; }
.event-info { flex: 1; min-width: 0; }
.event-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: #1a2733; }
.event-location { font-size: 13px; color: #6b7d8c; margin: 0; }
.event-location i { margin-right: 4px; }

/* 文章列表 */
.article-item {
    padding: 14px 0;
    border-bottom: 1px solid #e8edf2;
    text-decoration: none;
    color: inherit;
    display: block;
}
.article-item:last-child { border-bottom: none; }
.article-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: #1a2733; transition: color .2s; }
.article-item:hover .article-title { color: #00B4C6; }
.article-excerpt { font-size: 13px; color: #6b7d8c; margin: 0 0 6px; line-height: 1.5; }
.article-meta { font-size: 12px; color: #9aa8b3; display: flex; gap: 16px; }
.article-meta i { margin-right: 3px; }

/* 好物卡片 */
.goods-card .goods-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,159,28,.9);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}
.card-image { position: relative; }
.goods-price { margin-top: 6px; }
.goods-price .price-symbol { font-size: 12px; color: #FF9F1C; }
.goods-price .price-num { font-size: 20px; font-weight: 800; color: #FF9F1C; }
.goods-price .price-original { font-size: 12px; color: #9aa8b3; text-decoration: line-through; margin-left: 6px; }

/* 社区帖子 */
.post-card .card-body { padding: 14px; }
.post-card .post-author { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.post-card .post-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.post-card .post-name { font-size: 13px; font-weight: 600; color: #1a2733; }
.post-card .post-text { font-size: 13px; color: #333; margin: 0 0 8px; line-height: 1.5; }
.post-card .post-stats { display: flex; gap: 12px; font-size: 12px; color: #9aa8b3; }
.post-card .post-stat i { margin-right: 3px; }

/* AI 角色区域 */
.home-ai { background: linear-gradient(180deg, #f7f9fc 0%, #eef4ff 100%); padding: 56px 0; }
.ai-character-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.ai-character-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 24px 12px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all .25s ease;
}
.ai-character-card:hover {
    border-color: var(--char-color);
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    transform: translateY(-4px);
}
.ai-character-card .ai-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--char-color);
    background: #f0f4f8;
}
.ai-character-card .ai-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ai-character-card .ai-name { font-size: 16px; font-weight: 700; margin: 0 0 2px; color: #1a2733; }
.ai-character-card .ai-role { font-size: 12px; color: var(--char-color); margin: 0; font-weight: 600; }
.ai-cta-center { text-align: center; }

/* 首页响应式 */
@media (max-width: 992px) {
    .home-channels .channel-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .ai-character-grid { grid-template-columns: repeat(3, 1fr); }
    .home-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .home-hero { height: 360px; }
    .home-hero .hero-title { font-size: 28px; }
    .home-hero .hero-subtitle { font-size: 16px; }
    .home-hero .hero-desc { display: none; }
    .home-channels .channel-grid { grid-template-columns: 1fr; }
    .card-grid-3 { grid-template-columns: 1fr; }
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .ai-character-grid { grid-template-columns: repeat(2, 1fr); }
    .home-section { padding: 32px 0; }
    .section-title { font-size: 20px; }
    .destination-image { width: 100px; height: 70px; }
}
@media (max-width: 480px) {
    .home-hero .hero-title { font-size: 22px; }
    .card-grid-4 { grid-template-columns: 1fr; }
    .ai-character-grid { grid-template-columns: 1fr; }
}
