/* 导入随机主题样式 */
@import url('../css/themes.css');

/* 基本样式 - 与主题无关的通用样式 */
body {
    font-family: var(--font-family, Arial, sans-serif);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color, #faf7f7) !important;
    color: var(--text-color, #333);
    transition: all 0.3s ease;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--container-bg, #faf6f6) !important;
    border-radius: var(--border-radius, 5px);
    box-shadow: 0 2px 5px var(--shadow-color, rgba(248, 247, 247, 0.1));
}

h1 {
    color: var(--heading-color, #333);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #faf6f6);
    padding-bottom: 10px;
}

a {
    color: var(--link-color, #4CAF50);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--link-hover-color, #45a049);
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--input-border-color, #ddd);
    border-radius: var(--border-radius, 4px);
    box-sizing: border-box;
    background-color: var(--input-bg, #fff);
    color: var(--input-text-color, #333);
    align-items: center;
}

.btn {
    padding: 8px 15px;
    background-color: var(--primary-color, #4CAF50);
    color: var(--btn-text-color, white);
    border: none;
    border-radius: var(--border-radius, 4px);
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--primary-hover-color, #45a049);
}

/* 验证码样式 */
.captcha-container {
    display: flex;
    align-items: center;
}

.captcha-image {
    margin-left: 10px;
    cursor: pointer;
    border: 1px solid var(--border-color, #ddd);
}

/* 错误和成功消息 */
.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: var(--border-radius, 4px);
}

.alert-danger {
    background-color: var(--danger-bg, #f8d7da);
    color: var(--danger-color, #721c24);
    border: 1px solid var(--danger-border, #f5c6cb);
}

.alert-success {
    background-color: var(--success-bg, #d4edda);
    color: var(--success-color, #155724);
    border: 1px solid var(--success-border, #c3e6cb);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--container-bg, #fff);
    margin: 10% auto;
    padding: 20px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: var(--border-radius, 5px);
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    color: var(--text-color, #333);
}

.close {
    color: var(--text-secondary, #aaa);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--text-color, #000);
    text-decoration: none;
}

.modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-danger {
    background-color: var(--danger-color, #dc3545);
    color: white;
}

.btn-danger:hover {
    background-color: var(--danger-hover, #c82333);
}

/* 表单验证样式 */
.error-message {
    color: var(--error-color, #dc3545);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.input-error {
    border-color: var(--error-color, #dc3545) !important;
}

.input-success {
    border-color: var(--success-color, #28a745) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* 页脚响应式 */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .links-grid {
        justify-content: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
}

/* 主题切换按钮 */
.theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color, #4CAF50);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switcher:hover {
    background-color: var(--primary-hover-color, #45a049);
}

/* 导航菜单样式 */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: var(--text-color, #333);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color, #4CAF50);
}

/* 页脚样式 */
.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 0;
}

.footer-section {
    flex: 1;
}

.footer-section ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li a {
    color: var(--text-color, #666);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-color, #4CAF50);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section ul {
        justify-content: center;
    }
}

/* 容器样式统一 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    background-color: var(--bg-color) !important; /* 确保与背景色一致 */
}

/* 头部样式 */
header {
    background-color: var(--bg-color) !important; /* 修改为与背景色一致 */
    box-shadow: 0 2px 5px var(--shadow-color, rgba(0, 0, 0, 0.1));
    margin-bottom: 20px;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* 页脚样式 - 确保在深色主题下有良好的可读性 */
/* 现代化Footer样式 */
.modern-footer {
    position: relative;
    background: var(--footer-bg, #f5f5f5);
    color: var(--footer-text, #333333);
    padding: 60px 0 20px;
    margin-top: 50px;
    overflow: hidden;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

/* 波浪装饰 */
.footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%234CAF50"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%234CAF50"></path><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%234CAF50"></path></svg>') repeat-x;
    background-size: 1200px 50px;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% { background-position-x: 0; }
    100% { background-position-x: 1200px; }
}

/* 粒子效果 */
.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particles 20s linear infinite;
}

@keyframes particles {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

/* Footer内容布局 */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* Logo区域 */
.footer-logo {
    text-align: center;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.1) rotate(360deg);
    background: rgba(255,255,255,0.3);
}

.logo-icon i {
    font-size: 24px;
    color: var(--footer-text, white);
}

.footer-logo h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--footer-heading, white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.footer-logo p {
    margin: 0 0 20px 0;
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--footer-text, white);
}

/* 社交链接 */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text, white);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.social-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

/* 链接区域 */
.footer-links h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--footer-heading, white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.footer-link {
    color: var(--footer-link, rgba(255,255,255,0.9));
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.footer-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
    color: var(--footer-link-hover, white);
    text-decoration: none;
}

/* 联系信息 */
.footer-contact h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--footer-heading, white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact p {
    margin: 0 0 15px 0;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--footer-text, white);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: var(--footer-text, white);
}

.contact-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.contact-item i {
    width: 20px;
    text-align: center;
    color: var(--footer-text, rgba(255,255,255,0.8));
}

/* Footer底部 */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    position: relative;
    z-index: 2;
}

.copyright-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.copyright-text {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--footer-text, white);
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav-link {
    color: var(--footer-text-secondary, rgba(255,255,255,0.8));
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.footer-nav-link:hover {
    color: var(--footer-link-hover, white);
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

.nav-separator {
    color: var(--footer-text-secondary, rgba(255,255,255,0.5));
    font-weight: bold;
}

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

.animate-slide-up {
    animation: slideUp 1s ease-out 0.2s both;
}

.animate-bounce-in {
    animation: bounceIn 1s ease-out 0.4s both;
}

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

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo h2 {
        font-size: 24px;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-icon i {
        font-size: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-separator {
        display: none;
    }
    
    .copyright-content {
        gap: 20px;
    }
    
    .contact-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modern-footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-logo h2 {
        font-size: 20px;
    }
    
    .footer-links h3,
    .footer-contact h3 {
        font-size: 18px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    
    .footer-wave {
        height: 30px;
        top: -30px;
    }
}

/* 登录容器样式 */
.login-container {
    max-width: 500px;
    margin: 50px auto;
    background-color: #ffffff !important; /* 固定为白色 */
    padding: 30px;
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 0 20px var(--shadow-color, rgb(17, 17, 17));
}

/* 主内容区域样式 */
.main-content {
    background-color: #ffffff !important; /* 固定为白色 */
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 0 20px var(--shadow-color, rgba(0, 0, 0, 0.1));
    padding: 30px;
    margin-bottom: 20px;
}

/* 主内容区域的标题样式 */
.main-content h1 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--heading-color, #333);
    font-size: 24px;
    font-weight: 600;
}

/* 深色主题下主内容区域的标题样式 */
.theme-dark .main-content h1 {
    color: #4CAF50 !important; /* 绿色 */
}
/* 深色主题下主内容区域的标题样式 */
.theme-dark .dashboard-card h2 {
    color: #030303 !important; /* 绿色 */
}
/* 表单标签和文本样式 - 确保在深色主题下可见 */
label, .form-label {
    color: var(--label-color, var(--text-color, #333));
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* 确保页面中的所有文本在深色主题下可见 */
.profile-info, .profile-data, .profile-section, .profile-field {
    color: var(--text-color, #333);
}

/* 确保表单字段标签在深色主题下可见 */
.field-label, .field-name {
    color: var(--label-color, var(--text-color, #333));
    font-weight: 500;
}

/* 确保日期和时间在深色主题下可见 */
.date-info, .time-info, .datetime {
    color: var(--date-color, var(--text-color, #333));
}

/* 确保所有信息文本在深色主题下可见 */
.info-text, .user-info, .profile-info, .account-info {
    color: var(--info-text-color, var(--text-color, #333));
}

/* 确保次要文本在深色主题下可见 */
.secondary-text, .meta-info, .small-text {
    color: var(--secondary-text-color, var(--text-color, #666));
}



/* 特别处理个人资料卡片中的日期时间文本 */
.theme-dark .profile-card .date-time,
.theme-dark .profile-section .date-time,
.theme-dark .card-body .date-time,
.theme-dark .card .date-time {
    color: #f3f1f1 !important;
}


/* 处理所有可能的日期时间显示元素 */
.theme-dark .registration-date,
.theme-dark .login-date,
.theme-dark .creation-date,
.theme-dark .update-date,
.theme-dark .date-display {
    color: #f5f2f2 !important;
}

/* 确保深色主题下所有文本元素可见 */
.theme-dark .text-muted,
.theme-dark .text-secondary,
.theme-dark .text-light {
    color: #f8f7f7 !important;
}

/* 直接针对个人资料页面中的标签和日期 */
.theme-dark label[for],
.theme-dark .form-group > span,
.theme-dark .form-control-static,
.theme-dark .form-control:disabled {
    color: #171717 !important;
}

/* 针对截图中红框内的日期时间文本 */
.theme-dark .profile-section time,
.theme-dark .profile-info time,
.theme-dark .user-info time,
.theme-dark time {
    color: #000000 !important;
}

/* 针对个人资料页面中的日期时间文本 */
.theme-dark .registration-date,
.theme-dark .login-date,
.theme-dark .creation-date,
.theme-dark .update-date,
.theme-dark .date-display {
    color: #000000 !important;
}

/* 确保深色主题下红框区域（个人资料）的文本为绿色 */
.theme-dark .container h3,
.theme-dark .container label,
.theme-dark .container .form-label,
.theme-dark .container .field-label,
.theme-dark .container time,
.theme-dark .container .date-info,
.theme-dark .container .profile-info,
.theme-dark .container .user-info,
.theme-dark .container p {
    color: #303130 !important; /* 绿色 */
}
.theme-dark .main-content h3 {
    margin-top: 0;
    color: var(--heading-color, #f80909);
}
/* 更具体地针对黄框内的日期时间文本 */
.theme-dark .registration-date,
.theme-dark .login-date,
.theme-dark .creation-date,
.theme-dark .update-date,
.theme-dark .date-display {
    color: #262726 !important; /* 绿色 */
}

/* 针对红框区域（标题区域）的文本 */
.theme-dark .container > div:first-child {
    color: #000000 !important;
}

/* 针对黄框区域（日期时间信息）的文本 */
.theme-dark label:contains("注册时间") + time,
.theme-dark label:contains("上次更新") + time,
.theme-dark .container time {
    color: #2a2b2a !important; /* 绿色 */
}

/* 更具体地针对黄框内的日期时间文本 */
.theme-dark .registration-date,
.theme-dark .login-date,
.theme-dark .creation-date,
.theme-dark .update-date,
.theme-dark .date-display {
    color: #323332 !important; /* 绿色 */
}

/* 确保深色主题下所有文本元素可见 */
.theme-dark .text-muted,
.theme-dark .text-secondary,
.theme-dark .text-light {
    color: #f8f7f7 !important;
}

/* 直接针对个人资料页面中的标签和日期 */
.theme-dark label[for],
.theme-dark .form-group > span,
.theme-dark .form-control-static,
.theme-dark .form-control:disabled {
    color: #000000 !important;
}

/* 针对截图中红框内的日期时间文本 */
.theme-dark .profile-section time,
.theme-dark .profile-info time,
.theme-dark .user-info time,
.theme-dark time {
    color: #000000 !important;
}

/* 针对个人资料页面中的日期时间文本 */
.theme-dark .registration-date,
.theme-dark .login-date,
.theme-dark .creation-date,
.theme-dark .update-date,
.theme-dark .date-display {
    color: #000000 !important;
}

/* 确保深色主题下红框区域的文本为黑色 */
.theme-dark .profile-section p,
.theme-dark .profile-info p,
.theme-dark .user-info p {
    color: #000000 !important;
}

/* 确保表单标签在深色主题下可见 */
label, .form-label, .field-label {
    color: var(--label-color, var(--text-color, #272626));
}

/* 确保页脚版权信息在深色主题下可见 */
.footer-bottom, .footer-bottom p, .footer-bottom a {
    color: var(--text-color, #f7f2f2);
}

/* 确保页脚链接在深色主题下可见 */
.footer a {
    color: var(--link-color, #717271);
}

.footer a:hover {
    color: var(--link-hover-color, #868886);
}

/* 深色主题下页脚标题和链接颜色 */
.theme-dark .footer h2,
.theme-dark .footer h3,
.theme-dark .footer p,
.theme-dark .footer a,
.theme-dark .footer-links a,
.theme-dark .footer-links h3,
.theme-dark .footer-logo h2,
.theme-dark .footer-contact h3 {
    color: #ffffff !important;
}

.theme-dark .footer a:hover,
.theme-dark .footer-links a:hover {
    color: #9ee99e !important;
}

/* 深色主题下快速链接区域文本颜色 */
.theme-dark .footer-links ul li a {
    color: #ffffff !important;
}

/* 深色主题下页脚底部版权信息颜色 */
.theme-dark .footer-bottom p,
.theme-dark .footer-bottom a {
    color: #ffffff !important;
}

/* 针对截图中红框内的日期时间文本 */
.theme-dark .profile-section time,
.theme-dark .profile-info time,
.theme-dark .user-info time,
.theme-dark time {
    color: #000000 !important;
}

/* 针对个人资料页面中的日期时间文本 */
.theme-dark .registration-date,
.theme-dark .login-date,
.theme-dark .creation-date,
.theme-dark .update-date,
.theme-dark .date-display {
    color: #000000 !important;
}

/* 确保深色主题下红框区域的文本为黑色 */
.theme-dark .profile-section p,
.theme-dark .profile-info p,
.theme-dark .user-info p {
    color: #0a0a0a !important;
}

/* 确保表单标签在深色主题下可见 */
label, .form-label, .field-label {
    color: var(--label-color, var(--text-color, #272626));
}

/* 确保页脚版权信息在深色主题下可见 */
.footer-bottom, .footer-bottom p, .footer-bottom a {
    color: var(--text-color, #1b1b1b);
}

/* 确保页脚链接在深色主题下可见 */
.footer a {
    color: var(--link-color, #717271);
}

.footer a:hover {
    color: var(--link-hover-color, #868886);
}

/* 深色主题下页脚标题和链接颜色 */
.theme-dark .footer h2,
.theme-dark .footer h3,
.theme-dark .footer p,
.theme-dark .footer a,
.theme-dark .footer-links a,
.theme-dark .footer-links h3,
.theme-dark .footer-logo h2,
.theme-dark .footer-contact h3 {
    color: #ffffff !important;
}

.theme-dark .footer a:hover,
.theme-dark .footer-links a:hover {
    color: #9ee99e !important;
}

/* 深色主题下快速链接区域文本颜色 */
.theme-dark .footer-links ul li a {
    color: #ffffff !important;
}

/* 深色主题下页脚底部版权信息颜色 */
.theme-dark .footer-bottom p,
.theme-dark .footer-bottom a {
    color: #ffffff !important;
}

/* 针对截图中红框内的日期时间文本 */
.theme-dark .profile-section time,
.theme-dark .profile-info time,
.theme-dark .user-info time,
.theme-dark time {
    color: #000000 !important;
}

/* 针对个人资料页面中的日期时间文本 */
.theme-dark .registration-date,
.theme-dark .login-date,
.theme-dark .creation-date,
.theme-dark .update-date,
.theme-dark .date-display {
    color: #000000 !important;
}

/* 确保深色主题下红框区域的文本为黑色 */
.theme-dark .profile-section p,
.theme-dark .profile-info p,
.theme-dark .user-info p {
    color: #000000 !important;
}

/* 针对红框内的文本元素 */
.theme-dark .container > div > h3,
.theme-dark .container > h3,
.theme-dark .container > div > p,
.theme-dark .container > p,
.theme-dark time,
.theme-dark .date-info,
.theme-dark .time-info,
.theme-dark .datetime {
    color: #d8d5d5 !important;
}

/* 针对黄框内的版权信息文本 */
.theme-dark [class*="powered"],
.theme-dark [class*="版权声明"],
.theme-dark [class*="隐私声明"],
.theme-dark [class*="用户注册"] {
    color: #ffffff !important;
}

/* 针对黄框内的链接 */
.theme-dark a[href*="版权声明"],
.theme-dark a[href*="隐私声明"],
.theme-dark a[href*="用户注册"],
.theme-dark a[href*="Cookie"] {
    color: #ffffff !important;
}

/* 针对页脚底部版权信息区域（黄框） */
.theme-dark .footer-bottom,
.theme-dark .footer-bottom p,
.theme-dark .footer-bottom a {
    color: #ffffff !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo h2 {
        font-size: 24px;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-icon i {
        font-size: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-separator {
        display: none;
    }
    
    .copyright-content {
        gap: 20px;
    }
    
    .contact-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modern-footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-logo h2 {
        font-size: 20px;
    }
    
    .footer-links h3,
    .footer-contact h3 {
        font-size: 18px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    
    .footer-wave {
        height: 30px;
        top: -30px;
    }
}

/* 横排链接样式 */
.horizontal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
    margin-top: 10px;
}

.link-divider {
    color: #ccc;
    margin: 0 5px;
}

@media (max-width: 768px) {
    .horizontal-links {
        justify-content: center;
    }
}