/* Footer样式 - 紧凑优化版 */
.footer {
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.9), rgba(0, 0, 0, 0.95));
    color: #fff;
    font-family: Arial, sans-serif;
    backdrop-filter: blur(10px);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* 主体区域 - 紧凑 */
.footer-main {
    padding: 8px 0 6px;
    border-bottom: 1px solid rgba(51, 51, 51, 0.8);
}

.footer-main .container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

/* 品牌区域 - 图标和网站名在一行 */
.footer-brand {
    width: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 3px;
}

.logo-link {
    display: flex;
    text-decoration: none;
}

.brand-favicon {
    width: 28px; /* 更小的图标 */
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(255, 20, 147, 0.3);
    transition: all 0.3s ease;
}

.brand-favicon:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 5px rgba(255, 20, 147, 0.5);
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.logo-text {
    font-size: 0.9rem;
    font-weight: bold;
    color: #E91E63;
    margin-bottom: 0;
}

.logo-subtitle {
    font-size: 0.6rem;
    color: #C0C0C0;
    letter-spacing: 0.03em;
}

.brand-description {
    color: #999;
    font-size: 0.65rem;
    line-height: 1.2;
    margin: 0;
    padding: 0 3px;
}

/* 营业信息 - 紧凑 */
.footer-info {
    width: 100%;
    font-size: 0.7rem;
    line-height: 1.2;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.business-hours, .contact-phone, .telegram-group {
    color: #C0C0C0;
    margin: 0;
}

.business-hours strong, .contact-phone strong {
    color: #fff;
    margin-right: 2px;
}

/* Telegram图标样式 */
.telegram-link {
    color: #0088cc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 12px;
    background: rgba(0, 136, 204, 0.1);
}

.telegram-link:hover {
    color: #00aaff;
    background: rgba(0, 136, 204, 0.2);
    transform: scale(1.05);
}

.telegram-icon {
    width: 14px;
    height: 14px;
}

.telegram-text {
    font-size: 0.65rem;
    font-weight: bold;
}

/* 导航链接 - 两行三列，无边框 */
.footer-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding: 0;
    margin: 2px 0;
    position: relative; /* 为绝对定位的TOP按钮提供参考 */
}

.nav-link {
    color: #C0C0C0;
    text-decoration: none;
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    border: none; /* 无边框 */
    padding: 4px 2px;
    border-radius: 3px;
    text-align: center;
    display: block;
    background: rgba(255, 255, 255, 0.03);
    line-height: 1.1;
}

.nav-link:hover,
.nav-link:active {
    color: #E91E63;
    background: rgba(233, 30, 99, 0.15);
}

/* TOP箭头按钮样式 - 绝对定位靠右 */
.nav-link.top-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 30, 99, 0.2) !important;
    border: 1px solid rgba(233, 30, 99, 0.3) !important;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    margin: 0;
}

.nav-link.top-arrow:hover {
    background: rgba(233, 30, 99, 0.3) !important;
    border-color: rgba(233, 30, 99, 0.5) !important;
    transform: translateY(-50%) scale(1.05);
}

/* 底部版权区 */
.footer-bottom {
    padding: 4px 0;
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
}

.copyright {
    color: #666;
    font-size: 0.6rem;
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: center;
}

/* 探花风俗制作 - 红色可点击样式 */
.producer-link {
    color: #E91E63 !important;
    text-decoration: none;
    font-weight: bold;
    margin-left: 3px;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(233, 30, 99, 0.1);
    transition: all 0.3s ease;
}

.producer-link:hover {
    color: #fff !important;
    background: rgba(233, 30, 99, 0.3);
    text-shadow: 0 0 8px rgba(233, 30, 99, 0.5);
}

.footer-links {
    display: flex;
    gap: 3px;
    align-items: center;
}

.footer-link {
    color: #999;
    text-decoration: none;
    font-size: 0.6rem;
    transition: color 0.3s ease;
    padding: 0;
}

.footer-link:hover,
.footer-link:active {
    color: #E91E63;
}

/* 平板尺寸 */
@media (min-width: 481px) and (max-width: 768px) {
    .footer-main {
        padding: 10px 0 8px;
    }

    .footer-main .container {
        gap: 10px;
    }

    .brand-favicon {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    .footer-nav {
        gap: 4px;
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 5px 3px;
    }

    .nav-link.top-arrow {
        width: 32px;
        height: 32px;
        right: 5px;
    }

    .telegram-icon {
        width: 16px;
        height: 16px;
    }

    .telegram-text {
        font-size: 0.7rem;
    }
}

/* 桌面尺寸 */
@media (min-width: 769px) {
    .footer-main {
        padding: 12px 0 8px;
    }

    .footer-main .container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 15px;
        align-items: center;
        text-align: left;
    }

    .footer-logo {
        justify-content: flex-start;
        gap: 8px;
    }

    .brand-favicon {
        width: 35px;
        height: 35px;
    }

    .brand-text {
        align-items: flex-start;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

    .brand-description {
        margin-left: 45px;
        padding: 0;
        font-size: 0.75rem;
        text-align: left;
    }

    .footer-info {
        text-align: center;
        font-size: 0.75rem;
    }

    .footer-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        justify-content: end;
        position: relative;
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 5px 3px;
    }

    .nav-link.top-arrow {
        width: 35px;
        height: 35px;
        right: 5px;
    }

    .copyright {
        font-size: 0.65rem;
    }

    .producer-link {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .footer-main {
        padding: 15px 0 10px;
    }

    .brand-favicon {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-subtitle {
        font-size: 0.8rem;
    }

    .nav-link.top-arrow {
        width: 38px;
        height: 38px;
        right: 10px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 375px) {
    .footer-logo {
        gap: 4px;
    }

    .brand-favicon {
        width: 24px;
        height: 24px;
    }

    .logo-text {
        font-size: 0.8rem;
    }

    .logo-subtitle {
        font-size: 0.55rem;
    }

    .footer-info {
        font-size: 0.65rem;
        gap: 8px;
    }

    .nav-link {
        font-size: 0.6rem;
        padding: 3px 1px;
    }

    .nav-link.top-arrow {
        width: 28px;
        height: 28px;
        right: 2px;
    }

    .nav-link.top-arrow svg {
        width: 10px;
        height: 10px;
    }

    .telegram-icon {
        width: 12px;
        height: 12px;
    }

    .telegram-text {
        font-size: 0.6rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 单独的TOP箭头按钮 */
.nav-top-arrow {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(233, 30, 99, 0.2);
    border: 1px solid rgba(233, 30, 99, 0.3);
    border-radius: 3px;
    color: #C0C0C0;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-top-arrow:hover {
    background: rgba(233, 30, 99, 0.3);
    border-color: rgba(233, 30, 99, 0.5);
    transform: translateY(-50%) scale(1.05);
    color: #E91E63;
}

/* 为footer-main容器添加相对定位 */
.footer-main {
    position: relative; /* 让绝对定位的箭头相对于这个容器 */
    padding: 8px 0 6px;
    border-bottom: 1px solid rgba(51, 51, 51, 0.8);
}

/* 手机端优化 */
@media (max-width: 768px) {
    .nav-top-arrow {
        right: 15px; /* 手机端右边距调小 */
        width: 30px; /* 手机端尺寸调小 */
        height: 30px;
        top: 40%; /* 调整垂直位置 */
    }

    .nav-top-arrow svg {
        width: 14px; /* 手机端图标调小 */
        height: 14px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 375px) {
    .nav-top-arrow {
        right: 10px; /* 超小屏幕右边距更小 */
        width: 28px;
        height: 28px;
        top: 35%; /* 进一步调整垂直位置 */
    }

    .nav-top-arrow svg {
        width: 12px;
        height: 12px;
    }
}

/* 平板尺寸 */
@media (min-width: 481px) and (max-width: 768px) {
    .nav-top-arrow {
        right: 20px;
        width: 32px;
        height: 32px;
        top: 45%;
    }

    .nav-top-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* 桌面尺寸保持原样 */
@media (min-width: 769px) {
    .nav-top-arrow {
        right: 50px; /* 桌面端保持50px */
        width: 35px;
        height: 35px;
        top: 50%;
    }
}