:root {
    --primary-color: #3498db;
    --secondary-color: #ff6b6b;
    --accent-color: #ffd93d;
    --success-color: #4cd964;
    --text-primary: #2c3e50;
    --text-secondary: #666;
    --bg-light: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, #2c7cff, #1a5dff);
    --nav-bg: linear-gradient(135deg, #1a237e, #0d47a1);
    --nav-bg-solid: #1a237e;
    --primary-color-rgb: 52, 152, 219;
    --gradient-1: linear-gradient(135deg, #3498db, #2980b9);
    --gradient-2: linear-gradient(135deg, #2c3e50, #34495e);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    padding-top: 50px;
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

.dot {
    position: relative;
    display: inline-block;
    padding: 0 6px;
    font-size: 12px;
    text-align: center;
    background-color: #ff5722;
    color: #fff;
    border-radius: 10px;
    height: unset;
    top: -15px;
    left: -15px
}

.hide {
    display: none;
}

.message-icon {
    position: relative; /* 设置为相对定位，以便子元素绝对定位 */
    margin-left: 8px; /* 图标与用户名之间的间距 */
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    vertical-align: middle; /* 垂直居中对齐 */
    text-decoration: none; /* 去掉链接下划线 */
}

.message-icon:hover {
    color: #0056b3; /* 悬停时的颜色变化 */
}

/* 顶部导航栏基础样式 */
.common-header-main {
    background: var(--nav-bg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.common-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* 针对中等屏幕调整header容器 */
@media (max-width: 1400px) and (min-width: 1024px) {
    .common-header-content {
        max-width: 100%; /* 使用全宽 */
        padding: 0 0.5rem; /* 减少内边距 */
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .common-header-content {
        max-width: 100%;
        padding: 0 0.3rem; /* 进一步减少内边距 */
    }
}

/* Logo 样式 */
.common-header-content .common-header-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.common-header-content .common-header-logo img {
    height: 45px;
    width: auto;
    display: block;
}

.common-header-nav-left .common-header-logo img,
.common-header-nav-left .common-header-logo {
    opacity: 1;
    filter: none;
}

.common-header-logo i {
    font-size: 1.8rem;
}

.common-header-logo img {
    height: 40px;
    width: auto;
}

.common-header-logo span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* 导航栏样式 */
.common-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background: var(--nav-bg-solid);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-radius: 0;
}

/* Logo 样式 */
.common-header-nav-left {
    display: flex;
    align-items: center;
    padding: 0 15px;
}

/* 导航链接样式 */
.common-header-nav-links {
    margin-left: auto !important;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem; /* 减少默认间距 */
    padding: 0;
    list-style: none;
}

.common-header-nav-item {
    position: relative;
    padding: 0.5rem 0;
}

.common-header-nav-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.common-header-nav-item a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.common-header-nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.common-header-nav-item a:hover::after {
    width: 80%;
}

/* 登录状态样式 */
.common-header-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 50px; /* 增加与左侧菜单的间距 */
}

/* 固定a标签的消息链接样式 */
.common-header-nav-right > a {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 5px;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
}

.common-header-nav-right > a:hover {
    color: #fff !important;
}

/* 未登录状态按钮 */
.common-header-login-btn, .common-header-register-btn {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.common-header-login-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.common-header-register-btn {
    background: #fff;
    color: var(--nav-bg-solid);
}

.common-header-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.common-header-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 已登录状态样式 */
.common-header-user-info {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    gap: 10px;
    padding: 0 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.common-header-user-info:hover {
    background: rgba(255, 255, 255, 0.1);
}

.common-header-user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.common-header-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.common-header-user-menu-chevron {
    color: #fff;
}

.common-header-username {
    color: #fff;
    font-weight: 500;
}

/* 下拉菜单样式 */
.common-header-dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: #fff;
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.common-header-user-info:hover .common-header-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.common-header-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.common-header-dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.common-header-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
}

.common-header-logout-btn {
    color: #dc3545 !important;
}

.common-header-logout-btn:hover {
    background: #fff5f5 !important;
}

/* 二级菜单 */
.common-header-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    animation: fadeIn 0.3s ease;
}

/* 三级菜单 */
.common-header-third-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff;
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    animation: fadeIn 0.3s ease;
}

.common-header-nav-item:hover > .common-header-submenu,
.common-header-submenu li:hover > .common-header-third-menu {
    display: block;
}

/* 子菜单样式 */
.common-header-submenu a, .common-header-third-menu a {
    padding: 0.8rem 1.5rem;
    display: block;
    color: var(--text-primary) !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.common-header-submenu a:hover, .common-header-third-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color) !important;
    padding-left: 2rem;
}

/* 移动端菜单按钮 */
.common-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* 移动端导航菜单 */
.common-mobile-nav {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
}

.common-mobile-nav.active {
    display: block;
}

.common-mobile-nav-content {
    padding: 1rem;
}

/* 移动端菜单组样式 */
.common-mobile-nav-group {
    margin-bottom: 0.5rem;
}

.common-mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.common-mobile-nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.common-mobile-nav-title {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.common-mobile-nav-title i:first-child {
    margin-right: 0.8rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.common-mobile-nav-title span {
    flex: 1;
}

.common-mobile-nav-title i:last-child {
    margin-left: auto;
    font-size: 1rem;
    color: #666;
    transition: transform 0.3s ease;
}

/* 子菜单样式 */
.common-mobile-submenu {
    margin-left: 2.5rem;
    display: none;
}

.common-mobile-submenu.active {
    display: block;
}

.common-mobile-submenu-group {
    padding: 0.5rem 0;
}

.common-mobile-submenu-title {
    padding: 0.8rem 1rem;
    color: #333;
    text-decoration: none;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.common-mobile-submenu-title:hover {
    background: rgba(0, 0, 0, 0.05);
}

.common-mobile-submenu-items {
    margin-left: 1rem;
    padding: 0.5rem 0;
}

.common-mobile-submenu-item {
    display: block;
    padding: 0.8rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.common-mobile-submenu-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* 移动端登录注册按钮 */
.common-mobile-login-buttons {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.common-mobile-login-btn, .common-mobile-register-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.common-mobile-login-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-right: 0.5rem;
}

.common-mobile-register-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    margin-left: 0.5rem;
}

/* 移动端用户信息 */
.common-mobile-user-info {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.common-mobile-message-link, .common-mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.common-mobile-message-link i, .common-mobile-nav-link i {
    margin-right: 0.8rem;
    color: var(--primary-color);
}

.common-mobile-badge {
    display: inline-block;
    background: #ff5722;
    color: #fff;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.common-mobile-logout-btn {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: #dc3545;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
}

.common-mobile-logout-btn i {
    margin-right: 0.8rem;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .common-header-content {
        height: 50px;
        padding: 0 1rem;
    }

    .common-header-content .common-header-logo img {
        height: 32px;
    }

    .common-header-nav {
        display: none;
    }

    .common-menu-toggle {
        display: block;
    }

    .common-mobile-nav {
        display: none;
    }

    .common-mobile-nav.active {
        display: block;
    }

    .common-mobile-nav-content {
        display: block;
    }
}

/* 针对15寸屏幕等中型屏幕的优化 */
@media (max-width: 1400px) and (min-width: 1024px) {
    .common-header-nav {
        padding: 0.8rem 2%; /* 减少左右内边距 */
    }
    
    .common-header-nav-links {
        gap: 0.5rem; /* 进一步减少菜单项间距 */
    }
    
    .common-header-nav-item a {
        padding: 0.5rem 0.8rem; /* 减少菜单项内边距 */
        font-size: 0.95rem; /* 稍微减小字体 */
    }
    
    .common-header-nav-right {
        margin-left: 30px; /* 减少右侧区域的左边距 */
        gap: 0.8rem; /* 减少右侧元素间距 */
    }
}

/* 针对更小的笔记本屏幕优化 */
@media (max-width: 1200px) and (min-width: 1024px) {
    .common-header-nav {
        padding: 0.8rem 1.5%; /* 进一步减少内边距 */
    }
    
    .common-header-nav-links {
        gap: 0.4rem; /* 进一步减少间距 */
    }
    
    .common-header-nav-item a {
        padding: 0.5rem 0.6rem; /* 进一步减少内边距 */
        font-size: 0.9rem; /* 进一步减小字体 */
    }
    
    .common-header-nav-right {
        margin-left: 20px; /* 进一步减少边距 */
        gap: 0.6rem;
    }
    
    .common-header-login-btn, .common-header-register-btn {
        padding: 0.4rem 1rem; /* 减少按钮内边距 */
        font-size: 0.9rem;
    }
    
    .common-header-username {
        font-size: 0.9rem; /* 减小用户名字体 */
    }
    
    /* 优化子菜单在中等屏幕下的显示 */
    .common-header-submenu {
        min-width: 180px; /* 减少子菜单最小宽度 */
    }
    
    .common-header-submenu a, .common-header-third-menu a {
        padding: 0.6rem 0.8rem; /* 减少子菜单项内边距 */
        font-size: 0.9rem;
    }
    
    .common-header-dropdown-menu {
        min-width: 180px; /* 减少下拉菜单宽度 */
    }
    
    .common-header-dropdown-menu li a {
        padding: 0.6rem 1rem; /* 减少下拉菜单项内边距 */
        font-size: 0.9rem;
    }
}

/* 针对小笔记本屏幕的额外优化 */
@media (max-width: 1024px) and (min-width: 769px) {
    .common-header-nav {
        padding: 0.8rem 1%; /* 最小化内边距 */
    }
    
    .common-header-nav-links {
        gap: 0.3rem; /* 最小化菜单间距 */
    }
    
    .common-header-nav-item a {
        padding: 0.4rem 0.5rem; /* 最小化菜单项内边距 */
        font-size: 0.85rem; /* 进一步减小字体 */
        white-space: nowrap; /* 防止文字换行 */
    }
    
    .common-header-nav-right {
        margin-left: 15px; /* 最小化右侧边距 */
        gap: 0.5rem;
    }
    
    .common-header-login-btn, .common-header-register-btn {
        padding: 0.3rem 0.8rem; /* 最小化按钮内边距 */
        font-size: 0.85rem;
    }
    
    .common-header-username {
        font-size: 0.85rem;
        max-width: 100px; /* 限制用户名最大宽度 */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* 消息图标优化 */
    .common-header-message-icon {
        font-size: 18px; /* 减小图标尺寸 */
    }
    
    /* 子菜单进一步优化 */
    .common-header-submenu {
        min-width: 160px;
    }
    
    .common-header-submenu a, .common-header-third-menu a {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
    
    .common-header-dropdown-menu {
        min-width: 160px;
    }
    
    .common-header-dropdown-menu li a {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* PC端隐藏移动端菜单 */
@media (min-width: 769px) {
    .common-mobile-nav,
    .common-mobile-nav-content,
    .common-menu-toggle {
        display: none !important;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 轮播图样式 */
.common-carousel-section {
    width: 100%;
    margin: 30px auto 0;
    position: relative;
    overflow: hidden;
}

.common-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.common-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.common-carousel-slide {
    min-width: 100%;
    width: 100%;
    position: relative;
    height: 100%;
    flex-shrink: 0;
}

.common-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.common-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.common-carousel-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.common-carousel-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.common-carousel-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.common-carousel-button {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    transition: opacity 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.common-carousel-button:hover {
    opacity: 0.8;
}

.common-carousel-button.prev {
    left: 20px;
}

.common-carousel-button.next {
    right: 20px;
}

.common-carousel-button i {
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.common-carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.common-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.common-carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .common-carousel-section {
        margin: 0 auto 0 !important;
    }
    .common-carousel {
        height: 300px;
    }

    .common-carousel-content h2 {
        font-size: 1.5rem;
    }

    .common-carousel-content p {
        font-size: 1rem;
    }

    .common-carousel-controls {
        bottom: 1rem;
    }

    .common-carousel-button {
        width: 32px;
        height: 32px;
    }
}

/* 页脚样式 */
.common-footer {
    background: var(--gradient-2);
    color: #fff;
    padding: 1rem 0 1rem;
}

.common-footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.common-footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 1rem;
}

.common-footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.common-footer-logo img {
    height: 45px;
    margin-bottom: 1rem;
}

.common-footer-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.common-footer-links {
    list-style: none;
    padding: 0;
}

.common-footer-links-item {
    margin-bottom: 0.8rem;
}

.common-footer-links-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.common-footer-links-item a:hover {
    color: #fff;
    transform: translateX(5px);
}

.common-footer-contact-info p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.common-footer-contact-info i {
    color: var(--accent-color);
}

.common-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.common-footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.common-footer-copyright {
    color: rgba(255, 255, 255, 0.6);
}

.common-footer-visitor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.common-footer-extra {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.common-footer-extra a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.common-footer-extra a:hover {
    color: #fff;
}

.common-footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* 悬浮按钮样式 */
.common-float-buttons {
    position: fixed;
    right: 2rem;
    bottom: 6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.common-float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.common-float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.common-float-btn[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-right: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.common-float-btn[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
}

/* 返回顶部按钮 */
.common-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
}

.common-back-to-top:hover {
    background: var(--nav-bg-solid);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 欢迎提示样式 */
.common-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(120%);
    transition: all 0.3s ease;
    z-index: 1000;
}

.common-toast.show {
    transform: translateX(0);
}

.common-toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.common-toast-content i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.common-toast-message {
    display: flex;
    flex-direction: column;
}

.common-toast-message span {
    font-weight: 500;
    color: var(--text-primary);
}

.common-toast-message small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.common-toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.common-toast-close:hover {
    color: var(--text-primary);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .common-footer {
        padding: 1rem 0 1.5rem;
    }

    .common-footer-content {
        padding: 0 1rem;
    }

    .common-footer-main {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .common-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .common-footer-bottom-left {
        flex-direction: column;
        gap: 1rem;
    }

    .common-float-buttons {
        right: 1rem;
        bottom: 5rem;
    }

    .common-back-to-top {
        right: 1rem;
        bottom: 1rem;
    }

    .common-toast {
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }
}

/* 添加徽章相关样式 */
.common-header-message-icon {
    color: #fff;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.common-header-badge {
    position: absolute;
    top: -3px;
    right: -6px;
    background-color: #ff5722;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border: 1px solid #fff;
}

/* 通用面包屑导航样式 */
.common-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding: 0;
    position: relative;
    background: none;
    border: none;
}

.common-breadcrumb-item {
    color: #718096;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    letter-spacing: 0.3px;
}

.common-breadcrumb-home {
    color: #4a5568;
}

.common-breadcrumb-item:hover {
    color: #3182ce;
}

.common-breadcrumb i {
    font-size: 12px;
    margin-right: 6px;
    opacity: 0.8;
}

.common-breadcrumb-divider {
    margin: 0 8px;
    color: #CBD5E0;
    font-size: 12px;
    user-select: none;
}

.common-breadcrumb-current {
    color: #2D3748;
    font-weight: 600;
}

@media (max-width: 768px) {
    .common-breadcrumb {
        margin-bottom: 20px;
    }
    
    .common-breadcrumb-item, .common-breadcrumb-current {
        font-size: 13px;
    }
}