/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面基础样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 横幅区域样式 */
.banner {
    background-image: url('images/banner1.jpg');  /* 横幅背景图片 */
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

/* 横幅标题样式 */
.banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);  /* 文字阴影效果 */
}

/* 横幅描述文字样式 */
.banner p {
    font-size: 1.2rem;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 内容区域样式 */
.content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));  /* 响应式网格布局 */
    gap: 2rem;
}

/* 主介绍样式 */
.main-intro {
    grid-column: 1 / -1; /* 横跨所有列 */
    text-align: center;
    background: transparent;
    box-shadow: none;
    margin-bottom: 2rem;
}

.main-intro h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.main-intro p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* 调整其他文章卡片的样式 */
.content article:not(.main-intro) {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.content article:not(.main-intro):hover {
    transform: translateY(-5px);
}

/* 文章标题样式 */
article h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* 文章标题链接样式 */
article h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* 文章标题链接悬停效果 */
article h3 a:hover {
    color: #e74c3c;  /* 红色主题色 */
}

/* 文章描述文字样式 */
article p {
    color: #666;
    line-height: 1.6;
}

/* 页脚样式优化 */
footer {
    background-color: transparent;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* 品牌标识样式 */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo {
    height: 24px;
    width: auto;
}

.brand-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 版权信息样式 */
.copyright {
    font-size: 12px;
    color: #666;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .footer-content {
        padding: 0 1rem;
    }

    .copyright {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
    }
}

/* 响应式布局调整 */
@media (max-width: 768px) {
    /* 移动端横幅文字大小调整 */
    .banner h2 {
        font-size: 2rem;
    }

    .banner p {
        font-size: 1rem;
    }

    /* 移动端导航栏调整 */
    .nav-links {
        display: none;  /* 在移动端隐藏导航链接 */
    }

    /* 移动端内容区域调整 */
    .content {
        grid-template-columns: 1fr;  /* 单列布局 */
    }

    /* 导航栏适配 */
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
    }

    /* 移动端菜单按钮 */
    .menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 1rem;
    }

    /* 导航链接移动端样式 */
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > li {
        width: 100%;
        padding: 0;
    }

    .nav-links a {
        padding: 12px;
        display: block;
    }

    /* 下拉菜单移动端样式 */
    .submenu {
        position: static;
        box-shadow: none;
        width: 100%;
        padding-left: 20px;
    }

    /* 功能卡片移动端样式 */
    .feature-card {
        margin: 1rem 0;
    }

    /* 工具栏移动端样式 */
    .utility-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    /* 时间轴移动端样式 */
    .timeline {
        padding: 1rem;
    }

    .timeline-item {
        flex-direction: column;
    }
}

/* 导航栏下拉菜单样式 */
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 8px 0;
    min-width: 180px;
    z-index: 1000;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    list-style: none;
}

.submenu a {
    display: block;
    padding: 10px 16px;
    color: black;
    text-decoration: none;
    font-size: 14px;
}

.submenu a:hover {
    background-color: #f5f5f5;
}

/* 调整导航栏主菜单项的样式 */
.nav-links > li {
    position: relative;
    padding: 8px 0;
}

.nav-links > li > a {
    padding: 8px 0;
}

/* 工具栏样式 */
.utility-bar {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 2rem;
    background-color: #f5f5f5;
}

.language-selector select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.accessibility-tools {
    display: flex;
    gap: 8px;
    margin-left: 1rem;
}

.accessibility-btn {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .nav-links {
        flex-wrap: wrap;
    }
}

/* 添加时间轴样式 */
.timeline {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1;
}

.timeline-date {
    min-width: 120px;
    text-align: right;
    padding-right: 2rem;
    font-weight: bold;
}

/* 功能区网格布局 */
.features-grid {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* 功能卡片样式 */
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* 功能图标样式 */
.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 28px;
    color: #e74c3c;
}

/* 功能卡片标题 */
.feature-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

/* 功能按钮容器 */
.route-types,
.learning-options,
.interactive-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 功能按钮样式 */
.feature-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    color: #2c3e50;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.feature-btn:hover {
    background: #e74c3c;
    color: white;
}

.feature-btn i {
    font-size: 1.2rem;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* 时间轴区域样式 */
.timeline-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* 板块标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #8B0000;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: #666;
}

/* 导航标签样式 */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #8B0000;
    color: white;
}

/* 时间轴容器样式 */
.timeline-container {
    position: relative;
    background: #FFF8DC;
    padding: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.timeline-wrapper {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-behavior: smooth;
}

/* 时间轴节点样式 */
.timeline-node {
    min-width: 300px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.year-marker {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #8B0000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.timeline-node.active {
    opacity: 1;
    transform: translateY(0);
}

/* 事件卡片样式 */
.event-card {
    position: relative;
    opacity: 1;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.event-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.event-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* 详情按钮样式 */
.detail-btn {
    display: inline-block;
    color: #8B0000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.detail-btn:hover {
    color: #e74c3c;
}

/* 滚动控制按钮样式 */
.timeline-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139,0,0,0.8);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-nav:hover {
    background: #8B0000;
}

.timeline-nav.prev {
    left: 1rem;
}

.timeline-nav.next {
    right: 1rem;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .timeline-wrapper {
        flex-direction: column;
        gap: 3rem;
    }

    .timeline-node {
        min-width: auto;
    }

    .year-marker {
        position: relative;
        top: 0;
        margin-bottom: 1rem;
    }

    .timeline-nav {
        display: none;
    }
}

/* 人物内容样式 */
.people-content {
    padding: 2rem;
    background: white;
    border-radius: 8px;
}

.person-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.person-card h4 {
    color: #8B0000;
    margin-bottom: 1rem;
}

/* 地图区域样式 */
.map-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #8B0000;
}

/* 搜索框样式 */
.search-box {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-box button {
    padding: 0.5rem 1rem;
    background: #8B0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #a00000;
}

/* 地图容器样式 */
#mapContainer {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* 路线规划面板样式 */
#routePanel {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
}

/* 地图版权信息样式 */
.map-copyright {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 1rem;
}

/* 响应式适配 */
@media (max-width: 768px) {
    #mapContainer {
        height: 300px;
    }
    
    .search-box {
        flex-direction: column;
    }
}

/* 导航栏基础样式 */
.main-nav {
    background: #8B0000;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #D4AF37;
    position: relative;
    height: 60px;
}

.nav-logo a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    font-weight: 500;
}

.nav-container {
    display: flex;
    gap: 30px;
    align-items: center;
    height: 100%;
}

/* 导航项样式 */
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item a, 
.nav-item span {
    color: white;
    text-decoration: none;
    font-family: "思源黑体", sans-serif;
    font-size: 16px;
    padding: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.nav-item:hover a,
.nav-item:hover span {
    color: #FFD700;
    transform: translateY(-2px);
}

.nav-item.active a {
    color: #FFD700;
    position: relative;
}

.nav-item.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #D4AF37;
}

/* 下拉菜单样式 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #6A0000;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    min-width: 200px;
    z-index: 1000;
    animation: fadeIn 0.2s ease-in-out;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: #8B0000;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端样式 */
.mobile-menu-toggle {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-container {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #8B0000;
        flex-direction: column;
        gap: 0;
        z-index: 1000;
    }

    .nav-container.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        height: auto;
        border-bottom: 1px solid #D4AF37;
    }

    .nav-item a,
    .nav-item span {
        padding: 16px;
        width: 100%;
        text-align: center;
        display: block;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* 知识题库样式 */
.quiz-container {
    padding: 2rem;
}

.quiz-filters {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.quiz-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.quiz-meta {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    color: #666;
}

.start-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
}

/* 党史微课堂样式 */
.class-container {
    padding: 2rem;
}

.class-card {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.class-image {
    width: 300px;
    height: 200px;
    overflow: hidden;
}

.class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.class-info {
    padding: 1.5rem;
    flex: 1;
}

.watch-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
}

/* 虚拟长征样式 */
.virtual-tour {
    padding: 2rem;
}

.game-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.game-scene {
    width: 100%;
    height: 600px;
    background: #f5f5f5;
}

.game-scene iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-controls {
    padding: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.control-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
}

.progress {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    display: block;
    width: 30%;
    height: 100%;
    background: #4CAF50;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .class-card {
        flex-direction: column;
    }

    .class-image {
        width: 100%;
        height: 200px;
    }

    .game-scene {
        height: 400px;
    }

    .quiz-filters,
    .class-filters {
        flex-wrap: wrap;
    }
}

/* 预定服务页面样式 */
.booking-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    position: relative;
}

.tab-btn.active {
    color: #8B0000;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: #8B0000;
}

/* 用户社区页面样式 */
.community-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-top: 2rem;
}

.post-section {
    margin-bottom: 2rem;
}

.new-post-btn {
    background: #8B0000;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 1rem;
}

.post-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.post-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.post-footer {
    display: flex;
    gap: 2rem;
    color: #666;
    margin-top: 1rem;
}

.community-sidebar {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .community-container {
        grid-template-columns: 1fr;
    }
    
    .booking-tabs {
        flex-wrap: wrap;
    }
    
    .post-images {
        grid-template-columns: 1fr;
    }
}

/* 社区互动样式 */
.post-footer span {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.post-footer span:hover {
    background-color: #f0f0f0;
}

.post-footer span.liked {
    color: #e74c3c;
}

.like-animation {
    animation: likeEffect 0.5s ease;
}

@keyframes likeEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 评论区样式 */
.comment-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.comment-input {
    margin-bottom: 1rem;
}

.comment-input textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 80px;
}

.submit-comment {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #8B0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.comment-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-info {
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: bold;
    margin-right: 1rem;
}

.comment-time {
    color: #666;
    font-size: 0.9rem;
}

.comment-actions {
    margin-top: 0.5rem;
}

.comment-actions span {
    margin-right: 1rem;
    color: #666;
    cursor: pointer;
}

/* 分享菜单样式 */
.share-menu {
    position: absolute;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 0.5rem;
    z-index: 1000;
}

.share-option {
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-option:hover {
    background: #f5f5f5;
}

/* 登录模态框样式 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.modal-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-buttons button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-buttons button:first-child {
    background: #8B0000;
    color: white;
}

.modal-buttons button:last-child {
    background: #f5f5f5;
}

/* 提示消息样式 */
.toast-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    z-index: 1000;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    20% { opacity: 1; transform: translate(-50%, 0); }
    80% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}

/* 用户头像区域样式 */
.user-profile {
    margin-left: auto;
    padding-right: 2rem;
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #8B0000;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .user-profile {
        padding-right: 1rem;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
}
