/* 全局样式 */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #3498db;
    --accent-color: #00ff9d;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --border-color: #e1e4e8;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html, body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    /* 页面背景图 */
    background-image: url('../images/name.png'); /* 设置背景图片 */
    background-size: cover; /* 覆盖整个区域 */
    background-attachment: fixed; /* 滚动时固定 */
    background-position: center center; /* 图片居中 */
    background-repeat: no-repeat; /* 不重复 */
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* 确保以下区域背景完全透明，不影响整体背景色 */
main, .main-content, .hero, .modern-hero {
    background-color: transparent !important;
}

/* 现代风格导航栏 */
.modern-header {
    width: 100%;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.frosted-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1.5px solid rgba(102,126,234,0.10);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(102,126,234,0.10);
    display: flex;
    align-items: center;
    justify-content: center; /* Center the inner container */
    box-sizing: border-box;
}
.nav-inner-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changed from space-between to flex-start */
    padding: 0 20px; /* Inner padding for content */
    box-sizing: border-box;
}
.modern-logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: 2px;
    /* margin-left: removed */
    margin-right: 32px; /* Add space between logo and nav links */
}
.modern-nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.2rem;
    /* flex-grow: removed */
    /* justify-content: removed */
    /* margin-left: removed */
    flex-grow: 1; /* Allow nav links to take remaining space */
    justify-content: center; /* Center the nav links */
}
.auth-buttons {
    display: flex;
    gap: 15px;
    /* margin-right: removed */
    margin-left: auto; /* Push buttons to the right */
}
.login-btn, .register-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102,126,234,0.2);
}
.login-btn:hover, .register-btn:hover {
    background: linear-gradient(135deg, #5a6eea 0%, #5a3ba2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102,126,234,0.3);
}

.modern-nav-links a {
    color: #f0f0f0; /* 导航文字颜色改为偏白的灰白色 */
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 0;
    /* border-bottom: 2px solid transparent; */ /* 移除，由::after控制 */
    transition: all 0.3s ease;
    position: relative; /* 伪元素定位基准 */
}

.modern-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px; /* 下划线高度 */
    background: #f5576c; /* 下划线颜色，与文字渐变色呼应 */
    transform: scaleX(0); /* 初始状态，隐藏 */
    transform-origin: left; /* 从左侧开始动画 */
    transition: transform 0.3s ease-out; /* 动画效果 */
}

.modern-nav-links a.active,
.modern-nav-links a:hover {
    /* 粉红色系文字渐变 */
    background-image: linear-gradient(90deg, #f093fb, #f5576c, #ffccd2); /* 柔和粉红色渐变 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    /* border-bottom: 2px solid #f5576c; */ /* 移除，由::after控制 */
    transform: translateY(-2px);
}

.modern-nav-links a.active::after,
.modern-nav-links a:hover::after {
    transform: scaleX(1); /* 悬停或激活时显示 */
}

/* 现代 hero 区域 */
.modern-hero {
    background: transparent;
    margin-bottom: 40px;
    padding: 4rem 20px 3rem 20px;
    text-align: center;
}
.modern-hero .hero-content h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.modern-hero .hero-content p {
    color: #555;
    font-size: 1.2rem;
    opacity: 0.93;
}

/* 现代底部 */
.modern-footer {
    width: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    padding: 32px 0 18px 0;
    border-radius: 24px 24px 0 0;
    margin-top: 64px;
    box-shadow: 0 -4px 24px rgba(102,126,234,0.08);
}
.modern-footer .footer-content {
    display: flex;
    justify-content: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto 18px auto;
}
.modern-footer .footer-section h4 {
    color: #ffe082;
    margin-bottom: 10px;
}
.modern-footer .footer-section p,
.modern-footer .footer-section a {
    color: #fff;
    opacity: 0.93;
    text-decoration: none;
    font-size: 1rem;
}
.modern-footer .footer-section a:hover {
    color: #ffe082;
}
.modern-footer .footer-bottom {
    font-size: 1rem;
    opacity: 0.93;
    letter-spacing: 1px;
}

/* 移除粒子和tech-decoration相关样式 */
.tech-decoration, .particle { display: none !important; }

/* 主要内容区域 */
.main-content {
    margin-top: 90px;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: transparent; /* 彻底移除蓝色渐变背景 */
    color: white;
    margin: -2rem -2rem 2rem -2rem;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #333; /* 确保文字在浅色背景上清晰可见 */
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: #555; /* 确保文字在浅色背景上清晰可见 */
}

/* 文章卡片样式 */
.featured-posts {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-posts h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 响应式网格布局优化 */
@media (min-width: 1200px) {
    .post-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .post-grid {
        grid-grid-columns: 1fr;
        gap: 1.5rem;
    }
}

.post-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid #333; /* 黑色边框 */
    position: relative;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-image {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

/* 占位图片样式 */
.placeholder-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    border-radius: 8px;
}

.exam-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ai-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.web3-gradient {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.cloud-gradient {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.mobile-gradient {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.data-gradient {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.security-gradient {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.post-card:hover .placeholder-image {
    transform: scale(1.05);
}

/* 不同类别的渐变背景 */
.web-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.productivity-gradient {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.game-gradient {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.design-gradient {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.career-gradient {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.post-meta .date::before {
    content: '📅';
    margin-right: 0.25rem;
}

.post-meta .category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 不同类别的颜色标识 */
.post-meta .category[data-category="AI技术"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-meta .category[data-category="Web开发"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.post-meta .category[data-category="效率工具"] {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.post-meta .category[data-category="游戏开发"] {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.post-meta .category[data-category="设计思考"] {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.post-meta .category[data-category="职业发展"] {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.post-meta .category::before {
    content: '🏷️';
    margin-right: 0.25rem;
}

/* 不同类别的图标 */
.post-meta .category[data-category="AI技术"]::before {
    content: '🤖';
}

.post-meta .category[data-category="Web开发"]::before {
    content: '💻';
}

.post-meta .category[data-category="效率工具"]::before {
    content: '⚡';
}

.post-meta .category[data-category="游戏开发"]::before {
    content: '🎮';
}

.post-meta .category[data-category="设计思考"]::before {
    content: '🎨';
}

.post-meta .category[data-category="职业发展"]::before {
    content: '📈';
}

.post-content h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.4;
    flex: 1;
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more {
    color: #333; /* 默认颜色 */
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    padding-bottom: 5px; /* 为下划线留出空间 */
    transition: all 0.3s ease;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f5576c; /* 下划线颜色 */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

.read-more:hover {
    background-image: linear-gradient(90deg, #f093fb, #f5576c, #ffccd2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    transform: translateY(-2px);
}

.read-more:hover::after {
    transform: scaleX(1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .frosted-navbar {
        height: 56px; /* Keep consistent height for mobile */
    }
    .nav-inner-container {
        flex-direction: column; /* Stack items vertically */
        height: auto; /* Allow height to adjust based on content */
        padding: 15px 10px; /* Adjust padding for mobile */
        border-radius: 0 0 10px 10px;
        justify-content: center; /* Center content horizontally when stacked */
        align-items: center; /* Center items when stacked */
    }

    .modern-logo {
        margin-left: 0; /* Reset margin for mobile */
        margin-bottom: 15px; /* Add space below logo */
    }

    .modern-nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin: 0; /* Reset margin for mobile */
        width: 100%; /* Take full width */
        margin-bottom: 15px;
    }

    .auth-buttons {
        width: 100%; /* Take full width */
        justify-content: center;
        margin: 0; /* Reset margin for mobile */
        gap: 10px;
    }

    .login-btn, .register-btn {
        flex-grow: 1; /* Buttons share space evenly */
        padding: 10px 15px;
    }

    .main-content {
        margin-top: 90px;
    }
    .modern-hero {
        padding: 3rem 16px 2rem 16px;
    }
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* 半透明黑色背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001; /* 确保在最上层 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px; /* 限制弹窗宽度 */
    text-align: center;
    position: relative;
    transform: translateY(20px); /* 初始位置稍向下 */
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0); /* 激活时回到原位 */
}

.modal-content h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: calc(100% - 20px); /* 减去内边距 */
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
    margin-top: 15px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #5a6eea 0%, #5a3ba2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: #666;
}

.switch-auth {
    margin-top: 25px;
    font-size: 0.95rem;
    color: #777;
}

.switch-auth a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.switch-auth a:hover {
    text-decoration: underline;
}

/* 文章卡片特殊效果 */
.post-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.post-card:hover::after {
    opacity: 0.05;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.post-meta .date::before {
    content: '📅';
    margin-right: 0.25rem;
}

.post-meta .category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.post-meta .category::before {
    content: '🏷️';
    margin-right: 0.25rem;
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-card .read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.post-card:hover .read-more {
    color: var(--secondary-color);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.article-detail {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.article-header {
    padding: 2rem;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-image:hover img {
    transform: scale(1.05);
}

.article-body {
    padding: 2rem;
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    color: var(--primary-color);
}

.article-body p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.case-study {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.case-study img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.case-study p {
    margin-bottom: 1rem;
}

@keyframes articleAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 液态玻璃导航栏升级 */
.frosted-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1.5px solid rgba(102,126,234,0.10);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(102,126,234,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.frosted-bar-bg { display: none !important; }
.frosted-hero-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 3.5rem 0 2.5rem 0;
    max-width: 900px;
    margin: 0 auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0 0 32px 32px;
    backdrop-filter: none;
}
.frosted-hero-overlay .hero-content h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}
.frosted-hero-overlay .hero-content p {
    color: #555;
    font-size: 1.2rem;
    opacity: 0.93;
    text-align: center;
}
@media (max-width: 768px) {
    .frosted-navbar {
        padding: 0 16px;
        height: 56px;
    }
    .main-content {
        margin-top: 90px;
    }
    .frosted-hero-overlay {
        padding: 2.2rem 0 1.2rem 0;
    }
}

.hero-card {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border-radius: 40px;
    box-shadow: 0 8px 32px rgba(102,126,234,0.10), 0 2px 8px rgba(102,126,234,0.06);
    max-width: 900px;
    margin: 0 auto;
    padding: 3.5rem 0 2.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero-card .hero-content h2 {
    color: #222;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}
.hero-card .hero-content p {
    color: #555;
    font-size: 1.2rem;
    opacity: 0.93;
    text-align: center;
}

/* 移除hero-card和frosted-hero-overlay相关样式 */
.hero-card, .frosted-hero-overlay {
    display: none !important;
}

/* 兼容移动端 */
@media (max-width: 768px) {
    .frosted-navbar {
        padding: 0 16px;
        height: 56px;
    }
    .nav-inner-container {
        padding: 0 16px;
    }
    .main-content {
        margin-top: 90px;
    }
    .modern-hero {
        padding: 3rem 16px 2rem 16px;
    }
}

/* 省考资料页面 返回首页 按钮 */
.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.back-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f5576c; /* 粉色下划线 */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    background-image: linear-gradient(90deg, #f093fb, #f5576c, #ffccd2); /* 粉红色系文字渐变 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-btn:hover::after {
    transform: scaleX(1);
}

.subject-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.35s cubic-bezier(.4,2,.6,1), box-shadow 0.35s cubic-bezier(.4,2,.6,1);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 340px;
    border: 1px solid #333; /* 黑色边框 */
}

/* 文章页面样式 */
.article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.back-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f5576c;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.back-btn:hover::after {
    transform: scaleX(1);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.article-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.article-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #4a5568;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #4a5568;
    margin: 30px 0 15px 0;
}

.article-content p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 20px;
    text-align: justify;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.article-meta .date {
    color: #718096;
    font-size: 0.95rem;
}

.article-meta .category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-page {
        padding: 15px;
    }
    
    .article-content {
        padding: 25px;
    }
    
    .article-content h1 {
        font-size: 2rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .article-content p {
        font-size: 1rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* Live2D看板娘样式 */
#live2d-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

#live2d-widget .live2d-widget-container {
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#live2d-widget .live2d-widget-container canvas {
    border-radius: 12px !important;
}

/* 看板娘按钮样式 */
#live2d-widget .live2d-widget-tool {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
}

#live2d-widget .live2d-widget-tool:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

/* 看板娘对话框样式 */
#live2d-widget .live2d-widget-dialog {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
}

#live2d-widget .live2d-widget-dialog .live2d-widget-dialog-content {
    color: #333 !important;
    font-family: 'Noto Sans SC', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #live2d-widget {
        bottom: 10px !important;
        right: 10px !important;
        transform: scale(0.8) !important;
    }
}

@media (max-width: 480px) {
    #live2d-widget {
        transform: scale(0.7) !important;
    }
}

/* 用户数据存储展示区域样式 */
.user-stats-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.user-stats-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.stats-icon {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.stats-info h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    opacity: 0.9;
    font-weight: 500;
}

.stats-info p {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.recent-users-section {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.recent-users-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.recent-users-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.user-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.user-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-nickname {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0.2rem 0;
    font-size: 0.9rem;
}

.user-join-date {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.no-users {
    text-align: center;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-stats-section {
        padding: 1.5rem;
        margin: 2rem auto;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .stats-info p {
        font-size: 1.5rem;
    }
    
    .recent-users-list {
        grid-template-columns: 1fr;
    }
    
    .user-item {
        padding: 0.8rem;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    #live2d-widget {
        transform: scale(0.7) !important;
    }
} 