/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .navbar {
    padding: 10px 0;
}

.site-header .navbar-brand img {
    height: 40px;
}

.site-header .navbar-brand .brand-text {
    margin-left: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.site-header .nav-link {
    font-size: 16px;
    color: #333 !important;
    padding: 8px 20px !important;
    transition: color 0.3s ease;
}

.site-header .nav-link:hover {
    color: #0066cc !important;
}

/* 用户下拉菜单样式 */
.auth-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-icon {
    width: 20px;
    height: 20px;
    color: #0066cc;
}

.user-phone {
    font-weight: 500;
    color: #333 !important;
}

.auth-user::after {
    display: inline-block;
    margin-left: 5px;
    content: '';
    border: none;
}

.auth-user .arrow-down {
    font-size: 10px;
    color: #666;
    transition: transform 0.3s;
}

.dropdown.show .arrow-down {
    transform: rotate(180deg);
}

/* 隐藏Bootstrap默认箭头 */
.dropdown-toggle::after {
    display: none;
}

/* 新的箭头指示器 */
.arrow-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    background-color: #f0f0f0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.arrow-indicator::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    transition: transform 0.3s ease;
}

.dropdown.show .arrow-indicator {
    background-color: #e6f0ff;
}

.dropdown.show .arrow-indicator::after {
    transform: rotate(180deg);
    border-top-color: #0066cc;
}

.dropdown-menu {
    position: relative;
    min-width: 120px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 空心三角箭头 */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    z-index: 1;
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 18px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(0,0,0,0.1);
    filter: blur(1px);
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: #0066cc;
}

.dropdown-item:active {
    background-color: #0066cc;
    color: #fff;
}

/* 底部样式 */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
    margin-top: auto;
}
.footer-logo {
    text-decoration:none;
}
.footer-logo img {
    height: 60px;
}
.footer-logo .brand-text {
    margin-left: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #ecf0f1;
}
.footer-contact p {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.6;
}
.footer-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.contact-icon {
    margin-right: 8px;
}

.contact-icon img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.footer-bottom {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: rgba(236, 240, 241, 0.7);
}
.footer-bottom p a{
    color: rgba(236, 240, 241, 0.7);
    text-decoration: none;
}
/* Toast提示 */
.toast-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    color: #fff;
    border-radius: 5px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: toastFadeIn 0.3s ease;
}

.toast-success {
    background: #28a745;
}

.toast-error {
    background: #dc3545;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    /* 移动端底部左对齐 */
    .site-footer .row {
        justify-content: flex-start !important;
    }
    
    .site-footer .col-auto {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
    
    .site-footer .ms-auto {
        margin-left: 0 !important;
    }

    /* 移动端登录状态 */
    .mobile-auth-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        width: 100%;
    }

    .mobile-user-info {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0 20px;
    }
    .mobile-auth-nav .logout-link {
        color: #666 !important;
    }

    .mobile-auth-nav .logout-link svg {
        width: 18px;
        height: 18px;
        vertical-align: middle;
        margin-right: 4px;
    }

    /* PC端下拉菜单在移动端隐藏 */
    .desktop-auth-dropdown {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-auth-nav {
        display: none;
    }

    .desktop-auth-dropdown {
        display: block;
    }
}

/* 温馨提示样式 */
.tip-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tip-box .tip-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #d68f00;
}

.tip-box .tip-text {
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}