/* 公共样式 - 现代化设计 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding-top: 70px; /* 为固定导航栏留出空间 */
}

/* 统一头部导航 - 固定定位，避免切换时移动 */
.header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
}

.header .wrapper {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    flex-wrap: nowrap;
}

.logo {
    flex-shrink: 0;
    margin-right: 50px;
}

.logo h1 {
    margin: 0;
    line-height: 70px;
}

.logo a {
    font-size: 26px;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    display: inline-block;
    transition: transform 0.3s;
}

.logo a:hover {
    transform: scale(1.05);
}

.nav {
    flex-shrink: 0;
    margin-right: auto;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 70px;
}

.nav li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav a {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 8px 0;
    display: block;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav a:hover,
.nav a.active {
    color: #667eea;
}

.nav a:hover::after,
.nav a.active::after {
    transform: scaleX(1);
}

.user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 30px;
}

.user span {
    white-space: nowrap;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.user .avatar-placeholder {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.user button {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.user button:first-of-type {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.user button:first-of-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.user button:last-of-type {
    background: #f0f0f0;
    color: #666;
}

.user button:last-of-type:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

/* 搜索框 */
.search {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border-radius: 24px;
    padding: 10px 18px;
    width: 350px;
    min-width: 250px;
    max-width: 450px;
    margin: 0 40px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.search:focus-within {
    background: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #333;
    padding: 0;
}

.search input::placeholder {
    color: #999;
}

.search a {
    width: 22px;
    height: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    transition: color 0.3s;
    flex-shrink: 0;
    margin-left: 8px;
}

.search a:hover {
    color: #667eea;
    transform: scale(1.1);
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 24px;
    margin-bottom: 20px;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-danger {
    background: #ff4d4f;
    color: #fff;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.table td {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #666;
}

.table tr:hover {
    background: #f8f9fa;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tag-primary {
    background: #e6f7ff;
    color: #1890ff;
}

.tag-success {
    background: #f6ffed;
    color: #52c41a;
}

.tag-warning {
    background: #fffbe6;
    color: #faad14;
}

/* 响应式 */
@media (max-width: 1200px) {
    .header .wrapper {
        padding: 0 20px;
    }
    
    .search {
        width: 280px;
        min-width: 200px;
        margin: 0 20px;
    }
    
    .nav ul {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
    
    .header {
        position: relative;
        height: auto;
        min-height: 70px;
    }
    
    .header .wrapper {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
        min-height: 70px;
    }

    .nav {
        order: 3;
        width: 100%;
        margin-top: 10px;
        margin-right: 0;
    }

    .nav ul {
        flex-wrap: wrap;
        gap: 15px;
        height: auto;
    }

    .search {
        width: 100%;
        margin: 10px 0;
        order: 2;
    }
    
    .user {
        margin-left: 0;
    }
}

