/* 搜索框样式 */
.search-input-group {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.search-input-group:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}
input,textarea{cursor: pointer;}
.search-input-group input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}

.search-input-group input:focus {
    background: #fff;
}

.search-input-group button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-input-group button:hover {
    background-color: #3d8b40;
}

.search-input-group .btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
}

/* 香港医疗资源平台 - 主要样式文件 */

/* CSS变量定义 */
:root {
    --primary-color: #4CAF50;
    --primary-light: #81C784;
    --primary-dark: #388E3C;
    --secondary-color: #2196F3;
    --accent-color: #FF9800;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --error-color: #F44336;
    --info-color: #2196F3;
    
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-light: #BDBDBD;
    
    --bg-primary: #FAFAFA;
    --bg-secondary: #F5F5F5;
    --bg-card: #FFFFFF;
    --bg-light: #F8F9FA;
    
    --border-color: #E0E0E0;
    --border-light: #F5F5F5;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.2);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* 公司简介布局 */
.mission-layout {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    align-items: flex-start;
}

.mission-points {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.point-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(76, 175, 80, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.point-item:hover {
    background: rgba(76, 175, 80, 0.1);
    transform: translateY(-3px);
}

.point-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.point-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.point-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.mission-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.mission-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.mission-image:hover img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .mission-layout {
        flex-direction: column;
    }
    
    .mission-image {
        margin-top: 2rem;
    }
}

/* 精选医生推荐样式 */
.featured-doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    /*margin-top: 24px;*/
}

.featured-doctors-grid .doctor-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.featured-doctors-grid .doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.featured-doctors-grid .doctor-avatar {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.featured-doctors-grid .doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-doctors-grid .doctor-card:hover .doctor-avatar img {
    transform: scale(1.05);
}

.featured-doctors-grid .wmo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.featured-doctors-grid .doctor-info {
    padding: 16px;
}

.featured-doctors-grid .doctor-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.featured-doctors-grid .doctor-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.featured-doctors-grid .doctor-specialty {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.featured-doctors-grid .doctor-rating {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.featured-doctors-grid .stars {
    color: var(--warning-color);
    margin-right: 8px;
}

.featured-doctors-grid .rating-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.featured-doctors-grid .doctor-location {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.featured-doctors-grid .doctor-location i {
    margin-right: 6px;
    color: var(--secondary-color);
}

.featured-doctors-grid .doctor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.featured-doctors-grid .doctor-fee {
    font-size: 14px;
}

.featured-doctors-grid .fee-label {
    color: var(--text-secondary);
}

.featured-doctors-grid .fee-amount {
    font-weight: 600;
    color: var(--primary-color);
}

.featured-doctors-grid .btn-primary.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

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

/* 基础样式 */
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background: white;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.btn-outline {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: #4CAF50;
    color: #4CAF50;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* 表单样式 */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-control.error {
    border-color: var(--error-color);
}

.form-control.error:focus {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.form-error {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-error::before {
    content: '⚠';
    font-size: 12px;
}

.form-success {
    color: var(--success-color);
    font-size: 14px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-success::before {
    content: '✓';
    font-size: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 导航栏样式 */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.logo-section:hover {
    transform: scale(1.03);
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(-5deg);
}

.site-name {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.site-name-en {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #7f8c8d;
    margin-top: -2px;
    transition: color 0.3s ease;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: #4CAF50;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dropdown li,a{
   list-style: none;
   text-decoration: none;
   color:#333;
}
.dropdown{
    position:relative;
    cursor: pointer;
    padding: 0 12px;
    line-height: 35px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    font-size: 14px;
}
.dropdown-menu{
    position:absolute;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: none;
    z-index: 999;
}
.dropdown-menu > li > a {
    display: block;
    padding: 6px 20px;
    clear: both;
    font-weight: normal;
    line-height: 1.42857143;
    color: #333333;
    white-space: nowrap;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    text-decoration: none;
    color: #262626;
    background-color: #f5f5f5;
}
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    color: #fff;
    text-decoration: none;
    outline: 0;
    background-color: #4CAF50;
}
.language-switcher .dropdown-menu .action{
    background: #4CAF50;
}
.auth-buttons {
    display: flex;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: #4CAF50;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .main-header {
        background: #1a1a1a;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .main-header.scrolled {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .site-name {
        color: #f0f0f0;
    }
    
    .site-name-en {
        color: #a0a0a0;
    }
    
    .nav-link {
        color: #ccc;
    }
    
    .language-switcher select {
        background: #2d2d2d url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        color: #fff;
        border-color: #444;
        color: #f0f0f0;
    }
}

/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.breadcrumb-list li::after {
    content: '>';
    margin-left: 8px;
    color: #999;
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: #4CAF50;
    text-decoration: none;
}

.breadcrumb-list .current {
    color: #666;
}
/* 立即加入按钮样式 */
.join-button-container {
    text-align: center;
    margin: 60px 0 0;
    padding: 0 20px;
}

.join-text {
    margin-bottom: 25px;
}

.join-text h3 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.join-text p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.btn-join-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 2px solid var(--primary-dark);
    min-width: 220px;
    text-decoration: none;
}

.btn-join-now:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-join-now i {
    margin-right: 10px;
    font-size: 20px;
}

@media (max-width: 768px) {
    .join-button-container {
        margin: 40px 0 30px;
    }

    .join-text h3 {
        font-size: 24px;
    }

    .join-text p {
        font-size: 15px;
        padding: 0 15px;
    }

    .btn-join-now {
        padding: 14px 32px;
        font-size: 16px;
        width: 100%;
    }
}
/* 卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 评分星级 */
.stars {
    display: inline-flex;
    gap: 2px;
}

.stars i {
    color: #ffc107;
    font-size: 14px;
}

.stars i.far {
    color: #e0e0e0;
}

/* 标签 */
.badge {
    background: #4CAF50;
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    min-width: 18px;
    text-align: center;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-content.large {
    max-width: 800px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal .close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    color: #999;
    transition: color 0.3s ease;
}

.modal .close:hover {
    color: #333;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination button {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.pagination button.active {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 页脚 */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
    /*color: #4CAF50;*/
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4CAF50;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: #4CAF50;
}

.contact-info p {
    margin-bottom: 8px;
    color: #bdc3c7;
}

.contact-info i {
    margin-right: 8px;
    color: #4CAF50;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-footer{
        display: none;
    }
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .auth-buttons {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .site-name {
        font-size: 16px;
    }
    
    .site-name-en {
        font-size: 10px;
    }
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.text-primary { color: #4CAF50; }
.text-secondary { color: #666; }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }
.text-info { color: #17a2b8; }

.bg-primary { background-color: #4CAF50; }
.bg-light { background-color: #f8f9fa; }
.bg-white { background-color: white; }

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast通知样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: #333;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast.toast-error {
    border-left: 4px solid var(--error-color);
}

.toast.toast-warning {
    border-left: 4px solid var(--warning-color);
}

.toast.toast-info {
    border-left: 4px solid var(--info-color);
}

.toast i {
    font-size: 18px;
}

.toast.toast-success i {
    color: var(--success-color);
}

.toast.toast-error i {
    color: var(--error-color);
}

.toast.toast-warning i {
    color: var(--warning-color);
}

.toast.toast-info i {
    color: var(--info-color);
}

/* 错误消息样式 */
.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--error-color);
    font-size: 1.1rem;
}

.error-message i {
    font-size: 2rem;
}

.no-results,
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-results i,
.no-articles i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-results h3,
.no-articles h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.no-results p,
.no-articles p {
    margin-bottom: 24px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 图片懒加载样式 */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 性能优化 */
.will-change {
    will-change: transform, opacity;
}

/* 预加载关键资源 */
.preload {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* 认证模态框样式 */
.auth-form {
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
}

.auth-form h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.auth-switch p {
    margin: 0;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* 社交登录 */
.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--border-color);
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.social-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.social-btn.google:hover {
    border-color: #db4437;
    color: #db4437;
}

.social-btn.facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
}

/* 单选框样式 */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
    color: var(--text-primary);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-mark {
    border-color: var(--primary-color);
}

.radio-label input[type="radio"]:checked + .radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* 模态框关闭按钮优化 */
.modal .close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.modal .close:hover {
    color: var(--text-primary);
}
@media (max-width: 768px) {
    .header-actions .auth-buttons{
        display: none;
    }
    .ucenter{
        display: none;
    }

}
.ucenter .avatar-img img{
    height: 30px;
    width: 30px;
    line-height: 30px;
    font-size: 14px;
    border-radius: 30px;
}
li{list-style: none;}

.avatar-img{
    display: inline-block;
    box-sizing: content-box;
    color: #fff;
    text-align: center;
    vertical-align: top;
    font-weight: normal;
    font-size: 24px;
}
.logind{
    display:none;
}
/* 响应式设计 */
@media (min-width: 768px) {
    .main-nav{
        min-width: 600px;
    }
    .ucenter  a {
        height: 60px;
        line-height: 27px;
        color: #555;
    }

}