* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", Arial, sans-serif;
}

:root {
    --primary-color: #004085;
    --secondary-color: #6799CC;
    --accent-color: #FF6B35;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #212529;
    --text-gray: #495057;
    --border-color: #dee2e6;
    --white: #ffffff;
    --hover-color: #0056b3;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.18);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --background-light: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #ff8a65 100%);
}

body {
    color: var(--text-primary);
    line-height: 1.75;
    background-color: var(--white);
    font-size: 16px;
    font-family: "Microsoft Yahei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 90px 0;
    position: relative;
}

section:first-of-type {
    padding-top: 160px;
}

.section-title {
    text-align: center;
    font-size: 38px;
    color: var(--primary-color);
    margin-bottom: 65px;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.section-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 5px;
    background: var(--gradient-primary);
    margin: 22px auto 0;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 64, 133, 0.2);
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 35px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.4s ease;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.btn:hover::before {
    left: 100%;
    animation: btnShine 0.8s ease;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

@keyframes btnShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    font-size: 16px;
    color: var(--text-gray);
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

.banner {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url("https://picsum.photos/1920/600?random=1") no-repeat center center;
    background-size: cover;
    height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 70px;
}

.banner-content {
    max-width: 700px;
}

.banner-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-desc {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.guide {
    background-color: var(--light-gray);
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.guide-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
}

.guide-card-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.guide-card-title i {
    margin-right: 10px;
    font-size: 24px;
    color: var(--secondary-color);
}

.guide-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.guide-card li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.guide-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.schedule table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.schedule th, .schedule td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.schedule th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: normal;
}

.schedule tr:last-child td {
    border-bottom: none;
}

.schedule tr:hover {
    background-color: var(--light-gray);
}

.certificate {
    background-color: var(--light-gray);
}

.certificate-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.certificate-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.certificate-text h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.certificate-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 18px 20px;
    background-color: var(--white);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-question i {
    font-size: 20px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--white);
}

.faq-answer p {
    padding: 20px 0;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.quick-links-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #ccc;
}

/* Additional styles for city cards */
.cities {
    background-color: var(--white);
}

.cities-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.city-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.35s ease;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.city-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.city-card:hover::before {
    transform: scaleX(1);
}

.city-card i {
    font-size: 42px;
    color: var(--secondary-color);
    margin-bottom: 18px;
    transition: transform 0.35s ease, color 0.35s ease;
    position: relative;
    z-index: 1;
}

.city-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary-color);
}

.city-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
    transition: color 0.35s ease;
    position: relative;
    z-index: 1;
}

.city-card:hover h3 {
    color: var(--hover-color);
}

.city-card p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    transition: color 0.35s ease;
    position: relative;
    z-index: 1;
}

.city-card:hover p {
    color: var(--dark-gray);
}

/* Enhanced animations and transitions */
.guide-card, .city-card, .certificate-img {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.guide-card:nth-child(1), .city-card:nth-child(1) {
    animation-delay: 0.1s;
}

.guide-card:nth-child(2), .city-card:nth-child(2) {
    animation-delay: 0.2s;
}

.guide-card:nth-child(3), .city-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-content h1 {
    animation: slideInLeft 0.8s ease-out;
}

.banner-content p {
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.banner-content .btn {
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive design */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 0 0 20px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .banner-title {
        font-size: 36px;
    }

    .certificate-content {
        grid-template-columns: 1fr;
    }

    .cities-content {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 450px;
    }

    .banner-title {
        font-size: 28px;
    }

    .banner-desc {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .schedule th, .schedule td {
        padding: 10px 5px;
        font-size: 14px;
    }

    .cities-content {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .city-card {
        padding: 15px 10px;
    }

    .city-card i {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .city-card h3 {
        font-size: 16px;
    }
}

/* Modern design enhancements */
.section-title {
    font-weight: 600;
    letter-spacing: -0.5px;
}

.btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

.btn:hover {
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
    transform: translateY(-2px);
}

.guide-card, .city-card {
    border-radius: 12px;
    overflow: hidden;
}

.guide-card-title i {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link::after {
    border-radius: 2px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
