/**
 * 导航栏和页脚样式
 */

/* ==================== 导航栏样式 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-login {
    padding: 8px 20px;
    background: var(--gradient);
    color: white !important;
    border-radius: 20px;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* ==================== 页脚样式 ==================== */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 50px 0 25px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
    /* 确保在移动端可见 */
    min-height: auto;
}

/* 移动端可见性增强 */
@media (max-width: 768px) {
    .footer {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        clip-path: none;
        -webkit-clip-path: none;
        position: relative;
    }
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr 0.8fr;
    gap: 40px;
    margin-bottom: 30px;
}

/* 品牌区 */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brand-logo-text h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: white;
}

/* 链接区 */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-links-column h4 {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.footer-links-column a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 10px;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-links-column a:hover {
    color: white;
}

/* 二维码区 */
.footer-qrcode {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.qrcode-box {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qrcode-box img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background: white;
    padding: 5px;
    margin-bottom: 10px;
}

.qrcode-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin: 0;
}

/* 底部版权区 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-left p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0;
}

.footer-bottom-right span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-qrcode {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 20px;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 30px;
        margin-top: 40px;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        text-align: center;
        padding: 0;
    }

    .brand-logo-text h3 {
        font-size: 20px;
        margin-bottom: 12px;
        color: #ffffff;
    }

    .brand-tagline {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.85);
        line-height: 1.4;
    }

    .footer-nav {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 20px 0;
    }

    .footer-nav a {
        font-size: 14px;
        color: #ffffff;
        padding: 8px 16px;
        background: rgba(102, 126, 234, 0.15);
        border-radius: 20px;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid rgba(102, 126, 234, 0.3);
    }

    .footer-nav a:hover,
    .footer-nav a:active {
        background: rgba(102, 126, 234, 0.25);
        transform: translateY(-2px);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        text-align: left;
        padding: 0;
    }

    .footer-links-column {
        background: rgba(255, 255, 255, 0.05);
        padding: 20px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-links-column h4 {
        font-size: 14px;
        margin-bottom: 12px;
        color: #ffffff;
        font-weight: 600;
    }

    .footer-links-column a {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 10px;
        text-decoration: none;
        display: block;
        transition: color 0.3s ease;
        padding: 4px 0;
    }

    .footer-links-column a:hover {
        color: #ffffff;
        padding-left: 8px;
    }

    .footer-qrcode {
        justify-content: center;
        margin-top: 30px;
    }

    .qrcode-box {
        padding: 18px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .qrcode-box img {
        width: 100px;
        height: 100px;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .qrcode-box p {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.85);
        margin: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 25px;
        margin-top: 30px;
    }

    .footer-bottom-left p,
    .footer-bottom-right span {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.6;
    }

    .footer-bottom-right span {
        word-break: break-all;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .footer {
        padding: 35px 15px 25px;
    }

    .footer-brand {
        padding: 0 5px;
    }

    .brand-logo-text h3 {
        font-size: 18px;
    }

    .brand-tagline {
        font-size: 12px;
    }

    .footer-nav {
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-nav a {
        font-size: 12px;
        padding: 6px 12px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 5px;
    }

    .footer-links-column {
        padding: 15px 8px;
    }

    .footer-links-column h4 {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .footer-links-column a {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .qrcode-box {
        padding: 15px;
    }

    .qrcode-box img {
        width: 80px;
        height: 80px;
    }

    .qrcode-box p {
        font-size: 11px;
    }

    .footer-bottom {
        padding: 20px 10px 0;
        gap: 12px;
    }

    .footer-bottom-left p,
    .footer-bottom-right span {
        font-size: 11px;
    }
}

/* 极小屏幕优化 */
@media (max-width: 360px) {
    .footer {
        padding: 30px 12px 20px;
    }

    .footer-links {
        gap: 12px;
        padding: 0;
    }

    .footer-links-column {
        padding: 12px 6px;
    }

    .footer-nav a {
        font-size: 11px;
        padding: 5px 10px;
    }

    .brand-logo-text h3 {
        font-size: 16px;
    }

    .brand-tagline {
        font-size: 11px;
    }
}
