/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #f4f6f9; /* Slightly more modern light gray background */
    color: #333;
    font-size: 13px;
    line-height: 1.5;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #1890ff;
}

/* Top Bar */
.top-bar {
    width: 100%;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.top-login {
    text-align: right;
    padding: 8px 20px;
    font-size: 13px;
    color: #666;
}

.top-warning {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    color: #e53935; /* More modern red */
    margin: 10px 0;
    letter-spacing: 1px;
}

.warning-text {
    text-decoration: underline;
}

.top-support {
    text-align: right;
    font-size: 12px;
    padding-right: 20px;
    padding-bottom: 10px;
    color: #666;
}

/* Layout */
.main-layout {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px; /* Modern touch */
    overflow: hidden; /* For border radius */
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); /* Modern card shadow */
    background: #fff;
}

/* Sidebar */
.sidebar {
    width: 180px; /* Slightly wider */
    background-color: #f8fafc; /* Softer gray-blue */
    border-right: 1px solid #e2e8f0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    border-bottom: 1px solid #e2e8f0;
    background-color: #f1f5f9;
    transition: background-color 0.2s;
}

.sidebar-menu li:hover {
    background-color: #e2e8f0;
}

.sidebar-menu a, .sidebar-menu li {
    display: block;
    padding: 12px 15px;
    color: #0f4c81; /* Darker official blue */
    font-size: 14px;
    font-weight: 500;
}

.sidebar-menu li.active {
    background-color: #e0f2fe;
    border-left: 4px solid #0284c7; /* Modern active indicator */
    color: #0369a1;
}

.arrow {
    color: #e53935;
    font-weight: bold;
    margin-right: 8px;
}

/* Main Content */
.content {
    flex: 1;
    padding: 20px;
    background: #fff;
}

.content-header {
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

.content-header h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #1e293b;
    font-weight: 600;
}

.sub-header {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #475569;
}

.time-header {
    font-size: 13px;
    color: #e53935;
    font-weight: 500;
    background: #fee2e2;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
}

/* List View Table */
.list-view-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.list-table th, .list-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.list-table th {
    background-color: #bae6fd;
    color: #0369a1;
    font-weight: 600;
}

.list-table tbody tr {
    transition: background-color 0.2s;
}

.list-table tbody tr:hover {
    background-color: #f8fafc;
}

.list-table td {
    color: #475569;
    font-size: 14px;
}

.status-green {
    color: #10b981;
    font-weight: 600;
}

.btn-fill {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-fill:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

/* Action Bar with Quick Buttons (mostly removed but kept for detail view action bar) */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
}

.quick-batch-buttons {
    display: flex;
    gap: 10px;
}

.btn-quick {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-quick:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-quick.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 2px 4px rgba(37,99,235,0.3);
}

.simulator-controls {
    font-size: 13px;
    color: #475569;
}

.simulator-controls select {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    outline: none;
}

.simulator-controls select:focus {
    border-color: #3b82f6;
}

.official-buttons .btn {
    padding: 6px 14px;
    background-color: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.official-buttons .btn:hover {
    background-color: #f1f5f9;
}

.btn-red-text {
    color: #e53935;
    font-weight: 500;
}

/* Modern Card for Form */
.modern-card {
    border-radius: 8px;
}

/* Table */
.table-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden; /* makes the border-radius clip the table nicely */
    border: 1px solid #bae6fd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

table.volunteer-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

table.volunteer-table th, 
table.volunteer-table td {
    border: 1px solid #e0f2fe; /* Softer inner borders */
    padding: 6px 8px; /* Slightly more padding */
    height: 32px;
    vertical-align: middle;
}

.section-title {
    background-color: #bae6fd; /* Official blue hue but modern */
    font-weight: 600;
    text-align: center;
    color: #0369a1;
    font-size: 14px;
}

.choice-title {
    background-color: #e0f2fe;
    text-align: center;
    font-weight: 600;
    color: #075985;
    font-size: 13px;
}

.label {
    background-color: #f0f9ff;
    text-align: center;
    font-weight: 500;
    color: #334155;
}

/* Inputs */
.code-input-cell, .name-input-cell {
    background-color: #fff;
    transition: background-color 0.2s;
}

.code-input-cell:focus-within, .name-input-cell:focus-within {
    background-color: #f8fafc;
}

input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid transparent; /* invisible border */
    padding: 4px 6px;
    font-size: 13px;
    outline: none;
    color: #2563eb; /* Modern Blue */
    font-family: inherit;
    background: transparent;
    border-radius: 4px;
    transition: all 0.2s;
}

input[type="text"]:focus {
    background-color: #fff;
    border: 1px solid #93c5fd;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.1);
}

input[type="text"]::placeholder {
    color: #94a3b8;
}

input[type="text"].readonly-look {
    color: #2563eb;
    font-weight: 500;
}

.radio-group {
    text-align: center;
}

.radio-group label {
    margin: 0 10px;
    cursor: pointer;
    color: #475569;
}

/* Captcha and Submit */
.captcha-area {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.captcha-img {
    vertical-align: middle;
    border-radius: 4px;
}

.refresh-captcha {
    color: #2563eb;
    cursor: pointer;
    font-size: 13px;
    transition: color 0.2s;
}
.refresh-captcha:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.captcha-input {
    width: 70px;
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: #0f172a !important;
    padding: 6px !important;
}

.btn-submit {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    padding: 8px 24px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
    transition: all 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37,99,235,0.35);
}

.btn-edit {
    background: #fff;
    color: #e53935;
    border: 1px solid #e53935;
    padding: 8px 24px;
    font-weight: 600;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(229,57,53,0.1);
    transition: all 0.2s ease;
}

.btn-edit:hover {
    background: #fff3f3;
    box-shadow: 0 4px 12px rgba(229,57,53,0.15);
}

.submit-note {
    color: #e53935;
    font-size: 13px;
    font-weight: 500;
}

.footer {
    text-align: center;
    padding: 25px 0 10px;
    color: #94a3b8;
    font-size: 13px;
}

/* --- New Global & Utility Styles --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation (Official Website) */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}
.logo-icon {
    width: 60px;
    height: 60px;
    background: #e53935;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
    font-family: serif;
}
.logo-text h1 {
    color: #e53935;
    font-size: 26px;
    margin: 0;
    letter-spacing: 2px;
}
.logo-text p {
    color: #666;
    font-size: 12px;
    letter-spacing: 1px;
    margin: 0;
}
.header-banner {
    color: #2563eb;
    font-size: 28px;
    font-weight: bold;
    font-family: "KaiTi", "STKaiti", serif;
    letter-spacing: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.main-nav {
    background-color: #0369a1;
    color: white;
}
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list li {
    flex: 1;
    text-align: center;
}
.nav-list a {
    color: white;
    display: block;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}
.nav-list a:hover, .nav-list a.active {
    background-color: #0284c7;
    color: white;
}
.sub-nav {
    background-color: #f1f5f9;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}
.sub-nav .container {
    display: flex;
    gap: 20px;
}
.sub-nav a {
    color: #0369a1;
    font-size: 14px;
}

/* Home Page Layout */
.home-layout {
    display: grid;
    grid-template-columns: 4fr 5fr 3.5fr;
    gap: 20px;
    margin-top: 20px;
}
.hero-section {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background: #fff;
    margin-bottom: 20px;
}
.hero-placeholder {
    height: 350px;
    background: linear-gradient(135deg, #0f4c81, #0284c7);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}
.hero-title {
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 18px;
    width: 100%;
}
.news-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 20px;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0369a1;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.card-title {
    font-size: 18px;
    color: #0369a1;
    font-weight: 600;
}
.card-more {
    color: #94a3b8;
    font-size: 13px;
}
.card-more:hover {
    color: #3b82f6;
}
.news-list {
    list-style: none;
}
.news-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.news-list a {
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
}
.news-list a::before {
    content: "•";
    color: #e53935;
    margin-right: 8px;
    font-weight: bold;
}
.news-date {
    color: #94a3b8;
    font-size: 13px;
}

/* Home Multi-column news */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Service Hall Layout */
.service-hall-container {
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 30px;
}
.hall-header {
    background: linear-gradient(to right, #3b82f6, #0284c7);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 40px;
    clip-path: polygon(2% 0, 98% 0, 100% 100%, 0 100%);
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
}
.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    text-decoration: none;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #bae6fd;
}
.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 32px;
}
.service-item span {
    font-size: 15px;
    color: #334155;
    font-weight: 500;
}
.icon-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.icon-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.icon-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.icon-green { background: linear-gradient(135deg, #10b981, #059669); }
.icon-red { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* Bottom Information Grid in Service Hall */
.hall-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}
.hall-bottom-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.hall-bottom-card .card-header {
    background: #f8fafc;
    margin: 0;
    padding: 15px;
    border-radius: 8px 8px 0 0;
}
.hall-bottom-card .news-list {
    padding: 15px;
}

/* Login Page Layout */
.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f6f9;
}
.login-header {
    text-align: center;
    padding: 40px 0 20px;
    border-bottom: 2px solid #0369a1;
    margin-bottom: 40px;
    background: #fff;
}
.login-header h1 {
    color: #0369a1;
    font-size: 32px;
    margin-bottom: 15px;
}
.login-header h2 {
    color: #0369a1;
    font-size: 24px;
    font-weight: normal;
}
.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
}
.login-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 480px;
}
.login-form-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.login-form-group label {
    width: 80px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}
.login-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fff !important;
}
.login-input:focus {
    border-color: #3b82f6 !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.1);
}
.login-extra {
    margin-left: 10px;
    font-size: 13px;
    color: #2563eb;
}
.login-captcha-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.login-captcha-input {
    width: 120px !important;
}
.captcha-box {
    margin-left: 10px;
    border: 1px solid #cbd5e1;
    padding: 2px;
    border-radius: 4px;
}
.login-notice {
    text-align: center;
    color: #e53935;
    font-size: 13px;
    margin: 20px 0;
}
.login-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    line-height: 2;
}
.login-links a {
    color: #0369a1;
    font-weight: 500;
    margin: 0 10px;
}
.login-contact {
    text-align: center;
    color: #e53935;
    font-size: 14px;
    margin-top: 15px;
}
.login-submit-container {
    text-align: center;
    margin-top: 20px;
}
.login-submit-btn {
    width: 120px;
    height: 40px;
    font-size: 16px;
    background: #e2e8f0;
    color: #64748b;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.login-submit-btn:hover {
    background: #cbd5e1;
}

/* Manual Page Layout */
.manual-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    flex: 1;
}
.manual-title {
    text-align: center;
    color: #1e293b;
    font-size: 28px;
    margin-bottom: 10px;
}
.manual-subtitle {
    text-align: center;
    color: #e53935;
    font-size: 14px;
    margin-bottom: 30px;
}
.manual-article h3 {
    color: #0f4c81;
    font-size: 20px;
    margin: 30px 0 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}
.manual-article h4 {
    color: #334155;
    font-size: 16px;
    margin: 20px 0 10px;
    font-weight: 600;
}
.manual-article p {
    color: #475569;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 14px;
}
.manual-img-placeholder {
    width: 100%;
    max-width: 600px;
    height: 300px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #94a3b8;
    margin: 20px 0;
    font-size: 14px;
}
.manual-notice {
    background: #fff3f3;
    border-left: 4px solid #e53935;
    padding: 10px 15px;
    color: #e53935;
    margin: 15px 0;
    font-size: 13px;
}

/* 官方数字服务大厅 1:1 复刻样式 */
.official-subnav {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}
.official-subnav-tit {
    height: 50px;
    line-height: 50px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    font-size: 18px;
    font-weight: bold;
    color: #1e293b;
    padding-left: 20px;
    display: flex;
    align-items: center;
}
.official-subnav-tit::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #0284c7;
    margin-right: 10px;
    border-radius: 2px;
}
.official-subnav-cont {
    padding: 30px;
    min-height: 500px;
}
.official-subnav-cont ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.official-subnav-cont ul a {
    text-decoration: none;
    color: #334155;
    display: block;
    width: calc(33.333% - 14px); /* 3 columns */
}
.official-subnav-cont ul li {
    height: 60px;
    line-height: 60px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}
.official-subnav-cont ul li:hover {
    background: #f0f9ff;
    border-color: #7dd3fc;
    color: #0284c7;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.1);
    transform: translateY(-2px);
}
.official-subnav-cont ul li span {
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
}
.official-subnav-cont ul li span img {
    max-width: 100%;
    max-height: 28px;
}
