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

:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #dc2626;
    --accent-color: #f59e0b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-light: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-dark: #1f2937;
    --border-color: #d1d5db;
    --border-light: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

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

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

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

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.header-top {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 8px 0;
    font-size: 12px;
}

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

.header-main {
    background: white;
    border-bottom: 3px solid var(--primary-color);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.nav-area {
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-nav li a {
    display: block;
    padding: 12px 25px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.main-nav li a:hover,
.main-nav li a.active {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 30px;
    padding-left: 30px;
    border-left: 1px solid var(--border-color);
}

.nav-user a {
    color: var(--text-primary);
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-user a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.banner-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 50%, var(--primary-light) 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>') center/200px repeat;
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.banner-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.banner-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.banner-btn {
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-section {
    padding: 50px 0;
    background: var(--bg-secondary);
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.section-title h2 {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2::before {
    content: '';
    width: 5px;
    height: 24px;
    background: var(--secondary-color);
    border-radius: 3px;
}

.more-link {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 13px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.service-card {
    background: white;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.service-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.service-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.info-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.info-card-header {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
}

.info-card-body {
    padding: 20px;
}

.notice-list {
    list-style: none;
}

.notice-list li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 18px;
}

.notice-list li a {
    flex: 1;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-list li a:hover {
    color: var(--primary-color);
}

.notice-date {
    color: var(--text-light);
    font-size: 12px;
    white-space: nowrap;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: 30px;
    color: var(--primary-color);
    font-size: 24px;
}

.step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.step-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 25px;
    padding: 30px 0;
}

.sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.sidebar-title {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: var(--bg-secondary);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.main-content {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.content-header {
    background: var(--bg-secondary);
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-light);
}

.content-header h1 {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-body {
    padding: 30px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-label .required {
    color: var(--danger-color);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-control:hover {
    border-color: var(--primary-light);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-actions {
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 15px;
    justify-content: center;
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(30, 58, 138, 0.02);
}

.file-upload-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.file-upload-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.file-upload-hint {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
}

.data-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-submitted {
    background: #dbeafe;
    color: #1e40af;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-reviewing {
    background: #e0e7ff;
    color: #3730a3;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-certificate {
    background: #fce7f3;
    color: #9d174d;
}

.status-certified {
    background: var(--success-color);
    color: white;
}

.status-correction {
    background: #fed7aa;
    color: #9a3412;
}

.status-invalid {
    background: #fee2e2;
    color: #991b1b;
}

.status-correction-review {
    background: #c7d2fe;
    color: #4338ca;
}

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

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

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

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
}

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

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

.pagination .disabled {
    color: var(--text-light);
    cursor: not-allowed;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: white;
    border-radius: 8px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 25px;
}

.detail-row {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-light);
}

.detail-label {
    width: 120px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    color: var(--text-primary);
}

.footer {
    background: var(--bg-dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #9ca3af;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 13px;
}

.footer-contact p {
    margin-bottom: 8px;
    font-size: 13px;
    color: #9ca3af;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    flex-shrink: 0;
}

.admin-sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.admin-logo-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.admin-menu {
    list-style: none;
    padding: 20px 0;
}

.admin-menu li a {
    display: block;
    padding: 12px 25px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.admin-menu li a:hover,
.admin-menu li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: white;
    text-decoration: none;
}

.admin-content {
    flex: 1;
    background: var(--bg-secondary);
    overflow: auto;
}

.admin-header {
    background: white;
    padding: 15px 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.admin-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-body {
    padding: 30px;
}

.admin-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 25px;
}

.admin-card-header {
    padding: 18px 25px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.admin-card-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--primary-color);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

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

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

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

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
    
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-area {
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-user {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
        width: 100%;
        justify-content: center;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .banner-subtitle {
        font-size: 14px;
    }
    
    .banner-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
    
    .admin-menu {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .admin-menu li a {
        padding: 10px 15px;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    
    .admin-menu li a:hover,
    .admin-menu li a.active {
        border-left: none;
        border-bottom-color: white;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
