.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    font-size: 2.5rem;
    color: #f1c27d;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f1c27d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
}

.logo-image {
    width: 40px;
    height: auto;
    object-fit: contain;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .logo-image {
        width: 35px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.5rem;
    }
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(to right, #5c3d2e, #3c2418);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(92, 61, 46, 0.3);
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    height: 70px;
    box-shadow: 0 3px 15px rgba(92, 61, 46, 0.2);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    position: relative;
    margin: 0 12px;
}

.nav-links a {
    color: #e0c9a6;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-links a i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.nav-links a:hover {
    color: #f1c27d;
    background: rgba(241, 194, 125, 0.1);
    transform: translateY(-3px);
}

.nav-links a.active {
    color: #f1c27d;
    background: rgba(230, 126, 34, 0.2);
}

.nav-links li:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #e67e22, #f1c27d);
    border-radius: 3px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-links li:hover:after {
    width: 80%;
}

.search-box {
    position: relative;
    width: 250px;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.5);
}

.search-box input::placeholder {
    color: #e0c9a6;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #f1c27d;
    font-size: 1.2rem;
}

.nav-buttons {
    display: flex;
    align-items: center;
}

.nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(241, 194, 125, 0.1);
    color: #f1c27d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(241, 194, 125, 0.3);
}

.nav-btn:hover {
    background: linear-gradient(135deg, #e67e22, #f1c27d);
    color: #5c3d2e;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    .nav-links.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: linear-gradient(to bottom, #5c3d2e, #3c2418);
        padding: 20px 5%;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    .nav-links.mobile-active li {
        margin: 15px 0;
    }
    .nav-links.mobile-active a {
        justify-content: center;
        padding: 15px;
    }
    .search-box {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .search-box {
        display: none;
    }
    .search-box.mobile-active {
        display: block;
        position: absolute;
        top: 80px;
        left: 5%;
        width: 90%;
        z-index: 1001;
    }
}