@charset "UTF-8";

:root {
    --bg: #f2f2f7;
    --card: rgba(255,255,255,0.85);
    --card-border: rgba(255,255,255,0.5);
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
    --ios-blue: #007aff;
    --ios-text: #1c1c1e;
    --ios-secondary: #8e8e93;
}

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

body {
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ios-text);
    line-height: 1.5;
    padding-bottom: 70px;
}

/* ========== 导航栏（无黑边） ========== */
.navbar {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: none !important;
    box-shadow: none !important;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.logo img {
    height: 58px;          /* 放大 Logo，适配16:9横版 */
    width: auto;
    display: block;
    vertical-align: middle;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--ios-text);
    border-radius: 3px;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.nav-links a, .dropbtn {
    text-decoration: none;
    color: var(--ios-text);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.dropdown-nav {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1001;
    border: none !important;
}
.dropdown-content a {
    color: var(--ios-text);
    padding: 10px 16px;
    display: block;
}
.dropdown-content a:hover {
    background: #f2f2f7;
}
.dropdown-nav:hover .dropdown-content {
    display: block;
}
.user-menu {
    position: relative;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 44px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-width: 150px;
    overflow: hidden;
    z-index: 1002;
}
.dropdown a {
    display: block;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
}
.dropdown a:last-child {
    border-bottom: none;
}

/* 搜索框美化 */
.search-box {
    display: inline-block;
    margin-left: 10px;
}
.search-wrapper {
    display: flex;
    align-items: center;
    background: #f2f2f7;
    border-radius: 30px;
    padding: 2px 2px 2px 16px;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}
.search-wrapper input {
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 0.9rem;
    outline: none;
    flex: 1;
    min-width: 180px;
}
.search-wrapper button {
    background: #007aff;
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    margin-left: 8px;
}
.search-wrapper button:hover {
    background: #005fc1;
}

/* 手机端运营商横幅 */
.carrier-banner {
    background: #f8f9fa;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #1c1c1e;
    border-bottom: 1px solid #e9ecef;
}

/* 顶部公告条 */
.top-announcement-bar {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 8px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.announcement-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
}
.announcement-label {
    background: #ff9f0a;
    color: #1e293b;
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
}
.announcement-link {
    color: #ff9f0a;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed #ff9f0a;
}

/* 灵动岛弹窗提示 */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    z-index: 10000;
    transition: transform 0.3s ease;
    white-space: nowrap;
    max-width: 90%;
    text-align: center;
    line-height: 1.4;
    white-space: normal;
}
.toast-notification.show {
    transform: translateX(-50%) translateY(0);
}

/* ========== 电脑端顶部三栏布局 ========== */
.homepage-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.desktop-top-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.carousel-section {
    flex: 2;
}
.right-modules {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.module {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.module-header {
    background: #f8f9fa;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
}
.module-header h3 {
    font-size: 1rem;
    font-weight: 600;
}
.module-content {
    padding: 12px 16px;
}
.hot-post-item, .announcement-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}
.hot-post-item:last-child, .announcement-item:last-child {
    border-bottom: none;
}
.hot-post-item a, .announcement-item a {
    text-decoration: none;
    color: #1c1c1e;
    font-size: 0.9rem;
}
.hot-score {
    color: #ff9f0a;
    font-size: 0.8rem;
}
.certified-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    text-align: center;
    padding: 12px;
}
.certified-item {
    text-decoration: none;
    color: #1c1c1e;
}
.certified-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    margin: 0 auto;
}
.certified-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50% !important;
    object-fit: cover;
}
.v-badge-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}
.v-badge-icon.blue { background: #2367ED; color: white; }
.v-badge-icon.yellow { background: #ffc107; color: #1e293b; }
.certified-name {
    font-size: 0.7rem;
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 帖子流 ========== */
.posts-stream-section {
    margin-top: 30px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}
.more-link {
    text-decoration: none;
    color: var(--ios-blue);
    font-size: 0.85rem;
}
.posts-grid {
    display: grid;
    gap: 16px;
}
.glass-card {
    background: var(--card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    padding: 16px;
}
.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.post-author {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #1c1c1e;
    font-weight: 500;
}
.avatar-xs {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    object-fit: cover;
}
.post-title {
    margin: 8px 0;
    font-size: 1.2rem;
    word-wrap: break-word;
}
.post-title a {
    text-decoration: none;
    color: #1c1c1e;
}
.post-number {
    font-size: 0.7rem;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 20px;
    color: #6c757d;
    margin-left: 8px;
    display: inline-block;
    white-space: nowrap;
}
.post-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 8px 0;
}
.post-stats {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}
.like-btn, .comment-link, .share-btn {
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #8e8e93;
    text-decoration: none;
}
.like-btn svg, .comment-link svg, .share-btn svg {
    width: 20px;
    height: 20px;
}
.like-btn svg path, .comment-link svg path, .share-btn svg path {
    stroke: none;
}
.post-actions {
    margin-top: 12px;
}

/* ========== 全屏个人主页（左右两栏） ========== */
.profile-fullscreen {
    width: 100%;
    min-height: calc(100vh - 60px);
}
.profile-cover {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-color: #667eea;
    z-index: 1;
    position: relative;
}
.profile-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 2;
}
.profile-sidebar {
    flex: 0 0 320px;
    position: relative;
    top: -60px;
    margin-bottom: -60px;
    z-index: 3;
}
.profile-timeline {
    flex: 1;
    position: relative;
    z-index: 2;
}
.profile-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}
.profile-avatar-large-wrapper {
    width: 120px;
    height: 120px;
    margin: -80px auto 16px;
}
.profile-avatar-large {
    width: 100%;
    height: 100%;
    border-radius: 50% !important;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.profile-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 8px 0 4px;
}
.profile-username {
    color: #536471;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.profile-bio {
    margin: 12px 0;
    font-size: 0.95rem;
}
.profile-join {
    color: #536471;
    font-size: 0.85rem;
    margin: 12px 0;
}
.profile-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 16px 0;
}
.profile-stats div {
    font-size: 0.9rem;
}
.profile-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}
.follow-btn, .message-btn {
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.follow-btn {
    background: #0f1419;
    color: white;
}
.follow-btn.following {
    background: transparent;
    border: 1px solid #cfd9de;
    color: #0f1419;
}
.message-btn {
    background: transparent;
    border: 1px solid #cfd9de;
    color: #0f1419;
}
.timeline-header {
    margin-bottom: 20px;
}
.timeline-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    word-wrap: break-word;
}
.timeline-post {
    margin-bottom: 16px;
    cursor: pointer;
}
.timeline-post .post-author-name {
    font-weight: 500;
    color: #1c1c1e;
}
.timeline-post .post-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.timeline-post .post-content-preview {
    margin: 8px 0;
    color: #536471;
    font-size: 0.9rem;
}
.timeline-post .post-stats {
    margin-top: 10px;
}
.avatar-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 16px 0;
}
.upload-btn {
    background: #e2e8f0;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* 帖子详情页样式 */
.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.post-author-name {
    font-weight: 500;
    color: #1c1c1e;
}
.post-content {
    font-size: 1rem;
    line-height: 1.6;
    margin: 16px 0;
}
.reply-card {
    margin-bottom: 12px;
}
.reply-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.reply-author-name {
    font-weight: 500;
    color: #1c1c1e;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.reply-content {
    margin-left: 48px;
}
.reply-stats {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    margin-left: 48px;
}
.reply-like-btn, .reply-share-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #8e8e93;
}
.reply-like-btn svg, .reply-share-btn svg {
    width: 18px;
    height: 18px;
}
.reply-form-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: var(--shadow);
}
.reply-form-header {
    margin-bottom: 16px;
    font-weight: 500;
}
.reply-form textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 12px 16px;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.reply-form textarea:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0,122,255,0.2);
}
.reply-form button {
    background: #007aff;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
}
.reply-form button:hover {
    background: #005fc1;
}
.login-tip-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

/* 聊天界面（全屏，仿微信） */
.chat-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}
.chat-header {
    background: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e9ecef;
}
.back-btn {
    text-decoration: none;
    font-size: 1.8rem;
    color: #007aff;
}
.chat-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
}
.chat-user-name {
    font-weight: 600;
    font-size: 1.1rem;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.message-row {
    display: flex;
}
.message-row.mine {
    justify-content: flex-end;
}
.message-bubble {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.message-row.mine .message-bubble {
    background: #dcf8c5;
}
.message-content {
    font-size: 0.95rem;
    word-wrap: break-word;
}
.message-time {
    font-size: 0.65rem;
    color: #8e8e93;
    text-align: right;
    margin-top: 4px;
}
.chat-input-area {
    background: white;
    padding: 10px 16px;
    border-top: 1px solid #e9ecef;
}
.chat-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}
.chat-input-wrapper input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
    background: #f8f8f8;
}
.chat-input-wrapper input:focus {
    outline: none;
    border-color: #007aff;
    background: white;
}
.chat-input-wrapper button {
    background: #007aff;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
}

/* 手机端聊天输入框修复 */
@media (max-width: 768px) {
    .chat-fullscreen {
        bottom: 60px;
    }
    .chat-input-area {
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid #e9ecef;
    }
}

/* 好友列表 */
.friends-grid {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}
.friend-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
}
.avatar-md {
    width: 56px;
    height: 56px;
    border-radius: 50% !important;
    object-fit: cover;
}
.friend-info {
    flex: 1;
}
.friend-name {
    font-weight: 700;
    font-size: 1rem;
}
.friend-username {
    color: #536471;
    font-size: 0.8rem;
}
.btn-sm {
    background: #007aff;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.8rem;
}

/* 设置页面 */
.settings-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50% !important;
    object-fit: cover;
    margin-bottom: 12px;
}
.avatar-section {
    text-align: center;
    margin-bottom: 20px;
}
.upload-btn {
    display: inline-block;
    background: #007aff;
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
}
.settings-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin: 8px 0 16px;
    font-family: inherit;
}
.settings-input:focus {
    outline: none;
    border-color: #007aff;
}
.btn-primary {
    background: #007aff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}
.btn-primary:hover {
    background: #005fc1;
}

/* 通用表单输入框优化 */
input, select, textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-bottom: 16px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0,122,255,0.2);
}
button[type="submit"], .register-btn {
    background: #007aff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}
button[type="submit"]:hover, .register-btn:hover {
    background: #005fc1;
}
.code-row {
    display: flex;
    gap: 8px;
}
.code-row input {
    flex: 1;
    margin-bottom: 16px;
}
.code-btn {
    width: auto;
    margin: 0;
    background: #e9ecef;
    color: #1e293b;
    white-space: nowrap;
}
.code-btn:hover {
    background: #d0d5db;
}
.code-btn.disabled {
    background: #adb5bd;
    cursor: not-allowed;
}
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.checkbox-row input {
    width: auto;
    margin: 0;
}
.checkbox-row label {
    margin: 0;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}
.carousel-inner {
    position: relative;
    width: 100%;
    padding-bottom: 56%;
}
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}
.carousel-item.active {
    opacity: 1;
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-caption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}
.carousel-prev {
    left: 10px;
}
.carousel-next {
    right: 10px;
}
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
}
.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    margin: 0 4px;
    cursor: pointer;
}
.dot.active {
    background: white;
    width: 16px;
    border-radius: 4px;
}

/* 后台侧边栏布局 */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 260px;
    background: #1e293b;
    color: white;
    padding: 20px 0;
}
.admin-sidebar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0 20px 20px;
    border-bottom: 1px solid #334155;
    margin-bottom: 20px;
    color: white;
    text-decoration: none;
    display: block;
}
.admin-sidebar .nav-item {
    display: block;
    padding: 10px 20px;
    color: #cbd5e1;
    text-decoration: none;
}
.admin-sidebar .nav-item:hover, .admin-sidebar .nav-item.active {
    background: #334155;
    color: white;
}
.admin-main {
    flex: 1;
    background: #f1f5f9;
    padding: 20px;
}
.admin-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th, .admin-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}
.admin-table th {
    background: #f8fafc;
}
.btn {
    display: inline-block;
    padding: 6px 12px;
    background: #3b82f6;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    margin: 10px 0;
}

/* 搜索页面样式 */
.search-form {
    margin-bottom: 24px;
}
.search-results .result-section {
    margin-bottom: 32px;
}
.result-section h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}
.post-item {
    margin-bottom: 16px;
}
.user-search-item {
    margin-bottom: 12px;
}
.user-search-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}
.user-info .user-name {
    font-weight: 700;
    font-size: 1rem;
}
.user-info .user-username {
    color: #536471;
    font-size: 0.85rem;
}
.user-info .user-email {
    font-size: 0.8rem;
    color: #8e8e93;
}

/* 板块列表页面 */
.forums-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.forums-header {
    text-align: center;
    margin-bottom: 24px;
}
.forums-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.forums-header p {
    color: var(--ios-secondary);
}
.forums-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.forum-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 20px;
    text-decoration: none;
    color: var(--ios-text);
    transition: transform 0.2s, box-shadow 0.2s;
}
.forum-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.forum-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}
.forum-info {
    flex: 1;
}
.forum-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.forum-stats {
    font-size: 0.8rem;
    color: var(--ios-secondary);
}
.forum-arrow {
    font-size: 1.2rem;
    color: var(--ios-secondary);
}
@media (max-width: 768px) {
    .forums-page {
        padding: 16px;
    }
    .forum-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
}

/* 手机端底部导航栏 */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 8px 16px;
    justify-content: space-around;
    z-index: 1000;
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #8e8e93;
    font-size: 0.7rem;
}
.bottom-nav-item.active {
    color: #007aff;
}
.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}
.footer-center {
    text-align: center;
    padding: 20px;
    color: #8e8e93;
    font-size: 0.8rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 40px;
}

/* 响应式：手机端全局 */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }
    .hamburger {
        display: flex;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 0;
    }
    .nav-links.show {
        display: flex;
    }
    .dropdown-nav {
        width: 100%;
    }
    .dropbtn {
        width: 100%;
        text-align: left;
    }
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 20px;
    }
    .search-box {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
    .search-wrapper {
        width: 100%;
    }
    .user-menu {
        width: 100%;
    }
    .mobile-bottom-nav {
        display: flex;
    }
    .desktop-top-row {
        flex-direction: column;
    }
    .carousel-section {
        width: 100%;
    }
    .right-modules {
        width: 100%;
        display: none !important;
    }
    .carousel-inner {
        padding-bottom: 60%;
    }
    .profile-content-wrapper {
        flex-direction: column;
    }
    .profile-sidebar {
        top: -40px;
        margin-bottom: -40px;
    }
    .profile-avatar-large-wrapper {
        width: 90px;
        height: 90px;
        margin-top: -60px;
    }
    .profile-cover {
        height: 180px;
    }
    .reply-content, .reply-stats {
        margin-left: 0;
    }
    .logo img {
        height: 36px;   /* 手机端适当缩小 Logo，避免拥挤 */
    }
}

/* 电脑端隐藏手机专用元素 */
@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
    .carrier-banner {
        display: none;
    }
}

/* 所有头像圆形强制 */
img[class*="avatar"], .user-avatar, .profile-avatar, .official-avatar,
.tweet-avatar img, .chat-avatar, .certified-avatar img, .friend-card img,
.reply-meta img, .post-author img, .avatar-xs, .avatar-sm, .avatar-md,
.profile-avatar-large {
    border-radius: 50% !important;
    object-fit: cover;
    border: none;
}

/* 容器居中、卡片不错位 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.glass-card {
    margin-bottom: 16px;
}
.post-card, .friend-card, .reply-card, .tweet-card, .timeline-post {
    overflow-x: auto;
    word-wrap: break-word;
    word-break: break-word;
}
img, svg {
    max-width: 100%;
    height: auto;
}
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
/* 帖子媒体展示 */
.post-media {
    margin: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.post-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
}
.post-video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    background: #000;
}

/* 裁剪模态框样式 */
.crop-modal {
    width: 90%;
    max-width: 600px;
}
.img-container {
    max-height: 400px;
    overflow: hidden;
    margin: 20px 0;
}
.img-container img {
    max-width: 100%;
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    position: relative;
}
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}
/* 板块页面新样式 */
.forums-page-new {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.forums-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.tabs {
    display: flex;
    gap: 20px;
}
.tab {
    font-size: 1.2rem;
    font-weight: 500;
    color: #8e8e93;
    cursor: pointer;
}
.tab.active {
    color: #ff69b4;
    border-bottom: 2px solid #ff69b4;
}
.search-box {
    display: flex;
    gap: 8px;
}
.search-box input {
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid #ddd;
}
.forums-main {
    display: flex;
    gap: 20px;
}
.sidebar {
    width: 25%;
}
.category-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    background: #f8f9fa;
}
.category-item.active {
    background: #ff69b4;
    color: white;
    position: relative;
}
.category-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: white;
    border-radius: 2px;
}
.board-list {
    flex: 1;
    max-height: 70vh;
    overflow-y: auto;
}
.board-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
}
.board-icon {
    width: 48px;
    height: 48px;
    background: #e9ecef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}
.board-info {
    flex: 1;
}
.board-name {
    font-weight: 600;
}
.board-stats {
    font-size: 0.8rem;
    color: #8e8e93;
}
.follow-board-btn {
    background: #ff69b4;
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
}
.follow-board-btn.followed {
    background: #e9ecef;
    color: #1c1c1e;
}
.empty-state {
    text-align: center;
    padding: 40px;
    color: #8e8e93;
}
/* 私信限制弹窗 */
.follow-prompt {
    background: white;
    padding: 16px;
    margin: 16px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}
.follow-prompt-btn {
    margin: 8px;
    padding: 8px 20px;
    border-radius: 30px;
    border: none;
    background: #ff69b4;
    color: white;
    cursor: pointer;
}
/* 板块页面（新样式） */
.forums-page-new {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.forums-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.tabs {
    display: flex;
    gap: 20px;
}
.tab {
    font-size: 1.2rem;
    font-weight: 500;
    color: #8e8e93;
    cursor: pointer;
    padding-bottom: 4px;
}
.tab.active {
    color: #ff69b4;
    border-bottom: 2px solid #ff69b4;
}
.search-box {
    display: flex;
    gap: 8px;
}
.search-box input {
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid #ddd;
}
.search-box button {
    background: #ff69b4;
    border: none;
    color: white;
    border-radius: 30px;
    padding: 0 16px;
    cursor: pointer;
}
.forums-main {
    display: flex;
    gap: 20px;
}
.sidebar {
    width: 25%;
    flex-shrink: 0;
}
.category-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    background: #f8f9fa;
}
.category-item.active {
    background: #ff69b4;
    color: white;
    position: relative;
}
.category-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: white;
    border-radius: 2px;
}
.board-list {
    flex: 1;
    max-height: 70vh;
    overflow-y: auto;
}
.board-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background 0.2s;
}
.board-item:hover {
    background: #f8f9fa;
}
.board-icon {
    width: 48px;
    height: 48px;
    background: #e9ecef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}
.board-info {
    flex: 1;
}
.board-name {
    font-weight: 600;
}
.board-stats {
    font-size: 0.8rem;
    color: #8e8e93;
}
.follow-board-btn {
    background: #ff69b4;
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    flex-shrink: 0;
}
.follow-board-btn.followed {
    background: #e9ecef;
    color: #1c1c1e;
}
.empty-state {
    text-align: center;
    padding: 40px;
    color: #8e8e93;
}
/* 手机端适配 */
@media (max-width: 768px) {
    .forums-page-new {
        padding: 12px;
    }
    .forums-header {
        flex-direction: column;
        align-items: stretch;
    }
    .tabs {
        justify-content: center;
    }
    .search-box {
        width: 100%;
    }
    .search-box input {
        flex: 1;
    }
    .forums-main {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        display: flex;
        gap: 12px;
        margin-bottom: 16px;
    }
    .category-item {
        flex: 1;
        text-align: center;
        margin-bottom: 0;
    }
    .category-item.active::before {
        display: none;
    }
    .board-list {
        max-height: 60vh;
    }
    .board-item {
        padding: 10px;
        gap: 10px;
    }
    .board-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
@media (max-width: 768px) {
    .forums-main {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        display: flex;
        gap: 10px;
        margin-bottom: 16px;
    }
    .sidebar .category-item {
        flex: 1;
        text-align: center;
    }
    .board-list {
        max-height: none;
    }
    .page-title {
        font-size: 1.5rem;
    }
}
/* 粉丝/关注列表页面样式 */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}
.user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    transition: all 0.2s;
}
.user-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    flex: 1;
}
.user-link .avatar-md {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}
.user-info {
    flex: 1;
}
.user-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1c1c1e;
}
.user-username {
    font-size: 0.85rem;
    color: #8e8e93;
    margin-top: 2px;
}
.v-badge {
    display: inline-block;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-top: 4px;
    color: #1e293b;
}
.follow-btn-sm {
    background: #007aff;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.follow-btn-sm:hover {
    background: #005fc1;
}
.official-badge {
    background: #fef3c7;
    color: #d97706;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
}
@media (max-width: 768px) {
    .user-card {
        flex-wrap: wrap;
        gap: 12px;
    }
    .follow-btn-sm {
        width: 100%;
        text-align: center;
    }
    .user-link {
        width: 100%;
    }
}