/**
 * 远辰智联·APP·汇聚·API中转中心
 * Windows 7 Aero 风格样式
 */

/* 全局变量 */
:root {
    --aero-glass-bg: rgba(255, 255, 255, 0.75);
    --aero-glass-border: rgba(255, 255, 255, 0.5);
    --aero-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    --aero-border-radius: 8px;
    --primary-color: #0078d4;
    --primary-hover: #106ebe;
    --secondary-color: #00bcf2;
    --text-color: #1a1a1a;
    --text-light: #666666;
    --success-color: #107c10;
    --warning-color: #ff8c00;
    --danger-color: #d13438;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --aero-blur: blur(20px);
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #4a90e2 0%, #7bb3f0 50%, #a8d4ff 100%);
    min-height: 100vh;
    color: var(--text-color);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Aero 玻璃效果容器 */
.aero-glass {
    background: var(--aero-glass-bg);
    backdrop-filter: var(--aero-blur);
    -webkit-backdrop-filter: var(--aero-blur);
    border: 1px solid var(--aero-glass-border);
    border-radius: var(--aero-border-radius);
    box-shadow: var(--aero-shadow);
    position: relative;
    overflow: hidden;
}

.aero-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 100%);
}

/* 容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 标题栏 */
.aero-titlebar {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(240, 240, 240, 0.95) 100%);
    border-bottom: 1px solid rgba(200, 200, 200, 0.5);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--aero-border-radius) var(--aero-border-radius) 0 0;
}

.aero-titlebar h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 内容区域 */
.aero-content {
    padding: 30px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 0 0 var(--aero-border-radius) var(--aero-border-radius);
}

/* 卡片 */
.aero-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--aero-blur);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--aero-border-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.aero-card:hover {
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* 按钮 */
.aero-btn {
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.aero-btn-primary {
    background: linear-gradient(180deg, 
        var(--primary-color) 0%, 
        var(--primary-hover) 100%);
    color: white;
    box-shadow: 
        0 2px 4px rgba(0, 120, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.aero-btn-primary:hover {
    background: linear-gradient(180deg, 
        var(--primary-hover) 0%, 
        #005a9e 100%);
    box-shadow: 
        0 4px 8px rgba(0, 120, 212, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.aero-btn-secondary {
    background: linear-gradient(180deg, 
        #f8f9fa 0%, 
        #e9ecef 100%);
    color: var(--text-color);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.aero-btn-secondary:hover {
    background: linear-gradient(180deg, 
        #e9ecef 0%, 
        #dee2e6 100%);
}

.aero-btn-success {
    background: linear-gradient(180deg, 
        var(--success-color) 0%, 
        #0b6b0b 100%);
    color: white;
}

.aero-btn-danger {
    background: linear-gradient(180deg, 
        var(--danger-color) 0%, 
        #a82b2e 100%);
    color: white;
}

/* 输入框 */
.aero-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(200, 200, 200, 0.6);
    border-radius: 4px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.aero-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.05),
        0 0 0 3px rgba(0, 120, 212, 0.1);
}

.aero-textarea {
    min-height: 120px;
    resize: vertical;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

/* 表格 */
.aero-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--aero-border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.aero-table thead {
    background: linear-gradient(180deg, 
        rgba(240, 240, 240, 0.95) 0%, 
        rgba(230, 230, 230, 0.95) 100%);
}

.aero-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid rgba(200, 200, 200, 0.5);
}

.aero-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(230, 230, 230, 0.8);
}

.aero-table tbody tr:hover {
    background: rgba(0, 120, 212, 0.05);
}

/* 导航菜单 */
.aero-nav {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--aero-border-radius);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.aero-nav-item {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
}

.aero-nav-item:hover {
    background: rgba(0, 120, 212, 0.1);
    border-color: rgba(0, 120, 212, 0.3);
}

.aero-nav-item.active {
    background: linear-gradient(180deg, 
        var(--primary-color) 0%, 
        var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 120, 212, 0.3);
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-published {
    background: rgba(16, 124, 16, 0.1);
    color: var(--success-color);
}

.status-draft {
    background: rgba(255, 140, 0, 0.1);
    color: var(--warning-color);
}

.status-active {
    background: rgba(16, 124, 16, 0.1);
    color: var(--success-color);
}

.status-inactive {
    background: rgba(209, 52, 56, 0.1);
    color: var(--danger-color);
}

/* 消息提示 */
.aero-alert {
    padding: 16px 20px;
    border-radius: var(--aero-border-radius);
    margin-bottom: 20px;
    border: 1px solid;
}

.aero-alert-success {
    background: rgba(16, 124, 16, 0.1);
    border-color: rgba(16, 124, 16, 0.3);
    color: var(--success-color);
}

.aero-alert-error {
    background: rgba(209, 52, 56, 0.1);
    border-color: rgba(209, 52, 56, 0.3);
    color: var(--danger-color);
}

.aero-alert-info {
    background: rgba(0, 120, 212, 0.1);
    border-color: rgba(0, 120, 212, 0.3);
    color: var(--primary-color);
}

/* 登录页面特殊样式 */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--aero-blur);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--aero-border-radius);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(240, 240, 240, 0.95) 100%);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(200, 200, 200, 0.5);
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-light);
    font-size: 14px;
}

.login-body {
    padding: 30px;
}

/* 工具栏 */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.toolbar-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 分页 */
.pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(200, 200, 200, 0.5);
}

.pagination a:hover {
    background: rgba(0, 120, 212, 0.1);
}

.pagination a.active {
    background: var(--primary-color);
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .aero-content {
        padding: 15px;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-left,
    .toolbar-right {
        justify-content: center;
    }
    
    .aero-nav {
        flex-direction: column;
    }
    
    .aero-table {
        font-size: 13px;
    }
    
    .aero-table th,
    .aero-table td {
        padding: 8px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state p {
    font-size: 16px;
    margin-top: 15px;
}

/* 代码块 */
.code-block {
    background: rgba(30, 30, 30, 0.95);
    color: #d4d4d4;
    padding: 16px;
    border-radius: var(--aero-border-radius);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    overflow-x: auto;
    margin: 10px 0;
}

/* API文档特殊样式 */
.api-endpoint {
    background: rgba(255, 255, 255, 0.9);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.api-method {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
}

.method-get {
    background: #61affe;
    color: white;
}

.method-post {
    background: #49cc90;
    color: white;
}

.method-put {
    background: #fca130;
    color: white;
}

.method-delete {
    background: #f93e3e;
    color: white;
}
