* {
    margin: 3;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    padding: 0px;
    padding-top: 50px;
}

html {
    scroll-behavior: smooth;
}

.anchor-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid #CDC9C9;
    z-index: 1000;
    text-align: center;
}

.anchor-nav-container {
    max-width: 1200px;
    display: flex;
    gap: 0px;
    overflow-x: auto;
    justify-content: center;
    padding: 0px 0px;
    margin: 0 auto;
}

.anchor-nav a {
    color: #333;
    margin: 0 5px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.anchor-nav a:hover {
    color: #315efb;
    background-color: #f0f0f0;
}

[id] {
    scroll-margin-top: 130px;
}

.container2 {
    max-width: 1200px;
    margin: 0px auto;
    background-color: rgba(255, 255, 255, 0.0);
    border-radius: 15px;
    border: 1px solid #CDC9C9;
    padding: 0px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.0);
}

/* 搜索框样式 */
.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0px;
}

.search-box {
    position: relative;
    max-width: 700px;
    margin: 10px auto;
    margin-top: 70px;
}

.search-box input {
    width: 100%;
    padding: 0.4rem 1.0rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1.0rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.search-box button {
    position: absolute;
    right: 4px;
    top: 4px;
    background: #3a7bd5;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.3rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #FF8C00;
}

.quick-links-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    text-align: center;
}

.quick-links {
    display: inline-block;
    white-space: nowrap;
    padding: 5px 0;
}

.quick-link {
    display: inline-block;
    margin: 0 8px;
    color: #333;
    text-decoration: none;
    font-size: clamp(12px, 3vw, 14px);
    white-space: nowrap;
    padding: 2px 0;
}

.quick-link:hover {
    color: #315efb;
}

.quick-links-container::-webkit-scrollbar {
    height: 3px;
}

.quick-links-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

h1 {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 10px;
    color: #466fa9;
}

h1 a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

h1 a:hover {
    color: #2a4a7a;
    text-decoration: none;
    border-radius: 10px;
    padding: 5px;
    transform: translateY(-5px);
    border: 1px solid #CDC9C9;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}


.fas {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

i {
    font-size: 1.0rem;
color: #00CD66;

}

/* Font Awesome icon colors */
.fa-spa,
.fa-cube,
.fa-home,
.fa-building,
.fa-paint-brush,
.fa-vector-square,
.fa-couch,
.fa-border-style,
.fa-camera,
.fa-globe-americas,
.fa-city,
.fa-car-alt,
.fa-rocket,
.fa-image,
.fa-desktop,
.fa-mountain,
.fa-user-friends,
.fa-utensils,
.fa-paw,
.fa-leaf,
.fa-running,
.fa-lightbulb,
.fa-mobile-alt,
.fa-portrait,
.fa-robot,
.fa-mobile,
.fa-palette,
.fa-file-image,
.fa-signature,
.fa-paint-brush,
.fa-boxes,
.fa-pen-nib,
.fa-fw,
.fa-brain,
.fa-search,
.fa-palette,
.fa-lightbulb,
.fa-couch,
.fa-shopping-cart,
.fa-plane,
.fa-utensils,
.fa-phone,
.fa-robot,
.fa-newspaper,

.masonry2 {
    display: grid;
    margin: 5px 5px;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-auto-rows: auto;
}

.card {
    border-radius: 10px;
    padding: 0px 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: auto;
    word-break: break-word;
}

.card:hover {
    transform: translateY(-5px);
    border: 1px solid #CDC9C9;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.card h2 {
    font-size: 1.0rem;
    margin-top: 5px;
    padding: 0px 10px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.card .links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
    padding-bottom: 10px;
    justify-content: center;
}

.card a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    background-color: #f8f9fa;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.0;
    padding: 4px 8px;
}

.card a:hover {
    color: #2980b9;
    background-color: #e9ecef;
}

.dropdowns-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 5px;
}

.dropdown-container h2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    font-size: 0.95rem;
    margin-top: 5px;
    padding: 0px 10px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.dropdown-header {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.5s ease;
    margin: 0 auto;
}

.dropdown-header span:first-child {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0px;
    padding: 0px 5px;
    border-radius: 4px;
    transition: all 0.5s ease;
}

.dropdown-header span:first-child:hover {
    color: #2980b9;
    background-color: #f8f9fa;
}

.dropdown-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: #999;
}

.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 8px auto 0px;
    width: 30%;
    max-width: 400px;
}

.dropdown-content {
    max-height: 3000px;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    word-break: break-all;
    padding: 10px 0px;
}

.dropdown-content:hover {
    transform: translateY(-5px);
    border: 1px solid #CDC9C9;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.dropdown-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;

    justify-content: left;
}

.dropdown-links a {
    color: #333;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    background-color: #f8f9fa;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-block;
    padding: 0px 4px;
}

.dropdown-links a:hover {
    color: #2980b9;
    background-color: #e9ecef;
}

@media (max-width: 1024px) {
    .anchor-nav {
        top: 65px;
    }
    .anchor-nav a {
        font-size: 1.0rem;
    }
    .search-container {
        margin: 0 auto;
        padding: 0px;
    }
    .search-box {
        margin-top: 40px;
    }
    .search-box input {
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
    }
    .search-box button {
        padding: 0.45rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .anchor-nav {
        top: 55px;
    }
    .anchor-nav a {
        padding: 0px 0px;
        font-size: 0.9rem;
        white-space: normal;
    }
    .search-container {
        margin: 0 auto;
        padding: 0px;
    }
    .search-box {
        margin-top: 5px;
    }
    .search-box input {
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
    }
    .search-box button {
        padding: 0.45rem 1rem;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 0.9rem;
    }

    .dropdown-container h2 {
        font-size: 0.9rem;
    }
    .dropdown-links {
        gap: 5px;
    }

    .dropdown-links a {
        padding: 0px 5px;
        font-size: 0.8rem;
        white-space: normal;
    }

    .dropdown-divider {
        width: 90%;
    }

    .card h2 {
        font-size: 0.9rem;
    }

    .card .links-container {
        gap: 5px;
    }

    .card a {
        padding: 4px 8px;
        font-size: 0.9rem;
        white-space: normal;
    }

    .quick-link {
        padding: 0px 0px;
        font-size: 0.9rem;
        white-space: normal;
    }

    .search-box button {
        padding: 0.0rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .anchor-nav {
        top: 45px;
    }
    .anchor-nav a {
        font-size: 0.85rem;
    }
    .search-box {
        margin-top: 5px;
    }
}

@media (max-width: 360px) {
    .anchor-nav {
        top: 5px;
    }
    .anchor-nav a {
        font-size: 0.9rem;
    }
}