/* 全局样式 */
:root {
    --primary-color-rgb: 18, 42, 80; /* 对应--primary-color的RGB值 */ 
    --primary-color: #1a3a6c; /* 深蓝色作为主色调 */
    --primary-light: #2c5ca0; /* 主色调的亮色版本 */
    --primary-dark: #122a50; /* 主色调的暗色版本 */
    --secondary-color: #c41e3a; /* 红色作为辅助色调 */
    --secondary-light: #e63e5c; /* 辅助色调的亮色版本 */
    --secondary-dark: #9c1730; /* 辅助色调的暗色版本 */
    --text-primary: #333; /* 主要文字颜色 */
    --text-secondary: #666666; /* 次要文字颜色 */
    --text-light: #999999; /* 浅色文字 */
    --background-light: #f9f9f9; /* 浅色背景 */
    --background-white: #ffffff; /* 白色背景 */
    --border-color: #e0e0e0; /* 边框颜色 */
    --success-color: #4caf50; /* 成功状态颜色 */
    --warning-color: #ff9800; /* 警告状态颜色 */
    --error-color: #f44336; /* 错误状态颜色 */
    --info-color: #2196f3; /* 信息状态颜色 */
    --accent-color: #f8f9fa; /* 浅灰色作为强调色 */
    --text-color: #333; /* 主要文字颜色 */
    --light-text: #fff; /* 浅色文字 */
    --border-color: #e0e0e0; /* 边框颜色 */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    --transition: all 0.3s ease; /* 过渡效果 */	
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-header h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    color: #666;
    font-size: 16px;
}

.section-header .more-link {
    position: absolute;
    right: 0;
    top: 10px;
    color: var(--primary-color);
    font-size: 14px;
    display: flex;
    align-items: center;
}

.section-header .more-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.section-header .more-link:hover {
    color: var(--secondary-color);
}

.section-header .more-link:hover i {
    transform: translateX(3px);
}

section {
    padding: 60px 0;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-register {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: 1px solid var(--secondary-color);
}

.btn-register:hover {
    background-color: #a51930;
    border-color: #a51930;
}

.btn-ai, .btn-service {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-ai:hover, .btn-service:hover {
    background-color: #122a50;
    border-color: #122a50;
}

/* 通用图片占位符样式 */
.place-img {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
}
.place-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.place-img.no-image::before {
    content: "暂无图片";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 18px;
	letter-spacing:1px;
    font-weight: 500;
    z-index: 1;
}
.place-img.no-image img {
    opacity: 0;
}

/* 头部导航 */
.header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

/* Logo和口号样式 */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo img {
    height: 42px;
    margin-bottom: 5px;
}

.slogan {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}

@media (max-width: 992px) {
    .slogan {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .slogan {
        display: none;
    }
}

.main-nav > ul {
    display: flex;
    gap: 30px;
}

.main-nav ul li {
    position: relative;
}
/* 导航栏选中项下方线条 */
.main-nav ul li a.active {
    position: relative;
}

.main-nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* 鼠标悬停时也显示线条 */
.main-nav ul li a:not(.active):hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    opacity: 0.7;
    transition: var(--transition);
}

.main-nav ul li a {
    position: relative;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav ul li a.active,
.main-nav ul li a:hover {
    color: var(--secondary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background-color: #fff;
    box-shadow: var(--shadow);
    border-radius: 4px;
    min-width: 110px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
	padding:0 20px 10px 20px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    padding: 10px 15px;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 用户登录后样式 */
.user-logged,.user-not-logged {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-message-count {
    position: relative;
    color: var(--text-color);
    font-size: 18px;
}

.message-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.user-profile:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
    color: var(--text-color);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 150px;
    padding: 10px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.user-profile:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-color);
    transition: var(--transition);
}

.user-dropdown a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

/* 页脚 */
.footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
	flex-direction:row;
    gap: 80px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
	filter: brightness(0) invert(1);
}

.footer-column p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}
.footer-column h3 {
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-bottom a {
    opacity: 0.7;
    font-size: 14px;
    transition: var(--transition);
}
.footer-bottom p > a {
    opacity: 1;
}
.footer-bottom a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* 页脚二维码样式 */
.footer .qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.footer .qrcode-container img {
    width: 120px;
    height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.footer .qrcode-container p {
    margin-top: 10px;
    font-size: 14px;
    color: #fff;
    text-align: center;
}

/* 调整快速链接列表样式，使其分为两列显示 */
.footer .footer-column:nth-child(1) {
	max-width:290px;
}
.footer .footer-column:nth-child(2) {
	flex:1;
}

/* 公共部件-检索 */
.hero {
    background: linear-gradient(rgba(26, 58, 108, 0.8), rgba(26, 58, 108, 0.8)), url('../images/bg0.jpg') no-repeat center/cover;
    color: var(--light-text);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto 30px;
    box-shadow: var(--shadow);
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
}

.search-box input:focus {
    box-shadow: none;
    border: none;
    outline: none;
}

.search-box button {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.search-box button:hover {
    background-color: #a51930;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-link {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.quick-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* 每日法律科普小知识 - 全屏背景版 */
.daily-legal-tips-fullwidth {
    position: relative;
}

.tips-background {
    background: linear-gradient(rgba(26, 58, 108, 0.8), rgba(26, 58, 108, 0.8)), url('https://images.unsplash.com/photo-1589391886645-d51941baf7fb?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center/cover;
    background-size: cover;
    position: relative;
    padding: 40px 0;
}

.tips-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 42, 80, 0.85) 0%, rgba(18, 42, 80, 0.7) 100%);
    z-index: 1;
}

.tips-card-fullwidth {
    position: relative;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    margin: 0 auto;
}

.tips-card-fullwidth .tips-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: transparent;
    padding: 0;
}

.tips-card-fullwidth .tips-header i {
    font-size: 28px;
    margin-right: 15px;
    color: var(--secondary-color);
    animation: pulse 2s infinite;
}

.tips-card-fullwidth .tips-header h3 {
    font-size: 24px;
    margin: 0;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.tips-card-fullwidth .tips-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.tips-card-fullwidth .tips-content {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.tips-card-fullwidth .tips-text {
    flex: 1;
    padding-right: 30px;
}

.tips-card-fullwidth .tips-text h4 {
    font-size: 22px;
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
}

.tips-card-fullwidth .tips-text p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.tips-card-fullwidth .tips-text strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.tips-card-fullwidth .tips-image {
    width: 250px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.tips-card-fullwidth .tips-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);    
}

.tips-card-fullwidth:hover .tips-image img {
    transform: scale(1.1);
}

.tips-card-fullwidth .tips-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background-color: transparent;
}

.tips-card-fullwidth .tips-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tips-card-fullwidth .tips-tags span {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.tips-card-fullwidth .tips-tags span:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.tips-card-fullwidth .more-tips {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    background-color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 4px;
}

.tips-card-fullwidth .more-tips i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.tips-card-fullwidth .more-tips:hover {
    background-color: #ff7e33;
}

.tips-card-fullwidth .more-tips:hover i {
    transform: translateX(3px);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .tips-card-fullwidth .tips-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tips-card-fullwidth .tips-text {
        padding-right: 0;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .tips-card-fullwidth .tips-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .tips-background {
        padding: 30px 0;
    }
    
    .tips-card-fullwidth .tips-header h3 {
        font-size: 20px;
    }
    
    .tips-card-fullwidth .tips-text h4 {
        font-size: 18px;
    }
    
    .tips-card-fullwidth .tips-text p {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .tips-background {
        padding: 25px 0;
    }
    
    .tips-card-fullwidth .tips-header {
        margin-bottom: 15px;
    }
    
    .tips-card-fullwidth .tips-header i {
        font-size: 22px;
    }
    
    .tips-card-fullwidth .tips-header h3 {
        font-size: 18px;
    }
    
    .tips-card-fullwidth .tips-text h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .tips-card-fullwidth .tips-text p {
        font-size: 14px;
    }
    
    .tips-card-fullwidth .tips-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tips-card-fullwidth .tips-tags {
        margin-bottom: 15px;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	animation: modalFadeIn 0.3s;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 20px 15px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    color: #333;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--secondary-color);
}
.ai-modal .close-btn:hover {
    color: var(--primary-light);
}
/* 登录弹窗 */
.login-options {
    text-align: center;
}

.wechat-login {
    margin-bottom: 20px;
}

.wechat-qrcode-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 4px;
}

.wechat-qrcode-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.alignc {
	text-align:center;
}


/* AI咨询弹窗 */
.ai-modal {
    max-width: 750px;
    padding: 0;
    overflow: hidden;
}

.ai-header {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-avatar {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.ai-info h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.ai-info p {
    opacity: 0.8;
    font-size: 14px;
}

.chat-container {
    height: 550px;
    display: flex;
    flex-direction: column;
	overflow-y: auto;
}

.modal .chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.ai-modal .message {
    display: flex;
    flex-direction: column;
}

.modal .message-content {
    padding: 12px 15px;
    border-radius: 8px;
    position: relative;
}

.modal .message-time {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.ai-message {
    align-items: flex-start;
}

.ai-message .message-content {
    background-color: #f0f2f5;
    color: var(--text-color);
}

.user-message .message-content {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.chat-input {
    display: flex;
    border-top: 1px solid var(--border-color);
    padding: 15px;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.chat-input button {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    width: 40px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.chat-input button:hover {
    background-color: #122a50;
}

/* 客服弹窗 */
.service-modal {
    max-width: 750px;
    padding: 0;
    overflow: hidden;
}

.service-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-avatar {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.service-info h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.service-info p {
    opacity: 0.8;
    font-size: 14px;
}

.service-message .message-content {
    background-color: #f0f2f5;
    color: var(--text-color);
}

/* 浮动按钮 */
.floating-buttons {
    position: fixed;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99;
    transform: translateY(-50%);
    top: 50%;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.floating-btn.ai-btn {
    background-color: var(--secondary-color);
}

/* 微信公众号浮动按钮样式 */
.wechat-btn {
    position: relative;
    background-color: #07C160; /* 微信官方绿色 */
}

.wechat-qrcode {
    position: absolute;
    right: 60px;
    bottom: 0;
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 150px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.wechat-btn:hover .wechat-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.wechat-qrcode img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.wechat-qrcode p {
    margin-top: 8px;
    font-size: 12px;
    color: #333;
}

/* 法律热线按钮样式 */
.hotline-btn {
    position: relative;
    background-color: #f39c12;
}

.hotline-info {
    position: absolute;
    right: 60px;
    bottom: 0;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 200px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.hotline-btn:hover .hotline-info {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.hotline-info h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 16px;
}

.phone-number {
    font-size: 20px;
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 5px;
}

.service-time {
    font-size: 12px;
    color: #666;
}

/* 调整浮动按钮间距 */
.floating-buttons {
    gap: 12px;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--light-text);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 工具提示 */
.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--light-text);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 5px;
}

.tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    margin-bottom: -5px;
    z-index: 10;
}

/* 版式二，在线咨询弹窗 */
.chat-body {
    height: 550px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 80%;
}

.system-message {
    align-self: center;
    background-color: var(--background-light);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    max-width: 90%;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    background-color: var(--background-light);
    padding: 10px 15px;
    border-radius: var(--radius-md);
    position: relative;
}

.bot-message .message-content {
    border-top-left-radius: 0;
}

.user-message .message-content {
    background-color: var(--primary-light);
    color: white;
    border-top-right-radius: 0;
}

.message-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
	gap: 15px;
}

.message-name {
    font-weight: 500;
}

.message-time {
    color: var(--text-light);
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.message-text {
    font-size: 16px;
    line-height: 1.5;
}

.chat-input-o {
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.chat-input-o textarea {
    width: 100%;
    height: 60px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    resize: none;
    font-family: var(--font-family);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.chat-input-o textarea:focus {
    border-color: var(--primary-color);
}

.input-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.upload-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.upload-btn:hover {
    color: var(--primary-color);
}

.send-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.send-btn i {
    margin-right: 5px;
}

.send-btn:hover {
    background-color: var(--primary-dark);
}
.send-btn:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.upload-btn:disabled {
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

/* 图片消息样式 */
.message-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.message-image:hover {
    transform: scale(1.02);
}

/* 文件消息样式 */
.message-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    max-width: 300px;
}

.user-message .message-file {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.message-file:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.user-message .message-file:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 18px;
    flex-shrink: 0;
}

.user-message .file-icon {
    background-color: rgba(255, 255, 255, 0.3);
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.file-size {
    font-size: 12px;
    opacity: 0.7;
}

.file-download {
    color: var(--primary-color);
    font-size: 16px;
    transition: var(--transition);
}

.user-message .file-download {
    color: rgba(255, 255, 255, 0.8);
}

.file-download:hover {
    transform: scale(1.1);
}

/* 文件上传隐藏输入 */
.file-input {
    display: none;
}

/* 上传进度条 */
.upload-progress {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar {
    height: 100%;
    background-color: var(--success-color);
    transition: width 0.3s ease;
    width: 0%;
}
/* 连接状态指示器 */
.connection-status {
    position: absolute;
	top: 55px;
    left: 320px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    opacity: 0.9;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--error-color);
    animation: linkpulse 2s infinite;
}

.status-indicator.connected {
    background-color: var(--success-color);
}

.status-indicator.connecting {
    background-color: var(--warning-color);
}

@keyframes linkpulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 消息状态 */
.message-status {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 2px;
}

.user-message .message-status {
    color: rgba(255, 255, 255, 0.6);
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background-color: var(--error-color);
}

.notification.success {
    background-color: var(--success-color);
}

.notification.warning {
    background-color: var(--warning-color);
}

/*登录、支付模态框*/
/* .modal { */
    /* display: none; */
    /* position: fixed; */
    /* top: 0; */
    /* left: 0; */
    /* width: 100%; */
    /* height: 100%; */
    /* background-color: rgba(0, 0, 0, 0.5); */
    /* z-index: 1000; */
    /* align-items: center; */
    /* justify-content: center; */
/* } */

/* .modal-content { */
    /* background-color: #fff; */
    /* border-radius: 8px; */
    /* width: 450px; */
    /* max-width: 90%; */
    /* max-height: 90vh; */
    /* overflow-y: auto; */
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); */
    /* animation: modalFadeIn 0.3s; */
/* } */


/* .modal-body { */
    /* padding: 20px; */
/* } */

/* 登录弹窗样式2 */
.login-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.login-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.login-tab:hover {
    color: var(--primary-color);
}

.login-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.login-pane {
    display: none;
}

.login-pane.active {
    display: block;
}

.qrcode-login {
    text-align: center;
    padding: 20px 0;
}
.login-pane .qrcode-container {
	position: relative;
    width: 350px;
    height: 250px;
    margin: 0 auto 20px;
    border: 1px solid var(--border-color);
    padding: 18px;
    border-radius: 4px;
}

.login-pane .qrcode-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-tips {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.login-form .input-wrapper {
    position: relative;
}

/* 验证码输入框样式 */
.login-form .input-wrapper.verification-code {
    display: flex;
}

.login-form .input-wrapper.verification-code input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.btn-send-code {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 15px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-send-code:hover {
    background-color: #122a50;
}

.btn-send-code.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.login-form .input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.login-form .input-wrapper input {
    width: 100%;
    padding: 10px 15px 10px 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.login-form .input-wrapper input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.login-form .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.login-form .remember-me {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.login-form .remember-me input {
    margin-right: 5px;
}

.forgot-password {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
}

.btn-login-submit {
    width: 100%;
    padding: 12px 0;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login-submit:hover {
    background-color: #122a50;
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.login-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #eee;
}

.login-divider span {
    position: relative;
    background-color: #fff;
    padding: 0 10px;
    font-size: 14px;
    color: #999;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-login-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-login-btn.weixin {
    background-color: #07c160;
}

.social-login-btn.qq {
    background-color: #12b7f5;
}

.social-login-btn.weibo {
    background-color: #e6162d;
}

.social-login-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.login-footer {
    text-align: center;
    font-size: 14px;
    color: #666;
	z-index: 999;
    position: relative;	
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 支付弹窗样式 */
.order-summary {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.order-product {
    display: flex;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.product-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
	margin-top: 2px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #ff4d4f;
}

.order-details {
    font-size: 14px;
    color: #666;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.total-amount {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 5px;
}

.total-amount .item-value {
    color: #ff4d4f;
}

.payment-methods {
    margin-bottom: 20px;
}

.method-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

.method-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.method-option {
    display: flex;
    cursor: pointer;
}

.method-option input {
    display: none;
}

.option-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.method-option input:checked + .option-content {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}

.option-icon {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 18px;
    color: #fff;
}

.option-icon.wechat {
    background-color: #07c160;
}

.option-icon.alipay {
    background-color: #1677ff;
}

.option-icon.bank {
    background-color: #ff6a00;
}

.option-label {
    font-size: 14px;
    color: #333;
}

.payment-qrcode {
    text-align: center;
    margin-bottom: 20px;
}

.payment-qrcode .qrcode-container {
    width: 200px;
    height: 200px;
	margin: 0 auto 20px;
}

.payment-qrcode .qrcode-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);	
}

.payment-actions {
    display: flex;
    justify-content: space-between;
}

.btn-cancel-payment, .btn-confirm-payment {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel-payment {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.btn-cancel-payment:hover {
    background-color: #eee;
}

.btn-confirm-payment {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
}

.btn-confirm-payment:hover {
    background-color: #122a50;
}

/*收费文书支付弹窗样式*/
.payment-file-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
}

.payment-file-modal.show {
	opacity: 1;
	visibility: visible;
}

.payment-file-content {
	background-color: #fff;
	border-radius: 8px;
	padding: 30px;
	width: 350px;
	text-align: center;
	position: relative;
	transform: translateY(20px);
	transition: transform 0.3s;
}

.payment-file-modal.show .payment-content {
	transform: translateY(0);
}

.close-file-modal {
	position: absolute;
	top: 15px;
	right: 15px;
	font-size: 24px;
	color: #999;
	cursor: pointer;
}

.payment-file-content h3 {
	font-size: 20px;
	margin-bottom: 10px;
	color: #333;
}

.payment-file-content p {
	color: #666;
	margin-bottom: 15px;
}

.payment-file-amount {
	font-size: 28px;
	font-weight: 700;
	color: #ff9800;
	margin-bottom: 20px;
}

.qrcode-file-container-pay {
	width: 200px;
	height: 200px;
	margin: 0 auto 20px;
	border: 1px solid #eee;
	padding: 5px;
}

.qrcode-file-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.payment-file-methods {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-bottom: 20px;
}

.payment-file-method {
	padding: 5px 15px;
	border-radius: 20px;
	background-color: #f5f5f5;
	color: #666;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s;
}

.payment-file-method.active {
	background-color: #e3f2fd;
	color: var(--primary-color);
}

.payment-file-tips {
	font-size: 13px;
	color: #999;
}

/* 提示消息 */
.toast-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  z-index: 9999;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 80%;
  padding: 25px;
}

.toast-message.show {
  opacity: 1;
  visibility: visible;
}

.toast-message.success {
  background-color: rgba(40, 167, 69, 0.9);
}

.toast-message.error {
  background-color: rgba(220, 53, 69, 0.9);
}

.toast-message.warning {
  background-color: rgba(255, 193, 7, 0.9);
}

.toast-message.info {
  background-color: rgba(23, 162, 184, 0.9);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
	
	.footer {
		padding: 20px;
	}
	
	.footer .container {
		max-width: 768px;
	}
	
    .footer-content {
        display:none
    }
    
    .footer-bottom {
		border-top:none;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
	
    .chat-modal {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    .chat-body {
        height: calc(70% - 60px);
    }	
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .search-box {
        flex-direction: row;
    }
    .search-box button {
        width: 100px;
        padding: 12px;
		display: flex;
        align-items: center;
        justify-content: center;		
    }	
    .floating-consult {
        bottom: 15px;
        right: 15px;
    }
    .consult-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
	.login-pane .qrcode-container {
		width: 100%;
		padding: 18px 0;
	}
	.message {
		max-width: 100%;
	}	
}

/* 移动端导航样式 */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* 媒体查询 - 移动端适配 */
@media (max-width: 992px) {
    /* 调整容器内边距 */
    .header .container {
        padding: 10px 15px;
    }
    
    /* 缩小logo尺寸 */
    .logo img {
        height: 35px;
    }
}

@media (max-width: 768px) {
    /* 显示汉堡菜单按钮 */
    .mobile-nav-toggle {
        display: block;
    }
    
    /* 隐藏常规导航 */
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    /* 导航菜单展开时的样式 */
    .main-nav.active {
        left: 0;
    }
    
    /* 调整导航菜单项布局为垂直排列 */
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    
    .main-nav ul li {
        width: 100%;
    }
    
    .main-nav ul li a {
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* 调整下拉菜单样式 */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: auto;
        display: none;
        padding-left: 20px;
    }
    
    /* 显示下拉菜单的触发方式改为点击 */
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    /* 调整用户操作区域 */
    .user-actions {
        margin-left: auto;
    }
    
    /* 调整登录注册按钮 */
    .user-not-logged {
        gap: 10px;
    }
    
    .btn-login, .btn-register {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* 调整用户头像和下拉菜单 */
    .user-name {
        display: none;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    /* 进一步缩小logo */
    .logo img {
        height: 30px;
    }
    
    /* 调整按钮大小 */
    .btn-login, .btn-register {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* 调整用户头像 */
    .user-avatar {
        width: 30px;
        height: 30px;
    }
}