/* ==========================================================================
   PC 桌面端前台专属样式表 (Premium Design)
   ========================================================================== */

:root {
    /* 核心品牌色 - 更加现代感的靛青渐变 */
    --pc-primary: #6366f1;
    --pc-primary-dark: #4f46e5;
    --pc-primary-light: #c7d2fe;
    --pc-accent: #f43f5e;

    /* 背景色体系 */
    --pc-bg-body: #f1f5f9;
    --pc-bg-card: #ffffff;
    --pc-bg-footer: #6366f1;
    /* Changed to match primary blue */

    --pc-border-light: rgba(226, 232, 240, 0.8);
    --pc-glass-bg: rgba(255, 255, 255, 0.8);
    --pc-glass-border: rgba(255, 255, 255, 0.4);
    --pc-radius-lg: 24px;
    --pc-radius-md: 16px;

    /* 文字体系 */
    --pc-text-main: #1e293b;
    --pc-text-muted: #64748b;
    --pc-text-inverse: #ffffff;

    /* 装饰效果 */
    --pc-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --pc-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --pc-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --pc-glass-bg: rgba(255, 255, 255, 0.7);
    --pc-glass-blur: blur(10px);

    /* 容器版心 */
    --pc-container-width: 1200px;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    background-color: var(--pc-bg-body);
    color: var(--pc-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 顶层 main 需要给固定导航让出空间，但内层 Grid 中的 main 不需要 */
body>main {
    padding-top: 80px;
}

/* 重置嵌套在 Grid 布局中的 main 元素 */
.news-pc-layout main,
.pc-layout-grid main {
    padding-top: 0;
}

/* 隐藏移动端专属组件 */
.bottom-nav {
    display: none !important;
}

/* 容器布局 */
.pc-container {
    width: 100%;
    max-width: var(--pc-container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 顶部导航 (Glassmorphism Header) --- */
.pc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--pc-glass-bg);
    backdrop-filter: var(--pc-glass-blur);
    -webkit-backdrop-filter: var(--pc-glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.pc-header.scrolled {
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--pc-shadow-sm);
}

.pc-header .pc-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 24px;
    color: var(--pc-primary-dark);
}

.pc-logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.pc-nav {
    display: flex;
    gap: 32px;
}

.pc-nav-link {
    text-decoration: none;
    color: var(--pc-text-main);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
    position: relative;
    padding: 8px 0;
}

.pc-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pc-primary);
    transition: width 0.3s ease;
}

.pc-nav-link:hover {
    color: var(--pc-primary);
}

.pc-nav-link:hover::after {
    width: 100%;
}

.pc-nav-link.active {
    color: var(--pc-primary);
    font-weight: 700;
}

.pc-nav-link.active::after {
    width: 100%;
}

.pc-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-pc {
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-pc-primary {
    background: linear-gradient(135deg, var(--pc-primary), var(--pc-primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-pc-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-pc-outline {
    background: transparent;
    border: 2px solid var(--pc-primary);
    color: var(--pc-primary);
}

.btn-pc-outline:hover {
    background: var(--pc-primary-light);
    color: var(--pc-primary-dark);
}

/* --- Hero Section --- */
.pc-hero {
    padding-top: 60px;
    padding-bottom: 80px;
    background: url('/static/images/pc_chamber_hero_bg_1772677824421.png') center/cover no-repeat;
    position: relative;
}

.pc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.8), rgba(248, 250, 252, 0.4));
    z-index: 1;
}

.pc-hero>.pc-container {
    position: relative;
    z-index: 2;
}

.pc-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pc-hero-text h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1e1b4b;
    background: linear-gradient(135deg, #1e1b4b 30%, var(--pc-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pc-hero-text p {
    font-size: 18px;
    color: var(--pc-text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

/* --- Content Sections --- */
.pc-section {
    padding: 80px 0;
}

.pc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.pc-section-title {
    font-size: 32px;
    font-weight: 800;
    color: #1e1b4b;
    position: relative;
    padding-left: 20px;
}

.pc-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 32px;
    background: var(--pc-primary);
    border-radius: 4px;
}

/* --- Premium Cards --- */
.pc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pc-card {
    background: var(--pc-bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--pc-shadow-sm);
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.pc-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--pc-shadow-lg);
    border-color: var(--pc-primary-light);
}

.pc-card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background-color: #f1f5f9;
}

.pc-card-body {
    padding: 20px;
    flex-grow: 1;
}

.pc-card-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--pc-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.pc-card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--pc-text-main);
}

.pc-card-desc {
    font-size: 13px;
    color: var(--pc-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
    line-height: 1.5;
}

.pc-card-footer {
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--pc-text-muted);
}

/* --- Footer --- */
.pc-footer {
    background: var(--pc-bg-footer);
    color: #e0e7ff;
    /* Light indigo for good contrast */
    padding: 40px 0 20px;
}

.pc-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}

.pc-footer-about h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 16px;
}

.pc-footer-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.pc-footer-links {
    list-style: none;
}

.pc-footer-links li {
    margin-bottom: 12px;
}

.pc-footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.pc-footer-links a:hover {
    color: white;
}

.pc-footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
}

/* 动画工具类 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* --- Empty State --- */
.pc-empty-state {
    padding: 32px 20px 48px;
    text-align: center;
    background: var(--pc-bg-card);
    border-radius: var(--pc-radius-lg);
    border: 1px solid var(--pc-border-light);
    box-shadow: var(--pc-shadow-sm);
    margin: 0 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.pc-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    margin-top: 10px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.pc-empty-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--pc-text-main);
    margin-bottom: 12px;
}

.pc-empty-desc {
    font-size: 15px;
    color: var(--pc-text-muted);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 响应式辅助 (针对 PC 各种宽度) */
@media (max-width: 1024px) {
    .pc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pc-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pc-hero-text p {
        margin: 0 auto 40px;
    }
}

/* 侧边栏用户头像全局样式 */
.profile-user-mini {
    text-align: center;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--pc-border-light);
    margin-bottom: 32px;
}

.mini-avatar {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    border: 4px solid var(--pc-bg-body) !important;
    margin: 0 auto 16px !important;
    object-fit: cover !important;
    box-shadow: var(--pc-shadow-md) !important;
    display: block !important;
}

.mini-name {
    font-size: 20px;
    font-weight: 900;
    color: var(--pc-text-main);
    word-break: break-all;
}