/* ===== 全局样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    background: linear-gradient(135deg, #f0f5ff 0%, #f5f9ff 100%); 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    color: #303133; 
    line-height: 1.5; 
    min-height: 100vh;
}

/* ===== 顶部导航栏 ===== */
.navbar {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%);
    color: white;
    padding: 0 2rem;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 700;
    flex-shrink: 0;
}
.navbar-logo i {
    font-size: 1.5rem;
}
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}
.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}
.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}
.admin-link {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.admin-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== 卡片样式 ===== */
.card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f3f7;
}
.card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eff6ff;
}
.card h2 i {
    color: #3b82f6;
    font-size: 1.1rem;
}

/* ===== 按钮样式 ===== */
button, .button {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}
button:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* ===== 表单样式 ===== */
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #f9fafb;
    transition: all 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

/* ===== 表格样式 ===== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 0.8rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    border-bottom: 2px solid #e5e7eb;
}
.admin-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.85rem;
}
.admin-table tr:hover td {
    background: #f9fafb;
}

/* ===== 消息提示 ===== */
.message {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .navbar { padding: 0 1rem; }
    .card { padding: 1.2rem; }
}
