/* 全屏滚动样式 */

/* 确保 header 和 footer 正常显示 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: none; /* 默认隐藏 */
}

/* 最后一个section显示时显示footer */
.fullpage-section:last-child.active ~ footer,
.fullpage-section:last-child.active + footer {
    display: block;
}

/* 全屏section */
.fullpage-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.8s ease;
    z-index: 1;
    padding: 5rem 0 1rem; /* 顶部留出header空间，底部留白 */
}

/* 当内容高度超过屏幕时，允许滚动 */
.fullpage-section .container {
    width: 100%;
}

/* 内容居中容器 */
.fullpage-section.fullpage-section-centered .container {
    min-height: calc(100vh - 6rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 小屏幕优化：允许内容滚动 */
@media (max-height: 800px) {
    .fullpage-section {
        padding: 5rem 0 1rem;
    }
    
    .fullpage-section .container {
        min-height: auto;
    }
}

.fullpage-section.active {
    transform: translateY(0);
    opacity: 1;
    z-index: 10;
}

/* 最后一个section需要为footer留空间 */
.fullpage-section:last-child {
    padding-bottom: 0;
}

/* 导航点 */
.fullpage-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fullpage-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.fullpage-dot:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
}

.fullpage-dot.active {
    background: var(--primary-color, #3B82F6);
    transform: scale(1.3);
}

/* 添加提示文本 */
.fullpage-dot::before {
    content: attr(title);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fullpage-dot:hover::before {
    opacity: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .fullpage-nav {
        right: 1rem;
        gap: 0.75rem;
    }
    
    .fullpage-dot {
        width: 10px;
        height: 10px;
    }
    
    .fullpage-dot::before {
        display: none;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 隐藏滚动条但保持可滚动 */
body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* section内容超出时可滚动 */
.fullpage-section::-webkit-scrollbar {
    width: 8px;
}

.fullpage-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.fullpage-section::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.fullpage-section::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* 向下箭头提示 */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary, #6B7280);
    font-size: 0.875rem;
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-hint-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 隐藏最后一个section的滚动提示 */
.fullpage-section:last-child .scroll-hint {
    display: none;
}

/* 最后一个section的footer样式 */
.section-footer {
    width: 100%;
    padding: 3rem 0 2rem;
    background: linear-gradient(to bottom, #1a1f2e 0%, #111827 100%);
    color: white;
    position: relative;
}

/* 顶部渐变过渡效果 */
.section-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
}

.section-footer .footer-content {
    width: 100%;
}

.section-footer .footer-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.section-footer .footer-brand {
    /* 占 1/4 */
}

.section-footer .footer-logo {
    margin-bottom: 1rem;
}

.section-footer .footer-logo-image {
    height: 3rem;
    width: auto;
    max-width: 100%;
    filter: brightness(0) invert(1);
}

.section-footer .footer-slogan {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-size: 0.85rem;
}

.section-footer .footer-section {
    /* 每个section占 1/4 */
}

.section-footer .footer-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.section-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-footer .footer-links li {
    margin-bottom: 0.625rem;
}

.section-footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: default;
    pointer-events: none;
}

/* Footer 二维码 */
.section-footer .footer-contact {
    text-align: center;
}

.section-footer .footer-qrcode {
    width: 160px;
    height: 160px;
    margin: 0 auto 0.75rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.section-footer .footer-qrcode-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-footer .footer-qrcode-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 1rem;
    gap: 0.5rem;
}

.section-footer .footer-qrcode-placeholder::before {
    content: '📱';
    font-size: 2.5rem;
}

.section-footer .footer-qrcode-placeholder p {
    color: var(--text-primary);
    font-size: 0.8rem;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

.section-footer .footer-qrcode-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 500;
}

/* Footer 底部 */
.section-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.section-footer .footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.section-footer .footer-icp {
    margin: 0;
}

.section-footer .footer-icp a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.section-footer .footer-icp a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* 联系我们区域 */
.contact-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.contact-qrcode {
    text-align: center;
}

/* 二维码盒子 */
.qrcode-box {
    width: 280px;
    height: 280px;
    margin: 0 auto 1.5rem;
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.qrcode-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 二维码占位符 */
.qrcode-placeholder-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
    text-align: center;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.placeholder-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.placeholder-path {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    word-break: break-all;
}

.placeholder-hint {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

.qrcode-tip {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Footer 二维码容器 */
.qrcode-container {
    text-align: center;
}

.qrcode-box-small {
    width: 140px;
    height: 140px;
    margin: 0 auto 1rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qrcode-image-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qrcode-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-placeholder p {
    color: var(--text-primary);
    font-size: 0.875rem;
    margin: 0;
}

.qrcode-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

.section-footer .footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-footer .footer-links {
    list-style: none;
}

.section-footer .footer-links li {
    margin: 0.5rem 0;
}

.section-footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* 有footer的section - 让footer填满整个section */
.fullpage-section-with-footer {
    padding: 0 !important;
    display: flex;
    align-items: stretch;
    background: var(--text-primary, #111827);
}

.fullpage-section-with-footer .section-footer {
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .section-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .qrcode-placeholder {
        width: 140px;
        height: 140px;
    }
}
