/*******************************************************************************/
/*********          Company:     上海井人科技有限公司(Froguy)            *********/
/*********          Product:     Froguy Project Management System      *********/
/*********          Created By:  Fan Xiaolei(Raymond)                  *********/
/*********          Created On:  2016-10-11                            *********/
/*********          Modified By: Fan Xiaolei(Raymond)                  *********/
/*********          Modified On:  2020-03-01                           *********/
/*******************************************************************************/
/* Instruction */
/* 登录后操作主页页面样式 */
/*******************************************************************************/

/* ============================
   错误页面样式
   ============================ */
.error-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

.error-header {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: var(--text-light);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='7' cy='7' r='7'/%3E%3Ccircle cx='53' cy='7' r='7'/%3E%3Ccircle cx='30' cy='30' r='7'/%3E%3Ccircle cx='7' cy='53' r='7'/%3E%3Ccircle cx='53' cy='53' r='7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.error-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.error-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.error-code {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    font-weight: 600;
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.help-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.help-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.help-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.help-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.help-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ============================
   成功页面样式
   ============================ */
.success-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

.success-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #42996e 100%);
    color: var(--text-light);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.success-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='7' cy='7' r='7'/%3E%3Ccircle cx='53' cy='7' r='7'/%3E%3Ccircle cx='30' cy='30' r='7'/%3E%3Ccircle cx='7' cy='53' r='7'/%3E%3Ccircle cx='53' cy='53' r='7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.success-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.success-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

.success-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.next-steps {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.next-steps-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.next-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.step-item:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* ============================  
   主页面布局样式
   ============================ */

/* 主容器 */
.main-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 左侧边栏 */
.left-sidebar {
    width: 16rem;
    background-color: #f9fafb;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    z-index: 20;
}

.left-sidebar.hidden {
    width: 0;
    display: none;
}

/* Logo和切换按钮区域 */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 1rem;
}

/* Logo容器 */
.logo-container {
    display: flex;
    align-items: center;
}

/* Logo */
.logo {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(to right, #1e3a8a, #8b5cf6);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
}

.logo-img {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    object-fit: cover;
}

.welcome-logo-img {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    object-fit: cover;
}

/* 品牌图片 */
.login-brand-img {
    width: 6rem;
    height: 2rem;
    border-radius: 0.5rem;
    object-fit: cover;
    margin-left: 0.5rem;
}

/* 品牌文字 */
.brand-text {
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    height: 3rem;
    line-height: 1;
    justify-content: center;
    color: #1e3a8a;
}

.brand-label {
    display: inline-block;
}

.brand-label.brand-text--zh {
    font-family: "MiSans", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
    font-size: 1.8rem;
    font-weight: 555;
    letter-spacing: 0.01em;
}

.brand-label.brand-text--en {
    font-family: "Arial Black", Arial, "Inter", "Segoe UI", Roboto, sans-serif;
    font-size: 1.62rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none !important;
    font-variant-caps: normal;
    text-shadow: none;
}

/* 切换按钮 */
.sidebar-toggle {
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.sidebar-toggle:hover {
    background-color: #f3f4f6;
}

.sidebar-toggle-icon {
    color: #6b7280;
}

/* 导航区域 */
.nav-area {
    flex: 1;
    overflow-y: auto;
}

/* 菜单区域 */
.menu-area {
    margin-top: 1rem;
    padding: 0 0.5rem;
}

/* 主菜单 */
.main-menu {
    space-y: 0.25rem;
}

/* 菜单项 */
.menu-item {
    margin-bottom: 0.25rem;
}

/* 菜单项按钮 */
.menu-item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.menu-item-btn:hover {
    background-color: rgba(30, 58, 138, 0.05);
    color: #1e3a8a;
}

/* 菜单项图标 */
.menu-item-icon {
    margin-right: 0.75rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

.menu-item-btn:hover .menu-item-icon {
    color: #1e3a8a;
}

/* 箭头图标 */
.arrow-icon {
    transition: transform 0.2s ease;
}

.arrow-icon.rotate-180 {
    transform: rotate(180deg);
}

/* 子菜单 */
.sub-menu {
    padding-left: 2.5rem;
    margin-top: 0.25rem;
    space-y: 0.25rem;
    display: none;
}

.sub-menu.show {
    display: block;
}

/* 子菜单项 */
.sub-menu-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #4b5563;
}

.sub-menu-item:hover {
    background-color: rgba(30, 58, 138, 0.05);
    color: #1e3a8a;
}

/* 子菜单项图标 */
.sub-menu-item-icon {
    margin-right: 0.75rem;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.sub-menu-item:hover .sub-menu-item-icon {
    color: #1e3a8a;
}

/* 无菜单提示 */
.no-menu {
    padding: 1rem;
    text-align: center;
    color: #6b7280;
}

/* 右侧内容区域 */
.right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 中间内容区域 */
.middle-content {
    flex: 1;
    overflow: hidden;
    background-color: white;
}

/* iframe容器 */
.iframe-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 显示侧边栏按钮 */
.show-sidebar-btn {
    position: fixed;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    background-color: #1e3a8a;
    color: white;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 30;
    display: none;
}

.show-sidebar-btn.show {
    display: block;
}

/* ============================  
   响应式设计
   ============================ */
@media (max-width: 640px) {
    .error-container,
    .success-container {
        margin: 1rem;
    }

    .error-header,
    .success-header {
        padding: 2rem 1.5rem;
    }

    .error-title,
    .success-title {
        font-size: 1.5rem;
    }

    .error-body,
    .success-body {
        padding: 2rem 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .error-icon,
    .success-icon {
        font-size: 3rem;
    }

    .error-title,
    .success-title {
        font-size: 1.25rem;
    }

    .error-message,
    .success-message {
        font-size: 1rem;
    }

    .next-steps-list {
        max-width: 100%;
    }
}
