* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #f8fafc;
    --accent-color: #10b981;
    --text-dark: #1e293b;
    --text-medium: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --card-hover-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.header p {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

.back-link {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.container {
    padding: 20px 16px;
    max-width: 420px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    box-shadow: var(--card-hover-shadow);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

.work-intro {
    line-height: 1.8;
}

.work-intro p {
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-medium);
}

.work-intro .fire {
    color: var(--warning-color);
    margin-right: 6px;
    font-size: 16px;
}

.highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 16px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 14px;
    color: #92400e;
    border-left: 4px solid #f59e0b;
    font-weight: 500;
}

.btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.2px;
}

.btn-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-orange:active {
    transform: translateY(0);
}

.btn-blue {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-blue:active {
    transform: translateY(0);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.required-note {
    color: var(--danger-color);
    font-size: 14px;
    margin-top: 12px;
    line-height: 1.7;
    font-weight: 500;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 340px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 18px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
}

.modal-body {
    padding: 28px 24px;
    text-align: center;
}

.modal-body p {
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-medium);
}

.modal-body .correct-text {
    color: var(--danger-color);
    font-weight: 700;
    margin: 14px 0;
    font-size: 16px;
}

.modal-footer {
    padding: 0 24px 24px;
}

.download-section {
    margin-top: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background: white;
    font-weight: 600;
}

.download-btn:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.download-btn img {
    width: 36px;
    height: 36px;
}

.download-btn span {
    font-weight: 600;
    font-size: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--text-dark);
}

.install-guide {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid #f59e0b;
}

.install-guide h4 {
    color: #92400e;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
}

.install-guide ul {
    list-style: none;
    padding-left: 0;
}

.install-guide li {
    font-size: 14px;
    color: #92400e;
    margin-bottom: 10px;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.install-guide li::before {
    content: '•';
    position: absolute;
    left: 6px;
    color: #f59e0b;
    font-weight: bold;
}

.tips {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--primary-light);
}

.tips h4 {
    color: #1e40af;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
}

.tips ul {
    list-style: none;
    padding-left: 0;
}

.tips li {
    font-size: 14px;
    color: #1e40af;
    margin-bottom: 10px;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.tips li::before {
    content: '•';
    position: absolute;
    left: 6px;
    color: var(--primary-color);
    font-weight: bold;
}

.login-container {
    max-width: 380px;
    margin: 60px auto;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 24px;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    overflow: hidden;
    border-radius: 12px;
}

.table th {
    background: var(--secondary-color);
    font-weight: 700;
    color: var(--text-dark);
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-medium);
}

.table tr:hover td {
    background: var(--secondary-color);
}

.table tr:last-child td {
    border-bottom: none;
}

.action-links a {
    margin-right: 12px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.2s;
}

.action-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.admin-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-header h1 {
    font-size: 18px;
    font-weight: 700;
}

.admin-header a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.admin-header a:hover {
    opacity: 0.8;
}

.admin-sidebar {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    color: white;
    padding: 24px 16px;
    min-height: calc(100vh - 64px);
}

.admin-sidebar ul {
    list-style: none;
    padding: 0;
}

.admin-sidebar li {
    margin-bottom: 8px;
}

.admin-sidebar a {
    color: #e2e8f0;
    text-decoration: none;
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-sidebar a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-content {
    padding: 24px;
    background: #f8fafc;
    min-height: calc(100vh - 64px);
}

.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.pagination {
    margin-top: 24px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    margin-right: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-color);
}

.download-flex {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

@media (max-width: 768px) {
    .admin-sidebar {
        min-height: auto;
    }
}

@media (max-width: 500px) {
    .download-flex {
        flex-direction: column;
    }
    .download-flex img {
        max-width: 180px;
        margin: 0 auto;
    }
}
