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

body {
    background-color: #f2f3f5;
}

header {
    height: 60px;
    background-color: #fff;
    box-shadow: 0 2px 8px #f2f3f5;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

header .logo {
    margin-left: 0;
    height: 22px;
    margin-right: 24px;
    flex-shrink: 0;
}

header .logo img {
    height: 100%;
}

/* Hamburger menu styling */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 11;
}

.hamburger-menu span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #333;
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* Main navigation */
.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
}

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

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

.main-nav a {
    color: #444;
    text-decoration: none;
    font-size: 14px;
    line-height: 30px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #3171f2;
}

/* Language container */
.language-container {
    display: flex;
    align-items: center;
    position: relative;
}

.lang-hamburger {
    margin-right: 10px;
}

/* Language selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-selector .lang-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Responsive styles */
@media (max-width: 768px) {
    /* Show hamburger menu, hide main nav */
    .hamburger-menu {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 200px;
        height: calc(100vh - 60px);
        background-color: white;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .main-nav.open {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav ul li {
        margin: 10px 0;
    }
    
    /* Keep language selector visible on medium screens */
    .language-selector {
        display: flex;
    }
    
    .lang-hamburger {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Hide language selector on small screens, show hamburger */
    .language-selector {
        position: fixed;
        top: 60px;
        right: 0;
        width: 200px;
        background-color: white;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        z-index: 11;
    }
    
    .language-selector.open {
        transform: translateX(0);
    }
    
    .lang-hamburger {
        display: flex;
    }
    
    .language-selector .lang-label {
        margin-bottom: 10px;
    }
    
    .logo {
        margin-right: 15px;
    }
}

/* Active hamburger menu animation */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.language-selector span {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.language-selector select {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
}

.language-selector select:hover {
    border-color: #3171f2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.language-selector select:focus {
    border-color: #3171f2;
    box-shadow: 0 0 0 2px rgba(49, 113, 242, 0.2);
}

.language-selector select option {
    padding: 10px;
    background-color: white;
    color: #333;
}

.language-selector select option:hover {
    background-color: #f5f5f5;
}

main {
    width: 1200px;
    margin: 0 auto;
    margin-top: 80px;
}

.main-content {
    width: 860px;
    float: left;
}

.main-content-box {
    padding: 30px;
    background-color: #fff;
    border-radius: 4px;
    margin-bottom: 20px;
}

.main-side {
    width: 320px;
    float: right;
}

.main-side-box {
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
    margin-bottom: 20px;
}

h1 {
    font-size: 34px;
    color: #333;
    line-height: 1.6;
    padding: 10px 0;
}

h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

h3 {
    font-size: 18px;
    color: #444;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Index Main Container */
.index-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    padding: 20px 0;
    margin-bottom: 25px;
    text-align: center;
}

.hero-section h1 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 32px;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.hero-description {
    font-size: 16px;
    color: #777;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

/* Search Module */
.search-module {
    padding: 15px 0;
    margin-bottom: 30px;
}

.search-module h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 12px;
}

.search-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
}

.search-form {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-row {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input,
.date-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: white;
}

.date-input {
    cursor: pointer;
}

/* Autocomplete Styles */
.autocomplete-dropdown {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background-color: #f5f5f5;
    color: #3171f2;
}

.search-row {
    position: relative;
}

.search-input:focus,
.date-input:focus {
    border-color: #3171f2;
    box-shadow: 0 0 0 2px rgba(49, 113, 242, 0.2);
}

.search-button {
    padding: 10px 22px;
    font-size: 16px;
    background-color: #3171f2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 140px;
}

/* Core Data Capabilities */
.capabilities-module {
    padding: 20px 0;
    margin-bottom: 30px;
}

.capabilities-module h2 {
    text-align: center;
    margin-bottom: 18px;
}

.capabilities-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.capabilities-list li {
    font-size: 16px;
    color: #555;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3171f2;
    text-align: center;
}

/* Popular Locations */
.popular-locations-module {
    padding: 20px 0;
    margin-bottom: 30px;
}

.popular-locations-module h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* City Tabs */
.city-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    gap: 10px;
}

.city-tab {
    padding: 8px 20px;
    font-size: 16px;
    background-color: #f0f4f8;
    color: #3171f2;
    border: 1px solid #e0e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.city-tab:hover {
    background-color: #e0e8f0;
    border-color: #c0d0e0;
}

.city-tab.active {
    background-color: #3171f2;
    color: white;
    border-color: #3171f2;
}

/* Tab Content */
.city-tab-content {
    display: none;
}

.city-tab-content.active {
    display: block;
}

/* City Tags Container */
.popular-cities-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.popular-city-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f4f8;
    color: #3171f2;
    text-decoration: none;
    border-radius: 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e0e8f0;
}

.popular-city-tag:hover {
    background-color: #3171f2;
    color: white;
    text-decoration: none;
    border-color: #3171f2;
}

/* No Cities Message */
.no-cities {
    color: #666;
    text-align: center;
    font-size: 16px;
    padding: 20px;
}

/* Sample Data */
.sample-data-module {
    padding: 20px 0;
    margin-bottom: 30px;
}

.sample-data-module h2 {
    text-align: center;
    margin-bottom: 15px;
}

.sample-data {
    background-color: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.sample-data h3 {
    margin-bottom: 12px;
    color: #2c3e50;
}

.sample-data-item {
    font-size: 16px;
    color: #555;
    margin-bottom: 6px;
    padding: 4px 0;
}

/* Additional Tools */
.tools-module {
    padding: 20px 0;
    margin-bottom: 30px;
}

.tools-module h2 {
    text-align: center;
    margin-bottom: 18px;
}

.tools-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.tools-list li {
    text-align: center;
    padding: 10px;
}

.tool-link {
    color: #3171f2;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.tool-link:hover {
    color: #255cd2;
    text-decoration: underline;
}

/* Trust Statement */
.trust-module {
    padding: 20px 0;
    margin-bottom: 30px;
}

.trust-module h2 {
    text-align: center;
    margin-bottom: 15px;
}

.trust-module p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* 单位选择样式 */
.choose-bar {
    margin: 20px 0;
    display: flex;
    align-items: center;
}

.unit-label {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.unit-switch {
    display: inline-flex;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    align-items: center;
    margin-right: 10px;
}

.unit-switch select.unit-select {
    background-color: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #3171f2;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 17px;
    outline: none;
    background: transparent;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-align: center;
}

.unit-switch select.unit-select:hover {
    background-color: rgba(49, 113, 242, 0.1);
}

.unit-switch select.unit-select:focus {
    background-color: #3171f2;
    color: white;
    box-shadow: 0 2px 4px rgba(49, 113, 242, 0.2);
}

/* 添加自定义下拉箭头 */
.unit-switch select.unit-select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%233171f2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

.unit-option {
    display: inline-block;
    padding: 8px 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 17px;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #3171f2;
    background-color: transparent;
    border: none;
    outline: none;
    background: transparent;
}

.unit-option:hover {
    background-color: rgba(49, 113, 242, 0.1);
}

.unit-option.active {
    background-color: #3171f2;
    color: white;
    box-shadow: 0 2px 4px rgba(49, 113, 242, 0.2);
}


/* Footer styles */
footer {
    background-color: #fff;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.foot-main {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.foot-left {
    display: flex;
    align-items: center;
}

.foot-group-icon {
    background-image: url('../img/logo.png');
    width: 290px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: auto 100%;
    margin-right: 10px;
}

.foot-right {
    text-align: right;
}

.foot-copyright {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.foot-tip {
    font-size: 12px;
    color: #999;
}

.foot-languages {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.foot-languages a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.foot-languages a:hover {
    color: #3171f2;
}

.clear {
    clear: both;
}

/* 响应式样式 */
@media (max-width: 1240px) {
    main {
        width: 100%;
        padding: 0 20px;
    }
    
    .main-content {
        width: 70%;
    }
    
    .main-side {
        width: 28%;
    }
    
    .foot-main {
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        width: 100%;
        float: none;
    }
    
    .main-side {
        width: 100%;
        float: none;
        margin-top: 20px;
    }
    
    .main-side-box {
        float: left;
        width: calc(50% - 10px);
        margin-right: 20px;
    }
    
    .main-side-box:nth-child(2n) {
        margin-right: 0;
    }
    
    header nav ul li {
        margin-right: 20px;
    }
}

@media (max-width: 768px) {
    main {
        margin-top: 100px;
        padding: 0 10px;
    }
    
    header {
        height: auto;
        padding: 10px 0;
    }
    
    header .logo,
    header nav,
    header .language-selector {
        float: none;
        text-align: center;
        margin: 10px auto;
        display: block;
    }
    
    header nav ul li {
        display: inline-block;
        float: none;
        margin: 0 10px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .main-content-box {
        padding: 20px;
    }
    
    .main-side-box {
        width: 100%;
        float: none;
        margin-right: 0;
    }
    
    .choose-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .month-navigation {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .foot-main {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .foot-right {
        text-align: center;
    }
}

@media (max-width: 480px) {
    main {
        margin-top: 120px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .main-content-box {
        padding: 15px;
    }
    
    header nav ul li {
        margin: 0 5px;
    }
    
    header nav a {
        font-size: 13px;
    }
    
    .language-selector select {
        padding: 5px 8px;
        font-size: 13px;
    }
}