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

body {
    font-family: 'Microsoft JhengHei', '微軟正黑體', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

header {
    background: linear-gradient(135deg, #1a5276, #2980b9);
    color: white;
    padding: 2rem;
    text-align: center;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

nav {
    background-color: #2c3e50;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #34495e;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

h3 {
    color: #34495e;
    margin: 1.5rem 0 1rem;
}

.intro {
    text-align: center;
}

.national-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #3498db;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #3498db;
    border-radius: 50%;
}

.date {
    font-weight: bold;
    color: #2980b9;
    margin-bottom: 0.5rem;
}

.event {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.details ul {
    margin-left: 1.5rem;
}

.details li {
    margin-bottom: 0.3rem;
}

.chapter {
    margin-bottom: 2rem;
}

.article {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.article h4 {
    color: #2980b9;
    margin-bottom: 0.5rem;
}

.laws-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.law-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid #e74c3c;
}

.view-law {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.view-law:hover {
    background: #2980b9;
}

.government-structure {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.position-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.diplomacy-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.diplomacy-intro {
    text-align: center;
    max-width: 600px;
}

.diplomacy-intro h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.diplomacy-intro p {
    color: #34495e;
    line-height: 1.6;
}

.wiki-link {
    text-align: center;
    margin-top: 1.5rem;
}

.wiki-link a {
    display: inline-block;
    background: #8e44ad;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.wiki-link a:hover {
    background: #7d3c98;
}

.diplomacy-button {
    text-align: center;
}

.dashboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #27ae60;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.stats {
    display: grid;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.stat-label {
    color: #7f8c8d;
}

.stat-value {
    font-weight: bold;
    color: #2c3e50;
}

.recent-events {
    display: grid;
    gap: 0.5rem;
}

.event-item {
    display: flex;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
}

.event-date {
    font-weight: bold;
    color: #2980b9;
    margin-right: 1rem;
    min-width: 80px;
}

.join-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.join-intro h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.join-benefits {
    background: #e8f8f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border-left: 4px solid #27ae60;
}

.join-benefits h4 {
    color: #1a5276;
    margin-bottom: 0.8rem;
}

.join-benefits ul {
    list-style: disc;
    margin-left: 1.5rem;
}

.join-benefits li {
    margin-bottom: 0.5rem;
    color: #34495e;
}

.join-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.join-form p {
    margin-bottom: 1.5rem;
    color: #34495e;
    font-size: 1.1rem;
}

.join-btn {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.join-btn:hover {
    background: #219a52;
}

.join-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.join-documents {
    background: #fef9e7;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border-left: 4px solid #f39c12;
}

.join-documents h4 {
    color: #1a5276;
    margin-bottom: 0.8rem;
}

.join-documents p {
    margin-bottom: 0.5rem;
    color: #34495e;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

.footer-content p {
    margin: 0.3rem 0;
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .header-content p {
        font-size: 0.9rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0.5rem;
    }
    
    nav ul li {
        margin: 0.3rem 0;
    }
    
    nav ul li a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .section {
        padding: 1.2rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .national-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-item {
        padding: 1rem;
    }
    
    .government-structure {
        grid-template-columns: 1fr;
    }
    
    .laws-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .join-container {
        grid-template-columns: 1fr;
    }
    
    .join-intro {
        text-align: center;
    }
    
    .timeline-item {
        padding-left: 1rem;
    }
    
    .event-item {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .stat-item {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
    
    .micronation-card {
        padding: 1rem;
    }
    
    .wiki-container {
        grid-template-columns: 1fr;
    }
    
    .wiki-sidebar {
        position: static;
        margin-bottom: 1rem;
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
    
    .timeline-mini-item {
        font-size: 0.9rem;
    }
    
    .diplomacy-container {
        padding: 1rem 0;
    }
}