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

:root {
    --un-blue: #4A7DB5;
    --un-blue-dark: #3a6595;
    --un-blue-light: #6a9dd5;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --brown: #8B4513;
    --light-brown: #D2691E;
    --accent-color: #FFD700;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --error-color: #f44336;
}

body {
    font-family: "Noto Sans SC", "ZPix", sans-serif;
    line-height: 1.8;
    color: var(--dark-gray);
    background: linear-gradient(180deg, #e8eef4 0%, #d0d9e3 100%);
    min-height: 100vh;
}

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

header {
    background: linear-gradient(135deg, var(--un-blue) 0%, var(--un-blue-dark) 100%);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    border-bottom: 6px solid var(--brown);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: fadeIn 0.8s ease-out;
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-panel {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.user-info {
    font-size: 1.1rem;
    font-weight: bold;
}

.role-badge {
    background: var(--brown) !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 69, 19, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(139, 69, 19, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 69, 19, 0);
    }
}

.logo-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--white);
    object-fit: contain;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05) rotate(5deg);
}

header h1 {
    font-family: "Noto Serif SC", serif;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out 0.2s both;
}

header .subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    animation: fadeIn 1s ease-out 0.4s both;
}

nav {
    background: var(--dark-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid var(--un-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-header {
    display: none;
    justify-content: flex-end;
    padding: 15px 0;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active .menu-icon:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active .menu-icon:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-icon:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
}

.nav-menu li {
    margin: 0;
}

.nav-menu li a {
    display: block;
    padding: 16px 24px;
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    white-space: nowrap;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: var(--un-blue);
    border-bottom-color: var(--accent-color);
    transform: translateY(-2px);
}

/* 导航菜单响应式优化 */
@media (max-width: 1024px) {
    .nav-menu li a {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    nav {
        position: relative;
    }
    
    .nav-header {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-gray);
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        max-height: 500px;
        padding: 10px 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu li a {
        padding: 12px 18px;
        font-size: 0.9rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li a:hover,
    .nav-menu li a.active {
        transform: none;
    }
}

main {
    padding: 60px 0;
}

.section {
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

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

.section-title {
    font-family: "Noto Serif SC", serif;
    font-size: 2.4rem;
    color: var(--un-blue-dark);
    margin-bottom: 40px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 4px solid var(--un-blue);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-color);
}

.nes-container {
    margin-bottom: 35px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.nes-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nes-container.with-title > .title {
    background: var(--un-blue);
    color: var(--white);
    font-family: "Noto Serif SC", serif;
    padding: 15px 20px;
    font-size: 1.2rem;
}

.news-slider {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    padding: 35px;
    border-left: 5px solid var(--un-blue);
    transition: all 0.3s ease;
}

.news-item:hover {
    border-left-color: var(--accent-color);
    background: rgba(74, 125, 181, 0.05);
}

.news-date {
    display: inline-block;
    background: var(--un-blue);
    color: var(--white);
    padding: 5px 15px;
    margin-bottom: 10px;
    font-weight: bold;
    border-radius: 20px;
}

.news-item h4 {
    color: var(--un-blue-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.news-item:hover h4 {
    color: var(--un-blue);
}

.timeline-container {
    position: relative;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    animation: fadeInLeft 0.6s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 15px;
    width: 20px;
    height: 20px;
    background: var(--un-blue);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 3px var(--un-blue);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-color);
    transform: scale(1.2);
}

.timeline::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--un-blue-light);
}

.timeline-content {
    padding: 25px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
}

.timeline-date {
    display: inline-block;
    background: var(--brown);
    color: var(--white);
    padding: 3px 12px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    border-radius: 12px;
}

.timeline-content h4 {
    color: var(--un-blue-dark);
    margin-bottom: 8px;
}

.online-reps {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.rep-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.rep-item:hover {
    background: rgba(74, 125, 181, 0.1);
    transform: translateY(-2px);
}

.rep-country {
    font-weight: bold;
}

.rep-name {
    flex: 1;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.country-card {
    padding: 35px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--un-blue), var(--accent-color));
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.country-info {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    align-items: center;
}

.country-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 100px;
    background: rgba(74, 125, 181, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.country-card:hover .country-flag {
    background: rgba(74, 125, 181, 0.2);
    transform: scale(1.1);
}

.country-details p {
    margin: 8px 0;
    font-size: 1rem;
}

.country-desc {
    padding-top: 15px;
    border-top: 2px solid var(--light-gray);
    color: var(--dark-gray);
    font-style: italic;
}

.proposal-list,
.convention-list,
.court-list,
.archive-list,
.trade-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.proposal-item,
.convention-item,
.court-item,
.archive-item,
.trade-item {
    padding: 35px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.proposal-item:hover,
.convention-item:hover,
.court-item:hover,
.archive-item:hover,
.trade-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.proposal-header,
.court-header,
.trade-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.proposal-title,
.court-title,
.trade-title {
    color: var(--un-blue-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.proposal-desc,
.court-desc,
.trade-desc {
    margin-bottom: 15px;
    line-height: 1.7;
}

.proposal-meta,
.trade-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.proposal-vote {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.proposal-vote button {
    transition: all 0.3s ease;
}

.proposal-vote button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.convention-date {
    display: inline-block;
    background: var(--un-blue-light);
    color: var(--white);
    padding: 5px 15px;
    margin-top: 10px;
    border-radius: 15px;
}

.court-number {
    font-weight: bold;
    color: var(--brown);
}

.complaint-form {
    max-width: 700px;
    margin: 0 auto;
}

.complaint-form .nes-field {
    margin-bottom: 20px;
}

.map-container {
    display: flex;
    justify-content: center;
}

.map-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px;
    text-decoration: none;
    color: var(--dark-gray);
    transition: all 0.3s ease;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-link:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.map-url {
    color: var(--un-blue);
    font-weight: bold;
    word-break: break-all;
    transition: color 0.3s ease;
}

.map-link:hover .map-url {
    color: var(--un-blue-dark);
    text-decoration: underline;
}

footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 6px solid var(--un-blue);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

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

.footer-section h4 {
    color: var(--un-blue-light);
    margin-bottom: 15px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.footer-section p {
    margin: 8px 0;
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section p:hover {
    color: var(--white);
}

.footer-section a {
    color: var(--un-blue-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
    text-decoration: underline;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #888;
    font-size: 0.9rem;
}



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

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal {
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.5s ease;
}

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

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-gray);
    z-index: 10;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--error-color);
    transform: rotate(90deg);
}

.cancel-btn {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

.admin-nav {
    display: none;
}

.admin-nav.visible {
    display: list-item;
}

/* 按钮样式优化 */
.nes-btn {
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nes-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nes-btn:hover::before {
    left: 100%;
}

.nes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.nes-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.nes-btn.is-primary {
    background-color: var(--un-blue);
    color: white;
    border-color: var(--un-blue-dark);
}

.nes-btn.is-primary:hover {
    background-color: var(--un-blue-dark);
}

.nes-btn.is-warning {
    background-color: var(--warning-color);
    color: white;
    border-color: #e68a00;
}

.nes-btn.is-warning:hover {
    background-color: #e68a00;
}

/* 输入框样式优化 */
.nes-input {
    transition: all 0.3s ease;
    border-radius: 4px;
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
}

.nes-input:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(74, 125, 181, 0.2);
    border-color: var(--un-blue);
    outline: none;
}

.nes-textarea {
    transition: all 0.3s ease;
    border-radius: 4px;
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
}

.nes-textarea:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(74, 125, 181, 0.2);
    border-color: var(--un-blue);
    outline: none;
}

.nes-select {
    transition: all 0.3s ease;
    border-radius: 4px;
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
}

.nes-select:focus {
    box-shadow: 0 0 0 3px rgba(74, 125, 181, 0.2);
    border-color: var(--un-blue);
    outline: none;
}

/* 徽章样式优化 */
.nes-badge {
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 0.85rem;
}

.nes-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 表单样式优化 */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.form-actions button {
    flex: 1;
    min-width: 120px;
    padding: 10px 20px;
}

.required {
    color: var(--error-color);
    font-weight: bold;
    margin-left: 4px;
}

.form-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.95rem;
    display: none;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 4px solid var(--error-color);
    color: var(--error-color);
    display: block;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
    display: block;
}

.complaint-form,
.trade-form,
.admin-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.nes-field {
    margin-bottom: 20px;
}

.nes-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-gray);
}

/* 滚动条样式优化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--un-blue-light);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--un-blue);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(74, 125, 181, 0.3);
    border-radius: 50%;
    border-top-color: var(--un-blue);
    animation: spin 1s ease-in-out infinite;
}

.loading-spinner {
    display: block;
    width: 80px;
    height: 80px;
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    border-right-color: var(--accent-color);
    border-bottom-color: #fff;
    border-left-color: var(--accent-color);
    animation: spin 0.8s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    z-index: 10001;
    background: rgba(0, 0, 0, 0.2);
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
}

.global-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.global-loading > div {
    pointer-events: auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 回到顶部按钮优化 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--un-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top:hover {
    background: var(--un-blue-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .back-to-top span {
        font-size: 0.7rem;
    }
}
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
        gap: 20px;
    }
    
    .user-panel {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 40px 0;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header .subtitle {
        font-size: 1.1rem;
    }
    
    .logo-img {
        width: 100px;
        height: 100px;
    }
    
    main {
        padding: 40px 0;
    }
    
    .section {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .country-grid {
        grid-template-columns: 1fr;
    }
    
    .country-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: -20px;
    }
    
    .timeline-marker {
        left: -30px;
    }
    
    .news-item,
    .country-card,
    .proposal-item,
    .convention-item,
    .court-item,
    .archive-item,
    .trade-item {
        padding: 25px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    header .subtitle {
        font-size: 1rem;
    }
    
    .logo-img {
        width: 80px;
        height: 80px;
    }
    
    .nav-menu li a {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .news-item,
    .country-card,
    .proposal-item,
    .convention-item,
    .court-item,
    .archive-item,
    .trade-item {
        padding: 20px;
    }
    
    .proposal-vote {
        flex-direction: column;
    }
    
    .proposal-vote button {
        width: 100%;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-section {
        padding: 0 10px;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
}

/* 小屏幕设备优化 */
@media (max-width: 400px) {
    header h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .nes-container.with-title > .title {
        font-size: 1.1rem;
        padding: 12px 16px;
    }
    
    .news-item,
    .country-card,
    .proposal-item,
    .convention-item,
    .court-item,
    .archive-item,
    .trade-item {
        padding: 15px;
    }
}

/* 头条新闻轮播样式 - 仿照world-news列表样式 */
.headline-news-wrapper {
    position: relative;
}

.headline-news-container {
    min-height: 200px;
}

.headline-news-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-left: 4px solid var(--un-blue);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

.headline-news-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-left-color: var(--accent-color);
}

.headline-news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(74, 125, 181, 0.05) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.headline-news-card:hover::before {
    width: 100%;
}

.headline-news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 15px;
    background: linear-gradient(135deg, var(--un-blue) 0%, var(--un-blue-dark) 100%);
    color: white;
    border-radius: 10px;
    text-align: center;
}

.headline-news-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.headline-news-date .month {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 4px;
}

.headline-news-date .year {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 2px;
}

.headline-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.headline-news-title {
    color: var(--un-blue-dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: "Noto Serif SC", serif;
    transition: color 0.3s ease;
}

.headline-news-card:hover .headline-news-title {
    color: var(--un-blue);
}

.headline-news-desc {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 控制按钮样式 - NES风格 */
.headline-news-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-top: 4px solid #e0e0e0;
    margin-top: 10px;
}

.headline-news-btn {
    padding: 8px 16px;
    border: 2px solid #333;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 #333;
    font-family: "Noto Sans SC", sans-serif;
}

.headline-news-btn:hover {
    background: var(--un-blue);
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #333;
}

.headline-news-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #333;
}

.headline-news-dots {
    display: flex;
    gap: 10px;
}

.headline-news-dot {
    width: 14px;
    height: 14px;
    border: 2px solid #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 0 #333;
}

.headline-news-dot:hover {
    background: var(--un-blue-light);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #333;
}

.headline-news-dot.active {
    background: var(--un-blue);
    border-color: var(--un-blue-dark);
    box-shadow: 2px 2px 0 var(--un-blue-dark);
}

/* 新闻列表样式 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-list-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-left: 4px solid var(--un-blue);
    position: relative;
    overflow: hidden;
}

.news-list-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-left-color: var(--accent-color);
}

.news-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(74, 125, 181, 0.05) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.news-list-item:hover::before {
    width: 100%;
}

.news-list-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 15px;
    background: linear-gradient(135deg, var(--un-blue) 0%, var(--un-blue-dark) 100%);
    color: white;
    border-radius: 10px;
    text-align: center;
}

.news-list-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.news-list-date .month {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 4px;
}

.news-list-date .year {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 2px;
}

.news-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list-title {
    color: var(--un-blue-dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: "Noto Serif SC", serif;
    transition: color 0.3s ease;
}

.news-list-item:hover .news-list-title {
    color: var(--un-blue);
}

.news-list-desc {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

.news-list-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffb300 100%);
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .headline-news-card {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .headline-news-date {
        flex-direction: row;
        gap: 8px;
        min-width: auto;
        padding: 10px 15px;
        justify-content: center;
    }
    
    .headline-news-date .day {
        font-size: 1.2rem;
    }
    
    .headline-news-date .month,
    .headline-news-date .year {
        margin-top: 0;
    }
    
    .headline-news-title {
        font-size: 1.1rem;
    }
    
    .headline-news-controls {
        gap: 15px;
        padding: 15px;
    }
    
    .headline-news-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .news-list-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .news-list-date {
        flex-direction: row;
        gap: 8px;
        min-width: auto;
        padding: 10px 15px;
    }
    
    .news-list-date .day {
        font-size: 1.2rem;
    }
    
    .news-list-date .month,
    .news-list-date .year {
        margin-top: 0;
    }
}

/* 投票系统样式 */
.vote-bar {
    display: flex;
    height: 40px;
    border: 3px solid #333;
    margin: 20px 0;
    overflow: hidden;
}

.vote-bar-fill {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
    min-width: 0;
}

.vote-bar-fill.for {
    background: #4CAF50;
}

.vote-bar-fill.against {
    background: #f44336;
}

.vote-bar-fill.abstain {
    background: #9E9E9E;
}

.vote-label {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 0 10px;
}

.voted {
    box-shadow: 0 0 0 3px var(--un-blue) !important;
}

/* 通知消息样式 */
.toast-message {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 管理后台样式 */
.admin-section {
    display: none;
}

.admin-section.visible {
    display: block;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-item {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.user-info-details {
    flex: 1;
}

.user-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.edit-modal {
    max-width: 600px !important;
}

/* 其他样式 */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.online-count {
    font-size: 0.9rem;
    color: #4CAF50;
    font-weight: normal;
}

.relation-friendly {
    color: #4CAF50;
    font-weight: bold;
}

.relation-hostile {
    color: #f44336;
    font-weight: bold;
}

.relation-neutral {
    color: #FF9800;
    font-weight: bold;
}

.rep-item.offline {
    opacity: 0.5;
}

.map-hint {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}


