* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.top {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.top h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.top p {
    color: #666;
    margin-top: 8px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav a, .nav span {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 14px 8px;
    text-decoration: none;
    color: #555;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.nav a:hover, .nav a.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.nav span {
    background: #f0f0ff;
    color: #667eea;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-3px);
}

.card h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: #333;
    border-left: 4px solid #667eea;
    padding-left: 12px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.service-card {
    background: linear-gradient(135deg, #f5f7fa, #fff);
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.service-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    transition: border 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 12px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #f56565, #ed64a6);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.task-list, .goods-list, .lost-list, .order-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-item, .goods-item, .lost-item, .order-item {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.task-item:hover, .goods-item:hover, .lost-item:hover, .order-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.task-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.task-badge {
    display: inline-block;
    background: #e9ecef;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-left: 8px;
}

.task-meta {
    font-size: 0.8rem;
    color: #888;
    margin: 8px 0;
}

.task-desc {
    color: #555;
    margin: 8px 0;
}

.task-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.login-wrap {
    max-width: 450px;
    margin: 40px auto;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.tab-bar {
    display: flex;
    background: #f8f9fa;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-item.active {
    background: white;
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

.login-box, .reg-box {
    padding: 30px;
    display: none;
}

.login-box.active, .reg-box.active {
    display: block;
}

.input-item {
    margin-bottom: 20px;
}

.input-item input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
}

.sub-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.empty-msg {
    text-align: center;
    padding: 40px;
    color: #999;
    background: #f8f9fa;
    border-radius: 16px;
}

#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-item:hover {
    background: #e9ecef;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
}

.file-meta {
    font-size: 12px;
    color: #888;
}

.profile-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .container { padding: 20px 15px; }
    .card { padding: 18px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .service-card { padding: 14px 8px; font-size: 0.85rem; }
    .nav a, .nav span { min-width: 70px; padding: 10px 5px; font-size: 0.75rem; }
}