* {
    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;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-link {
    text-decoration: none;
    color: white;
}

.logo-link:hover {
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.3s;
}

.nav a:hover, .nav a.active {
    background: rgba(255,255,255,0.2);
}

.main {
    padding: 20px 0;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.search-bar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.search-select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    min-width: 120px;
}

.search-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.job-list {
    display: grid;
    gap: 15px;
}

.job-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.company-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.update-time {
    font-size: 0.85rem;
    color: #999;
}

.job-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
}

.meta-item .icon {
    width: 16px;
    height: 16px;
}

.industry-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #e8f4fd;
    color: #1976d2;
    border-radius: 15px;
    font-size: 0.85rem;
}

.type-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #fff3e0;
    color: #f57c00;
    border-radius: 15px;
    font-size: 0.85rem;
}

.job-positions {
    margin-top: 10px;
}

.positions-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.positions-content {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.8;
}

.locations {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
}

.action-row {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.apply-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.page-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.footer {
    background: #333;
    color: #999;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav {
        gap: 10px;
    }
    
    .nav a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input, .search-select {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .job-header {
        flex-direction: column;
    }
    
    .company-name {
        font-size: 1.1rem;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .detail-company {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .job-card {
        padding: 15px;
    }
    
    .page-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}
