:root {
    --fb-blue: #1877F2;
    --fb-green: #42B72A;
    --fb-dark: #1C1E21;
    --fb-gray: #E4E6EB;
    --fb-dark-gray: #B0B3B8;
    --fb-card-bg: #242526;
    --fb-body-bg: #18191A;
    --fb-text-main: #E4E6EB;
    --fb-text-secondary: #B0B3B8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
}

/** Cool Body Background Effect */
body {
    background-color: var(--fb-body-bg);
    color: var(--fb-text-main);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(24, 25, 26, 0.95) 0%, rgba(20, 21, 22, 0.95) 100%);
    z-index: -1;
    animation: gradient-shift 15s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/** Header Styles - Facebook-like */
header {
    background-color: var(--fb-dark);
    padding: 0 16px;
    height: 56px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #393A3B;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1312px;
    margin: 0 auto;
}

.logo-search {
    display: flex;
    align-items: center;
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 10px;
    color: var(--fb-blue);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    /*transform: scale(1.05) rotate(-3deg);*/
}

.logo img {
    max-width: 35px;
    font-size: 32px;
    margin-right: 8px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.search-bar {
    background-color: #3A3B3C;
    border-radius: 50px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    /*margin-left: 8px;*/
    /*width: 240px;*/
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.search-bar:focus-within {
    background-color: #4E4F50;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.5);
}

.search-bar i {
    color: var(--fb-dark-gray);
    margin-right: 6px;
    font-size: 14px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--fb-text-main);
    outline: none;
    width: 100%;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    min-width: 112px;
    padding: 0 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background-color: #3A3B3C;
    border-radius: 8px;
}

.nav-item.active {
    border-bottom: none; /* Remove static border for the effect */
    background: linear-gradient(to right, var(--fb-blue), #50C878);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/** Cool pulsating border for the active nav item */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1877F2, #42B72A, #1877F2);
    border-radius: 3px;
    animation: border-pulse 2s linear infinite;
}

@keyframes border-pulse {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.nav-item i {
    font-size: 22px;
    color: var(--fb-dark-gray);
    transition: color 0.2s ease;
}

.nav-item.active i {
    color: var(--fb-blue);
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 8px;
}

.icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3A3B3C;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fb-text-main);
    text-decoration: none;
    margin-left: 4px;
    transition: background-color 0.2s, transform 0.2s ease;
}

.icon-button:hover {
    background-color: #4E4F50;
    transform: scale(1.1);
}

.user-menu {
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 50px;
    margin-left: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s ease;
}

.user-menu:hover {
    background-color: #3A3B3C;
    transform: translateY(-2px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 6px;
    transition: box-shadow 0.3s ease;
}

.user-avatar:hover {
    box-shadow: 0 0 0 3px #1877F2, 0 0 0 6px #42B72A;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    margin-right: 6px;
}

/** Main Content Layout */
.main-container {
    display: flex;
    max-width: 1312px;
    margin: 72px auto 20px;
    padding: 0 16px;
    gap: 16px;
}

/** Left Sidebar */
.left-sidebar {
    width: 300px;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
    padding-right: 8px;
}

.sidebar-card {
    padding: 12px 0;
    border-bottom: 1px solid #3E4042;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.2s ease;
    margin-bottom: 4px;
    text-decoration: none;
    color: var(--fb-text-main);
}

.sidebar-item:hover {
    background-color: #3A3B3C;
    transform: translateX(5px);
}

.sidebar-item i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #3A3B3C;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 16px;
    color: var(--fb-blue);
}

.sidebar-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.sidebar-title {
    padding: 8px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--fb-text-secondary);
}

/** Main Content */
.main-content {
    flex: 1;
    max-width: 680px;
}

.create-post, .question-card, .sponsored-card, .birthday-card, .contacts-card {
    background-color: var(--fb-card-bg);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.create-post:hover, .question-card:hover, .sponsored-card:hover, .birthday-card:hover, .contacts-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.create-post-top {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.create-post-top img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.post-input {
    background-color: #3A3B3C;
    border-radius: 20px;
    padding: 8px 16px;
    flex: 1;
    color: var(--fb-text-secondary);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s ease;
}

.post-input:hover {
    background-color: #4E4F50;
    transform: scale(1.02);
}

.create-post-bottom {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #3E4042;
    padding-top: 8px;
}

.post-option {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
    color: var(--fb-text-secondary);
    cursor: pointer;
}

.post-option span {
    margin-left: 8px;
    font-size: 16px;
    color: var(--fb-text-secondary);
    fill: var(--fb-text-secondary);
}

/* svg 样式 */
.post-option svg {
    /* 基础大小与颜色 */
    width: 2rem; /* 更大一点，增强视觉冲击力 */
    height: 2rem;
    stroke: url(#cool-gradient); /* 应用渐变 */
    stroke-width: 1.5;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

/* 渐变定义（需要添加到 SVG 容器的 <defs> 标签中） */
/* 例如:
<svg width="0" height="0">
  <defs>
    <linearGradient id="cool-gradient" x1="0%" y1="0%" x2="100%" y2="0%">
      <stop offset="0%" stop-color="#28E2B2" />
      <stop offset="50%" stop-color="#4990E2" />
      <stop offset="100%" stop-color="#FF386B" />
    </linearGradient>
  </defs>
</svg>
*/

.post-option:hover svg {
    /* 鼠标悬停时的效果 */
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 10px #28E2B2) drop-shadow(0 0 20px #4990E2); /* 发光效果 */
    animation: pulse-glow 1.5s infinite alternate; /* 添加脉冲动画 */
}

@keyframes pulse-glow {
    from {
        filter: drop-shadow(0 0 5px #28E2B2);
    }
    to {
        filter: drop-shadow(0 0 15px #28E2B2) drop-shadow(0 0 25px #4990E2);
    }
}

.post-option:hover {
    background-color: #3A3B3C;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.post-option i {
    margin-right: 6px;
    font-size: 18px;
}

.post-option:nth-child(1) i {
    color: #45BD62;
}

.post-option:nth-child(2) i {
    color: #F7B928;
}

.post-option:nth-child(3) i {
    color: #F5535D;
}

/** Question Card */
.question-card {
    background-color: var(--fb-card-bg);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.card-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.user-info h3 {
    font-size: 15px;
    font-weight: 600;
}

.user-info span {
    font-size: 12px;
    color: var(--fb-text-secondary);
}

.card-content {
    margin: 12px 0;
}

.card-content .img {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    /* 图片上下居中，并且高度为宽度的6/19 */
    display: block;
    object-fit: cover;
    height: calc(100% * 6 / 19);
}

.question-text {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.question-meta {
    display: flex;
    align-items: center;
    color: var(--fb-text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
    justify-content: space-between;
}

.question-meta span {
    margin-right: 10px;
}

.card-actions {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #3E4042;
    border-bottom: 1px solid #3E4042;
    padding: 6px 0;
    margin-bottom: 8px;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.2s ease;
    color: var(--fb-text-secondary);
    cursor: pointer;
    flex: 1;
}

.action-button:hover {
    background-color: #3A3B3C;
    transform: scale(1.05);
}

.action-button i {
    margin-right: 6px;
    font-size: 16px;
}

.card-comments {
    padding: 8px 0;
}

.comment-input {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.comment-input img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.comment-input-box {
    background-color: #3A3B3C;
    border-radius: 20px;
    padding: 8px 12px;
    flex: 1;
    color: var(--fb-text-main);
    font-size: 14px;
    cursor: pointer;
}

/** Right Sidebar */
.right-sidebar {
    width: 300px;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
}

.sponsored-card, .birthday-card, .contacts-card {
    background-color: var(--fb-card-bg);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--fb-text-secondary);
}

.sponsored-item, .contact-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.2s ease;
    margin-bottom: 4px;
    text-decoration: none;
    color: var(--fb-text-main);
}

.sponsored-item:hover, .contact-item:hover {
    background-color: #3A3B3C;
    transform: translateX(5px);
}

.sponsored-item img, .contact-item img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 10px;
}

.contact-item img {
    border-radius: 50%;
}

.contact-item .status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #31A24C;
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid var(--fb-card-bg);
}

.contact-item {
    position: relative;
}

/** Responsive Design */
@media (max-width: 1200px) {
    .left-sidebar {
        width: 240px;
    }

    .right-sidebar {
        width: 240px;
    }
}

@media (max-width: 992px) {
    .left-sidebar {
        display: none;
    }

    .right-sidebar {
        display: none;
    }

    .main-content {
        max-width: 100%;
    }

    .nav-menu {
        flex: 2;
    }
}

@media (max-width: 768px) {
    .search-bar {
        /*display: none;*/
    }

    .nav-item {
        min-width: auto;
        flex: 1;
        padding: 0 8px;
    }

    .nav-item span {
        display: none;
    }

    .user-name {
        display: none;
    }
}

footer {
    background-color: #333; /* 深灰色背景，与大多数页脚协调 */
    color: #fff; /* 白色文字 */
    padding: 25px 0; /* 上下内边距 */
    text-align: center; /* 内容居中 */
    font-size: 0.9rem; /* 字体大小 */
    border-top: 1px solid #444; /* 顶部细边框，增加层次感 */
    width: 100%; /* 确保页脚宽度占满 */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* 顶部阴影，增加立体感 */
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-right: 10px;
    color: var(--fb-blue);
    text-decoration: none;
    transition: transform 0.3s ease;
    justify-content: center;
    margin-bottom: 2.0rem;
}

.footer-logo img {
    max-width: 35px;
    font-size: 32px;
    margin-right: 8px;
}

.footer-content {
    max-width: 1200px; /* 限制内容最大宽度，居中显示 */
    margin: 0 auto; /* 居中对齐 */
    display: flex; /* 使用Flexbox布局 */
    flex-wrap: wrap; /* 允许项目换行 */
    justify-content: center; /* 项目在主轴上居中 */
    gap: 20px; /* 项目之间的间距 */
    padding: 0 20px; /* 左右内边距，防止内容贴边 */
}

.footer-content a {
    color: #bbb; /* 链接颜色略浅，与普通文字区分 */
    text-decoration: none; /* 移除下划线 */
    padding: 5px 10px; /* 链接点击区域增大 */
    transition: color 0.3s ease, transform 0.3s ease; /* 颜色和变形动画 */
    font-weight: 500; /* 字体加粗 */
}

.footer-content a:hover {
    color: #007bff; /* 鼠标悬停时变为蓝色 */
    transform: translateY(-2px); /* 悬停时稍微上移，增加互动感 */
}

.footer-copyright {
    margin-top: 2rem;
}

/** 移动设备 (小于或等于 768px) */
@media (max-width: 768px) {
    footer {
        padding: 20px 0; /* 稍微减小垂直内边距 */
        font-size: 0.85rem; /* 减小字体大小以适应小屏幕 */
    }

    .footer-logo {
        margin-bottom: 1.5rem; /* 减小Logo与内容间的间距 */
    }

    .footer-logo img {
        max-width: 30px; /* 稍微减小Logo图片大小 */
        font-size: 28px; /* 稍微减小Logo图标大小 */
    }

    /** Logo文本如果存在，可能也需要调整 */
    .footer-logo .logo-text { /* 假设Logo文本有 .logo-text 类 */
        font-size: 1.2rem; /* 调整Logo文本大小 */
    }

    .footer-content {
        flex-direction: column; /* 垂直堆叠导航链接 */
        align-items: center; /* 水平居中链接 */
        padding: 0 15px; /* 减小左右内边距 */
        gap: 10px; /* 减小项目之间的垂直间距 */
    }

    .footer-content a {
        padding: 8px 0; /* 增加垂直点击区域，方便触摸 */
        width: 100%; /* 链接宽度占满，提供更大的点击区域 */
        text-align: center; /* 链接文本居中 */
    }

    .footer-content a:hover {
        transform: none; /* 在移动端通常不需要悬停效果 */
    }

    .footer-copyright {
        margin-top: 1.5rem; /* 减小版权信息上边距 */
        padding: 0 15px; /* 确保版权信息有左右内边距 */
    }
}

/** 针对更小的设备，例如智能手机竖屏 (小于或等于 480px) */
@media (max-width: 480px) {
    footer {
        padding: 15px 0;
        font-size: 0.8rem; /* 进一步减小字体大小 */
    }

    .footer-logo {
        margin-bottom: 1rem; /* 进一步减小Logo间距 */
    }

    .footer-logo img {
        max-width: 28px; /* 再次减小Logo图片大小 */
        font-size: 26px; /* 再次减小Logo图标大小 */
    }

    .footer-logo .logo-text {
        font-size: 1.1rem;
    }

    .footer-content {
        gap: 5px; /* 进一步减小链接间距 */
        padding: 0 10px; /* 进一步减小左右内边距 */
    }

    .footer-content a {
        padding: 6px 0; /* 调整垂直点击区域 */
    }

    .footer-copyright {
        margin-top: 1rem; /* 调整版权信息上边距 */
        padding: 0 10px;
    }
}

/* --- 神评部分样式 --- */

/* 神评头部样式 */
.comment-shenping-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0 20px;
    position: relative;
}

.shenping-text {
    position: relative;
    padding: 0 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #FF5722;
    z-index: 1;
}

.comment-shenping-header::before,
.comment-shenping-header::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, #ffbe98, #FF5722);
}

.comment-shenping-header::after {
    background: linear-gradient(to left, #ffbe98, #FF5722);
}

/* 神评列表容器 */
.shenping-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.shenping-list::after {
    content: '';
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    /* 优化后的渐变，实色区域在中间 20% 的位置 */
    background: linear-gradient(to right, transparent 0%, #ffffff 40%, #ffffff 60%, transparent 100%);
}

/* 神评评论项布局 */
.shenping-list .comment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 0;
    background: none; /* 移除背景色 */
    border-radius: 0;
}

.shenping-list .comment-item img {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.shenping-list .comment-item .comment-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.shenping-list .comment-item .comment-content h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}

.shenping-list .comment-item .comment-content p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #fff;
}

/* 赞/踩按钮容器 */
.shenping-list .comment-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    justify-content: flex-end;
}

.shenping-list .action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #888;
    font-size: 1.2rem;
    transition: color 0.3s;
    text-decoration: none;
    padding-left: 1rem;
    cursor: pointer ;
}

.shenping-list .action-btn:hover {
    color: #FF5722;
}

.shenping-list .action-btn .material-symbols-outlined {
    font-size: 1.2rem;
    transition: transform 0.2s ease-in-out;
}

.shenping-list .action-btn:hover .material-symbols-outlined {
    transform: scale(1.2);
}

/* member list 的样式 */
.member-list { 
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-direction: row;
    align-items: center;
}

.member-card-title{ 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    color: #fff;
}

.member-card-list{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}
.member-card-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    color: #ffffff;
    text-decoration: none;
    background: #333;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
    &:hover {
        transform: scale(1.05);
    }
    img{
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 10px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease-in-out;
        &:hover {
            transform: scale(1.05);
        }
        h4{
            font-size: 1rem;
            font-weight: bold;
            color: #333;
        }
        p{
            font-size: 0.8rem;
            color: #666;
        }
        span{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            text-decoration: none;
            color: #333;
        }
    }
}