﻿/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px; /* 基准字体大小改为16px */
}

body {
    background-color: #f5f7fa;
    color: #000; /* 字体颜色改为黑色 */
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
      /* 解决输入框光标不显示问题 */
    .search-input, 
    input[type="text"], 
    input[type="tel"], 
    textarea {
        caret-color: auto; /* 光标颜色自动匹配文本颜色 */
        color: #000; /* 文本颜色改为黑色 */
        outline: none;
    }


/* 容器 */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
}

/* 导航栏 */
.top-nav {
    background-color: #2980b9;
	height: 60px;
    color: white;
    padding: 0.9375rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.9375rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-title {
    font-size: 16px; /* 字体大小改为16px */
    font-weight: bold;
    white-space: nowrap;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-links {
    display: flex;
    gap: 0.8375rem;
    align-items: center;
}

.func-link {
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.625rem;
    height: 2.625rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    background-color: #3498db;
}

.func-link:hover {
    transform: scale(1.1) translateY(-0.125rem);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05);
}

.func-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 主内容区 */
.main-content, .form-container {
    margin: 1.25rem 0;
    padding: 1.5625rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.form-control, input, select, textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px; /* 字体大小改为16px */
    color: #000; /* 字体颜色改为黑色 */
    transition: border-color 0.3s;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
}

.btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px; /* 字体大小改为16px */
    color: #000; /* 字体颜色改为黑色 */
    transition: background 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white; /* 保留按钮白色文字以保持对比度 */
}

.btn-primary:hover {
    background: #2980b9;
}

/* 帮助文档样式 */
.help-container {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    margin: 0.9375rem 0;
}

.help-title {
    font-size: 16px; /* 字体大小改为16px */
    color: #000; /* 字体颜色改为黑色 */
    margin-bottom: 0.625rem;
    cursor: pointer;
}

.help-content {
    color: #000; /* 字体颜色改为黑色 */
    line-height: 1.8;
    font-size: 16px; /* 字体大小改为16px */
}

/* 底部导航 */
.bottom-nav {
    background-color:  #2980b9;
	height: 60px;
    color: white; /* 保留底部导航白色文字以保持对比度 */
    padding: 0.9375rem 0;
    margin-top: auto;
    width: 100%;
}

.bottom-nav .nav-content {
    justify-content: center;
}

.bottom-nav span {
    font-size: 16px; /* 字体大小改为16px */
    opacity: 0.9;
}

/* 消息提示 */
.message {
    padding: 0.75rem 0.9375rem;
    margin: 0.9375rem 0;
    border-radius: 4px;
    font-size: 16px; /* 字体大小改为16px */
    color: #000; /* 字体颜色改为黑色 */
}

.message.success {
    background: #e8f5e9;
    border: 1px solid #d5e6d5;
}

.message.error {
    background: #ffebee;
    border: 1px solid #f5d6d6;
}

/* 菜单路径（RTL适配） */

.menu-path-container {
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    margin: 1rem 0;
}

.menu-path {
    font-size: 16px; /* 字体大小改为16px */
    color: #000; /* 字体颜色改为黑色 */
    flex: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.625rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    direction: rtl;
}

.path-separator {
    color: #000; /* 字体颜色改为黑色 */
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.path-item {
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    user-select: none;
    font-size: 16px; /* 字体大小改为16px */
    color: #000; /* 字体颜色改为黑色 */
}

.path-item:hover {
    color: #000; /* 字体颜色改为黑色 */
    background-color: rgba(255, 255, 255, 0.1);
}

.path-root {
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
    color: #000; /* 字体颜色改为黑色 */
}

.path-root:hover {
    color: #000; /* 字体颜色改为黑色 */
}

/* 垂直菜单样式 */
.menu-container.vertical-menu {
    background-color: white;
    margin: 0.9375rem auto;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width: 100%;
    max-width: calc(100% - 1.875rem);
}

.menu-level {
    list-style: none;
    text-align: right;
    width: 100%;
}

.menu-item {
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    animation: fadeIn 0.2s ease-out forwards;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item.main-item {
    border-bottom: 1px solid #f1f1f1;
}

.menu-item.submenu-item {
    border-bottom: 1px solid #f8f8f8;
    border-top: 1px solid #f5f5f5;
    margin-top: 0.3125rem;
}

.elder-icon {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.menu-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    width: 100%;
    flex-direction: row-reverse;
    white-space: nowrap;
    overflow: hidden;
    font-size: 16px; /* 字体大小改为16px */
    color: #000; /* 字体颜色改为黑色 */
}

.submenu-item .menu-trigger {
    pointer-events: none;
    opacity: 0.6;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .main-content, .form-container {
        padding: 0.8375rem;
    }

    
    .page-title {
        font-size: 16px; /* 保持16px */
    }

    .func-link, .admin-link, .message-link {
        width: 2.25rem;
        height: 2.25rem;
    }

    .message-icon, .admin-icon, .func-link svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .submenu-container {
        margin-right: 1.5rem;
    }

    .protection-overlay {
        font-size: 16px; /* 保持16px */
        color: #000; /* 字体颜色改为黑色 */
    }
	
/* 语言切换按钮 */
.lang-toggle-btn {
  background-color: #1E40AF;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "kzfont tom", serif; /* 按钮文字字体 */
  font-size: 16px; /* 按钮文字大小 */
}

@media (max-width: 480px) {
    html {
        font-size: 16px; /* 保持16px */
    }
    
    .top-nav {
        padding: 0.625rem;
    }
    
    .bottom-nav {
        padding: 0.625rem 0;
    }
    
    .menu-trigger {
        padding: 0.75rem;
    }
}        