@font-face {
    font-family: 'CuteFont';
    src: url('https://loxestar.cn/cute.woff2') format('woff2');
}

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

body {
    font-family: 'CuteFont', sans-serif;
    background: url('https://loxestar.cn/image/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    min-height: 100vh;
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    backdrop-filter: blur(0px);
    background-color: rgba(255, 255, 255, 0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

#navbar.scrolled {
    backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-left span,
#navbar.scrolled .nav-link,
#navbar.scrolled .search-btn-nav {
    color: #4C4948 !important;
    text-shadow: none !important;
}

#navbar.hidden {
    transform: translateY(-100%);
}

.nav-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-left span {
    font-size: 1.2em;
    font-weight: normal;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-right {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 15px;
}

.search-expanded .nav-links {
    transform: translateX(-265px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-size: 1em;
    font-weight: normal;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.nav-link:hover {
    color: #f0f0f0;
}

#navbar.scrolled .nav-link:hover {
    color: #666 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled .nav-link::after {
    background-color: #4C4948;
}

.nav-link:hover::after {
    width: 100%;
}

.search-container-nav {
    display: flex;
    align-items: center;
    position: relative;
}

.search-btn-nav {
    background: transparent !important;
    border: none;
    cursor: pointer;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    position: relative;
}

#navbar.scrolled .search-btn-nav {
    color: #4C4948;
}

.search-btn-nav:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

#navbar.scrolled .search-btn-nav:hover {
    background-color: rgba(76, 73, 72, 0.1) !important;
}

.search-box {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    overflow: visible;
}

.search-expanded .search-box {
    width: 280px;
    opacity: 1;
    visibility: visible;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#search-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-family: 'CuteFont', sans-serif;
    font-size: 0.9em;
    color: #4C4948 !important;
    padding: 10px 45px 10px 15px;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-expanded #search-input {
    opacity: 1;
}

#search-input::placeholder {
    color: #888;
    opacity: 1;
}

.search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.search-results.active {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

.search-result-item {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-5px);
}

.search-results.active .search-result-item {
    opacity: 1;
    transform: translateY(0);
}

.search-result-item:nth-child(1) { transition-delay: 0.05s; }
.search-result-item:nth-child(2) { transition-delay: 0.1s; }
.search-result-item:nth-child(3) { transition-delay: 0.15s; }
.search-result-item:nth-child(4) { transition-delay: 0.2s; }
.search-result-item:nth-child(5) { transition-delay: 0.25s; }

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.search-result-item h4 {
    margin: 0 0 5px 0;
    font-size: 1em;
    font-weight: normal;
    color: #333;
}

.search-result-subtitle {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    color: #666;
}

.search-result-desc {
    margin: 0;
    font-size: 0.85em;
    color: #777;
    line-height: 1.4;
}

.search-result-type {
    display: inline-block;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 3px;
    background: #f0f0f0;
    color: #666;
    margin-left: 5px;
}

.view-all-btn {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: center;
    background: rgba(76, 73, 72, 0.05);
    color: #4C4948;
    text-decoration: none;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-5px);
}

.search-results.active .view-all-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.view-all-btn:hover {
    background: rgba(76, 73, 72, 0.1);
}

mark {
    background-color: rgba(255, 200, 0, 0.3);
    padding: 0 2px;
    border-radius: 2px;
}

.home-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.title-container {
    text-align: center;
    transform: translateY(50px);
    opacity: 0;
    animation: floatUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes floatUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-title {
    font-size: 3em;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.title-word {
    display: inline-block;
    transform: scale(0.8);
    opacity: 0;
    animation: wordAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    font-weight: normal;
}

.title-word:nth-child(1) {
    animation-delay: 0.2s;
}

.title-word:nth-child(2) {
    animation-delay: 0.4s;
}

.title-word:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes wordAppear {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.subtitle {
    font-size: 1.4em;
    color: #fff;
    font-weight: normal;
    margin-top: 15px;
    opacity: 0;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

.content-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 260px;
}

.content-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-row:nth-child(odd) .main-item {
    order: 1;
    flex: 2;
}

.content-row:nth-child(odd) .side-item {
    order: 2;
    flex: 1;
}

.content-row:nth-child(even) .main-item {
    order: 2;
    flex: 2;
}

.content-row:nth-child(even) .side-item {
    order: 1;
    flex: 1;
}

.main-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: stretch;
    gap: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    min-height: 240px;
    height: 100%;
}

.main-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 1);
}

.side-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: inherit;
    min-height: 240px;
    height: 100%;
}

.side-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.image-container {
    flex: 0 0 33.33%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
    min-height: 100%;
    height: 100%;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 100%;
    padding: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-item:hover .item-image {
    transform: scale(1.05);
}

.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-title-container {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 15px;
}

.item-title {
    font-size: 1.5em;
    color: #333;
    font-weight: normal;
    margin: 0;
    flex-shrink: 0;
}

.item-subtitle {
    font-size: 1.1em;
    color: #666;
    font-weight: normal;
    margin: 0;
    font-style: italic;
}

.item-desc {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
    margin-top: 12px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.side-title {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 10px;
    font-weight: normal;
}

.side-subtitle {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
    font-weight: normal;
    font-style: italic;
}

.side-content {
    font-size: 0.9em;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
}

.side-content p {
    margin-bottom: 8px;
}

.side-content strong {
    color: #333;
    font-weight: normal;
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-list li {
    margin-bottom: 0;
}

.link-list a {
    color: #4C4948;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    border: 2px solid #ff69b4;
    border-radius: 8px;
    text-align: center;
}

.link-list a:hover {
    color: #ff69b4;
    background-color: rgba(255, 105, 180, 0.1);
    border-color: #ff4d94;
    text-decoration: none;
}

.importance-1 {
    color: #e74c3c;
    font-weight: normal;
}

.importance-2 {
    color: #f39c12;
    font-weight: normal;
}

.importance-3 {
    color: #27ae60;
    font-weight: normal;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
    .content-row {
        flex-direction: column;
    }
    
    .main-item, .side-item {
        flex: none !important;
        width: 100%;
    }
    
    .content-row:nth-child(odd) .main-item,
    .content-row:nth-child(even) .main-item,
    .content-row:nth-child(odd) .side-item,
    .content-row:nth-child(even) .side-item {
        order: 1;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2em;
        flex-direction: column;
        gap: 8px;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .main-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }
    
    .item-image {
        width: 80px;
        height: 80px;
    }
    
    .nav-links {
        gap: 15px;
        margin-right: 10px;
    }
    
    .nav-left span {
        font-size: 1em;
    }
    
    .nav-link {
        font-size: 0.9em;
    }
    
    .search-expanded .nav-links {
        transform: translateX(-160px);
    }
    
    .search-expanded .search-box {
        width: 200px;
    }
    
    .item-title-container {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .item-subtitle {
        font-size: 1em;
    }
    
    .content-container {
        max-width: 95%;
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.6em;
    }
    
    .subtitle {
        font-size: 0.9em;
    }
    
    .nav-content {
        padding: 0 10px;
    }
    
    .nav-links {
        gap: 10px;
        margin-right: 8px;
    }
    
    .nav-link {
        font-size: 0.85em;
    }
    
    .search-expanded .nav-links {
        transform: translateX(-130px);
    }
    
    .search-expanded .search-box {
        width: 160px;
    }
    
    #navbar {
        height: 45px;
    }
    
    .item-title-container {
        gap: 3px;
    }
    
    .item-title {
        font-size: 1.3em;
    }
    
    .item-subtitle {
        font-size: 0.9em;
    }
    
    .content-container {
        padding: 25px 10px;
    }
}