﻿/* 全局样式 */
:root {
    --primary-color: #3863c4;
    --secondary-color: #f8a20e;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
}
/* 搜索类型下拉菜单样式 */
.search-type-toggle {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #f8f9fa;
    min-width: 80px;
    text-align: left;
}

    .search-type-toggle:focus {
        box-shadow: none;
    }

.search-type-item.active {
    background-color: #f8f9fa;
    color: #d85844;
    font-weight: 500;
}

/* 移动端搜索面板样式完善 */
.mobile-search-panel {
    display: none;
}

    .mobile-search-panel.active {
        display: block;
    }

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: #2d50a7;
        border-color: #2d50a7;
    }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

/* 导航栏样式 */
.navbar {
    padding: 15px 0;
}

.navbar-brand img {
    max-height: 52px;
}

.navbar .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    margin: 0 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

    .navbar .nav-link:hover {
        color: var(--primary-color);
    }

    .navbar .nav-link.active {
        color: var(--primary-color);
        border-bottom: 2px solid var(--primary-color);
    }

/* 固定搜索框样式 */
.navbar .input-group {
    transition: all 0.3s ease;
    flex-wrap:nowrap;
}

    .navbar .input-group .form-control {
        width: 15rem;
        transition: width 0.3s ease;
    }

        .navbar .input-group .form-control:focus {
            width: 39rem;
            box-shadow: none;
            border-color: var(--primary-color);
        }

/* 确保导航栏高度不变 */
.navbar .contact-info {
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 10px;
    font-size: 0.85rem;
}

    .navbar .contact-info i {
        font-size: 0.9rem;
    }

/* 顶部小程序栏 */
.top-bar {
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

    .top-bar .dropdown-menu {
        min-width: 200px;
    }

/* 联系信息样式 */
.contact-info {
    font-size: 15px;
    font-weight: 500;
    text-align: right;
}

    .contact-info span {
        margin-bottom: 5px;
    }

    .contact-info i {
        margin-right: 5px;
    }

/* 功能链接样式 */
.function-link a {
    font-weight: 500;
    transition: all 0.2s ease;
}

    .function-link a:hover {
        color: var(--dark-color) !important;
        text-decoration: none;
    }

/* 手机版功能下拉按钮 */
.mobile-function-dropdown .dropdown-menu {
    min-width: 120px;
    margin-top: 10px;
    border-radius: 8px;
}

.mobile-function-dropdown .dropdown-item {
    padding: 8px 15px;
    font-size: 14px;
}

/* 社交图标样式 */
.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .social-icons a:hover {
        background-color: var(--primary-color);
    }

/* 页脚样式 */
.footer {
    background-color: #f8f9fa !important;
}

    .footer h5 {
        color: var(--dark-color);
    }

        .footer h5::after {
            background-color: var(--primary-color);
        }

    .footer p,
    .footer address {
        color: #666 !important;
    }

    .footer .qr-code {
        border: 1px solid #eee;
        padding: 5px;
        background-color: white;
    }

/* 友情链接区域 */
.friend-links {
    background-color: #f8f9fa;
}

/* 移动端底部导航 */
.mobile-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0 6px;
    z-index: 1000;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

    .mobile-footer-nav .nav-item {
        text-align: center;
    }

    .mobile-footer-nav .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        color: #6c757d;
        transition: all 0.3s ease;
    }

        .mobile-footer-nav .nav-link i {
            font-size: 22px;
            margin-bottom: 3px;
        }

        .mobile-footer-nav .nav-link span {
            font-size: 12px;
            font-weight: 500;
        }

    .mobile-footer-nav .nav-item.active .nav-link {
        color: var(--primary-color);
    }

    /* 合作咨询按钮样式 */
    .mobile-footer-nav .cooperation-btn {
        margin-top: -25px;
    }

    .mobile-footer-nav .cooperation-icon-wrapper {
        width: 50px;
        height: 50px;
        background-color: var(--primary-color);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 3px;
        box-shadow: 0 2px 10px rgba(56, 99, 196, 0.4);
        border: 3px solid #fff;
    }

        .mobile-footer-nav .cooperation-icon-wrapper i {
            color: white;
            font-size: 24px;
            margin: 0;
        }

    .mobile-footer-nav .cooperation-link span {
        color: var(--primary-color);
        font-weight: 600;
    }

/* 表单弹层样式 */
#formModal .modal-content {
    border-radius: 10px;
    border: none;
}

#formModal .modal-header {
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

#formModal .modal-footer {
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
    padding: 15px;
}

#formModal .form-label {
    font-weight: 500;
}

/* 右侧快捷功能栏样式 */
.quick-functions {
    position: fixed;
    right: 0;
    bottom: 85px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.quick-function-item {
    position: relative;
    margin-bottom: 5px;
}

.quick-function-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: rgba(56, 99, 196, 0.8);
    color: white;
    border-radius: 5px 0 0 5px;
    padding: 10px 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

    .quick-function-btn i {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .quick-function-btn span {
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
    }

    .quick-function-btn:hover {
        background-color: var(--primary-color);
    }

.quick-function-panel {
    position: absolute;
    right: -320px;
    top: 0;
    width: 300px;
    background-color: white;
    border-radius: 5px 0 0 5px;
    box-shadow: -3px 3px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: right 0.3s ease;
    opacity: 0;
    visibility: hidden;
    margin-top: -13rem;
}

    .quick-function-panel h5 {
        font-weight: 600;
        margin-bottom: 15px;
        color: var(--primary-color);
    }

.quick-function-item:hover .quick-function-panel {
    right: 60px;
    opacity: 1;
    visibility: visible;
}

.quick-function-panel .contact-info p {
    margin-bottom: 8px;
    font-size: 14px;
    text-align: center;
}

.quick-function-panel .contact-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

.quick-function-panel .qr-code {
    border: 1px solid #eee;
    padding: 5px;
    background-color: white;
}

/* 移动端固定搜索按钮 */
.mobile-fixed-search {
    position: fixed;
    right: 15px;
    bottom: 80px;
    z-index: 1000;
}

.mobile-search-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .mobile-search-btn:hover,
    .mobile-search-btn:focus {
        background-color: #2d50a7;
        transform: scale(1.05);
    }

.mobile-search-panel {
    position: fixed;
    bottom: 70px;
    right: -100%;
    width: 90%;
    max-width: 350px;
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 999;
}

    .mobile-search-panel.show {
        right: 10px;
    }

    .mobile-search-panel h5 {
        margin-bottom: 15px;
        font-weight: 600;
    }

    .mobile-search-panel .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: var(--gray-color);
    }

    .mobile-search-panel .nav-tabs {
        margin-bottom: 10px;
    }

    .mobile-search-panel .tab-content {
        margin-bottom: 10px;
    }

/* 辅助字体大小类 */
.fs-7 {
    font-size: 0.875rem;
}

.fs-8 {
    font-size: 0.75rem;
}

.fs-9 {
    font-size: 0.625rem;
}

/* 登录注册弹层样式 */
.auth-tabs .nav-link {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 0;
    border: none;
    background: transparent;
    position: relative;
}

    .auth-tabs .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: width 0.3s ease;
    }

    .auth-tabs .nav-link.active {
        color: var(--primary-color);
        background: transparent;
    }

        .auth-tabs .nav-link.active::after {
            width: 100%;
        }

.auth-form .form-control {
    height: 45px;
    border-radius: 4px;
}

.auth-form .input-group-text {
    background-color: transparent;
    border-right: none;
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(56, 99, 196, 0.25);
}

.auth-form .btn-primary {
    height: 45px;
    font-weight: 500;
}

#loginSendCode, #registerSendCode {
    min-width: 120px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.qr-login-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-code-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.qr-code {
    width: 100%;
    padding: 5px;
    border: 1px solid #eee;
}

.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .qr-overlay.expired {
        display: flex;
    }

.qr-refresh {
    cursor: pointer;
}

    .qr-refresh i {
        font-size: 2rem;
        color: var(--primary-color);
        margin-bottom: 10px;
    }

.toggle-password {
    cursor: pointer;
}

    .toggle-password i {
        font-size: 1.1rem;
    }

.agreement-text {
    font-size: 0.85rem;
}

/* 验证码按钮禁用状态 */
#loginSendCode.disabled,
#registerSendCode.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}
.btn-outline-secondary {
    color: #333333;
}

.input-group-prepend .btn-outline-secondary {
    border-color: #dee2e6;
}

body {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    background-color: #f4f6f8;
    margin: 0;
    padding: 0;
    padding-bottom: 70px; /* Space for footer */
}

.app-header {
    padding: 20px 15px;
    text-align: center;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .app-header h1 {
        font-size: 24px;
        margin: 0;
        font-weight: 600;
        color: var(--primary-color);
    }

.app-content {
    padding: 20px 15px;
}
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.footer-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text);
    font-size: 12px;
    transition: color 0.2s ease;
}

    .nav-item i {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .nav-item.active {
        color: var(--primary-color);
        font-weight: 900;
    }
/* 响应式调整 */
@media (max-width: 767.98px) {
    .auth-panel {
        border-right: none !important;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .qr-login-panel {
        padding-top: 20px;
    }
}

/* 响应式调整 */
@media (max-width: 576px) {
    #topSearchBar {
        width: 7rem;
    }

    .navbar .nav-link {
        margin: 3px 0;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    #topSearchBar {
        width: 8rem;
    }

    body {
        padding-bottom: 65px;
    }

    .function-link {
        display: none !important;
    }

    .mobile-function-dropdown {
        display: inline-block !important;
    }

    .navbar .nav-link {
        margin: 5px 0;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    #topSearchBar {
        width: 10rem;
    }

    .navbar .nav-link {
        margin: 5px 0;
        font-size: 0.95rem;
    }
}

@media (min-width: 1400px) {
    #topSearchBar {
        width: 14rem;
    }

    .container {
        max-width: 1320px;
    }

    .navbar .nav-link {
        font-size: 1.05rem;
    }
}

@media (min-width: 1800px) {
    #topSearchBar {
        width: 30rem;
    }

    .container {
        max-width: 1600px;
    }

    body {
        font-size: 1.1rem;
    }

    .navbar .nav-link {
        font-size: 1.1rem;
        margin: 0 10px;
    }
}

@media (min-width: 2400px) {
    #topSearchBar {
        width: 40rem;
    }

    .container {
        max-width: 2200px;
    }

    body {
        font-size: 1.2rem;
    }

    .navbar .nav-link {
        font-size: 1.2rem;
        margin: 0 15px;
    }
}
