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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 {
    font-size: 2.2rem;
    color: #fff;
}

h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-top: 1.5em;
}

h3 {
    font-size: 1.5rem;
    color: #34495e;
}

h4 {
    font-size: 1.2rem;
    color: #34495e;
}

p {
    margin-bottom: 1em;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #1d6fa5;
    text-decoration: underline;
}

ul {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

/* Header */
.header {
    background-color: #3498db;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 1em 0;
    padding: 0;
}

.main-nav li {
    margin-right: 20px;
}

.main-nav a {
    color: #fff;
    font-weight: 600;
}

.main-nav a.active {
    border-bottom: 2px solid #fff;
}

/* Hero Section */
.hero {
    background-color: #2980b9;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5em;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Generator Section */
.generator-section {
    padding: 50px 0;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.generator-section .container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.controls-area {
    flex: 1;
    min-width: 300px;
}

.results-area {
    flex: 2;
    min-width: 300px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group select,
.form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input {
    margin-right: 8px;
}

button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

#generate-btn {
    width: 100%;
    font-weight: 600;
    font-size: 18px;
}

/* Results Area */
.address-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.address-card h4 {
    margin-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.address-line {
    margin-bottom: 5px;
    font-size: 16px;
}

.address-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.copy-btn, .regenerate-btn {
    padding: 8px 15px;
    font-size: 14px;
}

.export-options {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Info Section */
.info-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.learn-more {
    margin-top: 30px;
    text-align: center;
}

.learn-more a {
    font-weight: 600;
    font-size: 18px;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #ecf0f1;
    margin: 0 10px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2c3e50;
    color: #fff;
    padding: 15px 25px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Compact Styles */
.footer-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 0;
    gap: 20px;
}

.footer-brand strong {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .generator-section .container {
        flex-direction: column;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        margin-bottom: 10px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .footer-compact {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* 国旗emoji样式 */
.flag-emoji {
    font-size: 3rem;
    display: inline-block;
    line-height: 1;
} 