/* fixSys 原型系统样式 - 绿色主题 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    gap: 10px;
}

.logo-link:hover {
    color: #20c997;
    transform: scale(1.05);
}

.nav-logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* 子菜单样式 */
.nav-menu li {
    position: relative;
}

.nav-menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
    list-style: none;
}

.nav-menu li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .submenu li {
    margin: 0;
    padding: 0;
}

.nav-menu .submenu a {
    padding: 10px 20px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    display: block;
}

.nav-menu .submenu a:hover {
    background: rgba(255,255,255,0.2);
    transform: none;
}

.nav-menu .submenu li:last-child a {
    border-bottom: none;
}

/* 面包屑导航样式 */
.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    margin-bottom: 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.breadcrumb-home {
    color: #20c997;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.breadcrumb-home:hover {
    color: #17a2b8;
    transform: scale(1.1);
}

.breadcrumb-link {
    color: #fff;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.breadcrumb-link:hover {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.2);
}

.breadcrumb-current {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    border: 1px solid #fff;
    transform: scale(1.05);
}

.breadcrumb-separator {
    color: #ccc;
    font-size: 0.8rem;
    margin: 0 4px;
}

/* 导航菜单激活状态 - 使用橙色主题增强对比度 */
.nav-menu a.active {
    color: #fff !important;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(255, 107, 53, 0.4);
    font-weight: 700;
    border: 2px solid #fff;
    transform: scale(1.05);
}

.nav-menu .submenu a.active {
    color: #fff !important;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    font-weight: 700;
    border: 1px solid #fff;
    transform: scale(1.02);
}

/* 父级菜单激活状态 */
.nav-menu li.nav-dropdown > a.active {
    color: #fff !important;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(255, 107, 53, 0.4);
    font-weight: 700;
    border: 2px solid #fff;
    transform: scale(1.05);
}

/* 子菜单激活时的父级菜单样式 - 使用蓝色主题 */
.nav-menu li.nav-dropdown:has(.submenu a.active) > a {
    color: #fff !important;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 悬停状态优化 */
.nav-menu a:hover:not(.active) {
    color: #ff6b35 !important;
    background: rgba(255, 107, 53, 0.1) !important;
    border-radius: 6px;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.nav-menu .submenu a:hover:not(.active) {
    color: #ff6b35 !important;
    background: rgba(255, 107, 53, 0.1) !important;
    border-radius: 4px;
    transform: translateX(2px);
    transition: all 0.3s ease;
}

/* 激活状态动画 */
.nav-menu a.active {
    animation: activePulse 2s ease-in-out infinite;
}

@keyframes activePulse {
    0%, 100% {
        box-shadow: 0 3px 12px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 3px 16px rgba(255, 107, 53, 0.6);
    }
}

/* 面包屑当前页面动画 */
.breadcrumb-current {
    animation: breadcrumbPulse 3s ease-in-out infinite;
}

@keyframes breadcrumbPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 2px 12px rgba(255, 107, 53, 0.5);
    }
}

/* 响应式面包屑 */
@media (max-width: 768px) {
    .breadcrumb-container {
        padding: 0 15px;
        gap: 6px;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
    
    .breadcrumb-separator {
        font-size: 0.7rem;
        margin: 0 2px;
    }
}

/* 移动端菜单 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 20px 0;
        transition: all 0.3s ease;
        z-index: 1000;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        border-radius: 10px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        display: none;
    }
    
    .nav-menu.mobile-active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        display: block !important;
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
        z-index: 1001 !important;
    }
    
    .nav-menu li {
        margin: 0;
        padding: 0;
        opacity: 1;
        transform: none;
        transition: background-color 0.3s ease;
    }
    
    .nav-menu li a {
        display: block;
        font-size: 1rem;
        padding: 12px 20px;
        color: white;
        text-decoration: none;
        transition: background-color 0.3s ease;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin-left: 20px;
        border-radius: 0;
        padding: 0;
    }
    
    .nav-menu .submenu a {
        padding: 8px 20px;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-container {
        position: relative;
    }
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-text h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 系统概览 */
.system-overview {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
}

.system-overview h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.system-overview p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 原型容器 */
.prototype-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.prototype-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.prototype-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #28a745;
}

.prototype-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.prototype-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.prototype-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.prototype-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.prototype-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    color: #28a745;
    width: 16px;
}

.demo-link {
    display: inline-block;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.demo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

/* 管理容器 */
.management-container,
.analytics-container,
.messaging-container,
.file-container,
.workflow-container,
.asset-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 卡片样式 */
.user-card,
.dashboard-card,
.workflow-card,
.asset-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 4px solid #28a745;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 按钮样式 */
.btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-success {
    background: #28a745;
}

.btn-danger {
    background: #dc3545;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-secondary {
    background: #6c757d;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* 表单样式 */
.form-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-active { background: #d4edda; color: #155724; }
.status-inactive { background: #f8d7da; color: #721c24; }
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #d1ecf1; color: #0c5460; }
.status-completed { background: #d4edda; color: #155724; }
.status-closed { background: #f8d7da; color: #721c24; }

/* 统计卡片 */
.stat-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* 表格样式 */
.user-table,
.demo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.user-table th,
.user-table td,
.demo-table th,
.demo-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.user-table th,
.demo-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.user-table tr:hover,
.demo-table tr:hover {
    background: #f8f9fa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .header-text h1 {
        font-size: 2rem;
    }
    
    .header-text p {
        font-size: 1rem;
    }
    
    .prototype-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prototype-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #20c997;
}
