/* === CSS Variables === */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #93c5fd;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --orange: #f97316;
    --teal: #14b8a6;
    --bg-gradient-start: #e0f2fe;
    --bg-gradient-end: #f0f9ff;
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(226, 232, 240, 0.8);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(226, 232, 240, 0.8);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 50%, #fdf4ff 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-family);
    transition: var(--transition);
}

input, select, textarea {
    font-family: var(--font-family);
    outline: none;
    transition: var(--transition);
}

/* === Navbar === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nav-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon {
    width: 36px;
    height: 36px;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-toggle {
    display: none;
    background: none;
    padding: 8px;
    color: var(--text-primary);
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.06);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    font-weight: 600;
}

.nav-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.chevron-icon {
    width: 14px;
    height: 14px;
}

.nav-auth {
    flex-shrink: 0;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    display: none;
    overflow: hidden;
    z-index: 1001;
}

.user-dropdown.show {
    display: block;
    animation: fadeDown 0.2s ease;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    color: var(--text-primary);
    font-size: 0.9rem;
    background: none;
    text-decoration: none;
    border: none;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary);
}

/* === Modal === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: white;
    border-radius: var(--radius-xl);
    padding: 36px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: scaleIn 0.3s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.modal-close svg {
    width: 16px;
    height: 16px;
}

.modal-close:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-brand-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.modal-header h2 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    padding: 4px;
}

.modal-tab {
    flex: 1;
    padding: 8px 0;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
}

.modal-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: #f8fafc;
}

.form-group input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    min-height: 20px;
}

.form-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.btn-full {
    width: 100%;
}

/* === Main Content === */
.main-content {
    position: relative;
    z-index: 1;
    max-width: 1800px;
    margin: 0 auto;
    padding: 24px;
    min-height: calc(100vh - 64px - 60px);
}

/* === Page Header === */
.page-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 20px 0;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* === Glass Card === */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 24px;
    margin-bottom: 24px;
}

/* === Filter Section === */
.filter-section {
    margin-bottom: 24px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.filter-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    background: white;
    color: var(--text-primary);
}

.filter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.filter-input::placeholder {
    color: var(--text-muted);
}

.filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    background: white;
    color: var(--text-primary);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 32px;
    cursor: pointer;
}

.filter-select:focus {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-search {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.btn-reset {
    padding: 10px 24px;
    background: #f1f5f9;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-reset:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.btn-stats {
    padding: 8px 18px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.filter-note {
    color: var(--primary);
    font-size: 0.82rem;
    font-style: italic;
    margin-top: 10px;
    padding-left: 4px;
}

/* === Table === */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
}

.data-table {
    width: 100%;
    min-width: 1500px;
    border-collapse: collapse;
    font-size: 0.85rem;
    table-layout: auto;
}

.data-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th {
    padding: 10px 12px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #1e40af;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    font-size: 0.82rem;
    border-bottom: 2px solid #93c5fd;
}

.data-table th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

.data-table th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.data-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    white-space: nowrap;
}

.data-table td.wrap {
    white-space: normal;
    max-width: 180px;
    word-break: break-all;
    overflow: hidden;
}

.data-table td.wrap .tag {
    white-space: normal;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.data-table td.wrap .cell-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.4;
}

.data-table td.wrap .position-card {
    background: rgba(219, 234, 254, 0.5);
    border: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-primary);
    white-space: pre-line;
    word-break: break-all;
    max-height: 80px;
    overflow-y: auto;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

.data-table tbody tr:nth-child(even) {
    background: rgba(241, 245, 249, 0.4);
}

.data-table tbody tr:nth-child(even):hover {
    background: rgba(59, 130, 246, 0.06);
}

/* === Tags === */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}

.tag-private {
    background: #fef3c7;
    color: #92400e;
}

.tag-state {
    background: #dbeafe;
    color: #1e40af;
}

.tag-foreign {
    background: #d1fae5;
    color: #065f46;
}

.tag-bank {
    background: #ede9fe;
    color: #5b21b6;
}

.tag-institution {
    background: #fce7f3;
    color: #9d174d;
}

.tag-joint {
    background: #e0e7ff;
    color: #3730a3;
}

.tag-spring {
    background: #fce7f3;
    color: #9d174d;
}

.tag-autumn {
    background: #fed7aa;
    color: #9a3412;
}

.tag-intern {
    background: #d1fae5;
    color: #065f46;
}

.tag-supplement {
    background: #e9d5ff;
    color: #6b21a8;
}

.tag-social {
    background: #fef3c7;
    color: #92400e;
}

.tag-year {
    background: #d1fae5;
    color: #065f46;
}

.tag-status {
    background: #f1f5f9;
    color: #64748b;
}

.tag-applied {
    background: #dbeafe;
    color: #1e40af;
}

.tag-tested {
    background: #e9d5ff;
    color: #6b21a8;
}

.tag-interviewed {
    background: #fef3c7;
    color: #92400e;
}

.tag-failed {
    background: #fee2e2;
    color: #991b1b;
}

.tag-passed {
    background: #d1fae5;
    color: #065f46;
}

.tag-skip {
    background: #f1f5f9;
    color: #94a3b8;
}

/* === Status Select === */
.status-select {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    outline: none;
    appearance: auto;
}

.status-select.status-default { background: #f1f5f9; color: #64748b; }
.status-select.status-applied { background: #dbeafe; color: #1e40af; }
.status-select.status-tested { background: #e9d5ff; color: #6b21a8; }
.status-select.status-interviewed { background: #fef3c7; color: #92400e; }
.status-select.status-failed { background: #fee2e2; color: #991b1b; }
.status-select.status-passed { background: #d1fae5; color: #065f46; }
.status-select.status-skip { background: #f1f5f9; color: #94a3b8; }

/* === Buttons === */
.btn-apply {
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

a.btn-apply {
    text-decoration: none;
}

a.btn-apply:hover {
    color: white;
}

.btn-apply-disabled {
    padding: 5px 14px;
    background: #cbd5e1;
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-notice {
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

a.btn-notice {
    text-decoration: none;
}

a.btn-notice:hover {
    color: white;
}

.btn-notice:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-action-group {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
}

.member-only {
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

/* === Pagination === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-right: 12px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
}

.page-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}

.page-go-btn {
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.online-count {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-left: 16px;
}

/* === Stat Cards === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* === Tabs === */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    background: #f1f5f9;
    color: var(--text-secondary);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.tab-btn:hover:not(.active) {
    background: #e2e8f0;
}

/* === Material Cards Grid === */
.materials-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s;
}

.section-title:hover {
    color: var(--primary);
}

.section-chevron {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.materials-section.collapsed .section-chevron {
    transform: rotate(-90deg);
}

.materials-section.collapsed .cards-grid {
    display: none;
}

.materials-section.collapsed .section-title {
    margin-bottom: 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.material-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.material-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.material-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.material-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.material-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.material-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* === Resume Service Cards === */
.service-section {
    margin-bottom: 40px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon svg {
    width: 26px;
    height: 26px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.service-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === Footer === */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 24px;
    color: var(--text-muted);
    font-size: 0.82rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* === Side Toolbar === */
.side-toolbar {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toolbar-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.toolbar-btn:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

.toolbar-btn svg {
    width: 20px;
    height: 20px;
}

/* === Notice Modal === */
.notice-modal-content {
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.8;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* === Status Dropdown in table === */
.status-select {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    background: white;
    cursor: pointer;
}

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { transform: translateY(12px); }
    to { transform: translateY(0); }
}

.animate-in {
    animation: slideUp 0.4s ease;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 56px;
        padding: 0 16px;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }
    .nav-links.show {
        display: flex;
    }
    .nav-link {
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }
    .main-content {
        padding: 16px;
    }
    .page-title {
        font-size: 1.5rem;
    }
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .glass-card {
        padding: 16px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .service-cards {
        grid-template-columns: 1fr;
    }
    .pagination {
        gap: 4px;
    }
    .pagination-info {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 8px;
    }
    .online-count {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 8px;
    }
    .side-toolbar {
        right: 12px;
        bottom: 80px;
    }
    .toolbar-btn {
        width: 38px;
        height: 38px;
    }
    .filter-actions {
        flex-wrap: wrap;
    }
    .btn-stats {
        font-size: 0.8rem;
    }
    .modal {
        padding: 24px;
        width: 95%;
    }
}

.view-toggle {
    display: flex;
    margin-left: auto;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 4px;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
}

.view-toggle-btn svg {
    width: 16px;
    height: 16px;
}

.view-toggle-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-view-container {
    margin-bottom: 24px;
}

.card-view-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: start;
}

.card-column {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.card-column-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    flex-shrink: 0;
    font-weight: 700;
}

.card-city-name {
    font-size: 1rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.card-city-count {
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: auto;
}

.card-column-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-column-empty {
    text-align: center;
    padding: 24px 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.job-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.job-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.job-card-company {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.job-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.job-card-tags .tag {
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.job-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    min-width: 0;
}

.job-card-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1.5;
    flex-wrap: wrap;
    min-width: 0;
}

.job-card-label {
    color: var(--text-muted);
    flex-shrink: 0;
}

.job-card-position {
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-all;
    overflow-wrap: anywhere;
    flex: 1;
    min-width: 0;
}

.job-card-text {
    color: var(--text-secondary);
    word-break: break-all;
}

.job-card-deadline {
    margin-left: auto;
    color: var(--text-muted);
    flex-shrink: 0;
}

.job-card-remark {
    background: rgba(241, 245, 249, 0.6);
    border-radius: var(--radius-sm);
    padding: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    word-break: break-all;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

a.card-link {
    text-decoration: none;
}

.card-link:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.job-card-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.tag-industry {
    background: #e0f2fe;
    color: #0369a1;
}

.card-view-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

.card-view-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.card-load-more {
    grid-column: 1 / -1;
    text-align: center;
    padding: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-card {
        padding: 14px;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .brand-text {
        font-size: 1.1rem;
    }
    .tabs {
        flex-wrap: wrap;
    }
    .tab-btn {
        flex: 1;
        text-align: center;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .view-toggle {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 1400px) {
    .card-view-board {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .card-view-board {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .card-view-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .card-view-board {
        grid-template-columns: 1fr;
    }
}
