/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center; /* 改为居中 */
    height: 100%;
    position: relative;
}

.logo {
    position: absolute;
    left: 15px;
}



.logo img {
    display: block;
    width: 120px;
    height: 80px;
    object-fit: contain;
}

.nav-menu {
display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* ===== MAIN CONTENT SPACING ===== */
.main {
    margin-top: 100px;
}

/* ===== BANNER SECTIONS ===== */
.ad-banner {
    margin: 20px auto;
}

.ad-placeholder {
    height: 70px;
    background: #f8f9fa;
    border: 1px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.hero-banner {
    margin: 20px auto;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	max-width: 1000px;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== NOTICE SECTIONS ===== */
.notice-section {
    background: #fefedb;
    padding: 30px;
    border-radius: 8px;
    margin: 30px auto;
    border-left: 4px solid #667eea;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.notice-list {
    list-style: none;
}

.notice-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.notice-list li:last-child {
    border-bottom: none;
}

/* ===== COMING SOON SECTION ===== */
.coming-soon {
    text-align: center;
    margin: 30px auto;
}

.welcome-message {
    background: #fefedb;
    padding: 20px;
    border-radius: 8px;
}

.welcome-message h3 {
    color: #ff0004;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
    background-color: fefedb;
    padding: 30px;
    border-radius: 8px;
    margin: 30px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-header h3 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #333;
}

.download-instructions {
    background-color: #fefedb;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.download-instructions h4 {
    color: #333;
    margin-bottom: 15px;
}

.instructions-list {
    list-style: none;
}

.instructions-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.instructions-list li:last-child {
    border-bottom: none;
}

/* ===== PAYMENT NOTICE ===== */
.payment-notice {
    text-align: center;
    margin: 25px 0;
}

.payment-alert {
    background: lightyellow;
    color: red;
    padding: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid red;
    border-radius: 6px;
    margin-bottom: 15px;
}

.flash-notice {
    background: #fefedb;
    padding: 15px;
    border-radius: 6px;
}

#flashText {
    font-size: 1rem;
    margin: 0;
    font-weight: bold;
    text-align: center;
}

/* ===== DOWNLOAD GRID ===== */
.download-grid {
    margin: 30px 0;
}

.time-period {
    margin-bottom: 25px;
}

.period-indicator {
    background: #fca7f4;
    color: #1200fd;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 6px;
}

.province-group {
    display: grid;
    gap: 20px;
}

.province-item {
    border-bottom: 1px dashed #dcdcdc;
    padding-bottom: 20px;
}

.province-item:last-child {
    border-bottom: none;
}

.province-name {
    color: #d90002;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #d90002;
}

.city-downloads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.city-item {
    background: #e8e8e8;
    padding: 10px 15px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

a .city-item {
    color: inherit;
    text-decoration: none;
}

.city-item:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

a:hover .city-item {
    color: white;
    text-decoration: none;
}

/* ===== DOWNLOAD FOOTER ===== */
.download-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.contact-info {
    color: #0900e8;
    font-weight: bold;
    font-size: 1.1rem;
}

/* ===== FRIENDS LINKS ===== */
.friends-links {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin: 30px auto;
}

.friends-links h4 {
    margin-bottom: 15px;
    color: #333;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.links-grid a {
    background: #64bcfc;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.links-grid a:hover {
    background: #4a9de0;
}

/* ===== SITE FOOTER ===== */
.site-footer {
    background: white;
    padding: 25px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #e9ecef;
}

.site-footer p {
    margin: 5px 0;
    color: #666;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .header {
        height: 70px;
    }

    .logo img {
        width: 80px;
        height: 60px;
    }

    .nav-menu {
        gap: 10px;
    }

    .nav-menu li a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .main {
        margin-top: 80px;
    }

    .hero-banner {
        height: 200px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .download-section {
        padding: 20px;
    }

    .city-downloads {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nav {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
		justify-content: flex-start;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
	
	.logo {
        position: static; /* 移动端取消定位 */
        margin-bottom: 10px;
    }

    .hero-banner {
        height: 150px;
    }

    .payment-alert {
        font-size: 1rem;
        padding: 15px;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes colorFlash {
    0% { color: red; }
    33% { color: green; }
    66% { color: blue; }
    100% { color: red; }
}

.flash-notice p {
    animation: colorFlash 1.5s infinite;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
.city-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .city-item {
        border: 1px solid currentColor;
    }
    
    .notice-section {
        border: 1px solid currentColor;
    }
}
