/**
 * ランテース・ジャンパン合同会社 - 底部样式（优化版本）
 * 修复格式问题，改进布局和配色方案
 */

/* 底部基础样式 - 使用和纸主题配色 */
.footer {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #0d0d0d 100%);
    color: #ffffff;
    padding: 4rem 0 1.5rem;
    margin-top: auto;
    position: relative;
    border-top: 3px solid var(--primary-color);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 20%,
        var(--primary-light) 50%, 
        var(--primary-color) 80%,
        transparent 100%);
}

/* 底部区块样式 - 改进间距和对齐 */
.footer-section {
    height: 100%;
    padding: 0 1rem;
}

.footer-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    font-family: 'Noto Serif JP', Georgia, serif;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.footer-subtitle {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
}

.footer-subtitle::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 1px;
}

.footer-description {
    color: #e0e0e0;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    max-width: 300px;
}

/* 社交媒体链接 - 改进样式和对齐 */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(74, 111, 165, 0.4);
    border-color: var(--primary-light);
}

/* 底部链接列表 - 改进间距和对齐 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.875rem;
}

.footer-links a {
    color: #d0d0d0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.25rem;
    display: block;
    line-height: 1.5;
}

.footer-links a::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 1.5rem;
    text-decoration: none;
}

.footer-links a:hover::before {
    color: var(--primary-light);
    transform: translateX(3px);
}

/* 联系信息 - 改进布局和对齐 */
.contact-info {
    margin-top: 1.5rem;
    background-color: transparent !important;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    color: #d0d0d0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-item i {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: rgba(74, 111, 165, 0.1); */ /* 移除或注释掉此行以去除背景 */
    border-radius: 50%; /* 如果不想要圆形效果，也可以移除或调整此行 */
    font-size: 0.9rem;
}

.contact-item a {
    color: #d0d0d0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

/* 底部版权区域 - 改进布局 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 3rem;
    padding-top: 2rem;
}

.copyright {
    margin: 0;
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: nowrap;
}

.footer-legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.footer-legal-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

.footer-legal-links a:hover::after {
    width: 100%;
}

/* 回到顶部按钮 - 改进样式 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(74, 111, 165, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(74, 111, 165, 0.5);
    border-color: var(--primary-light);
}

/* 响应式设计 - 改进移动端布局 */
@media (max-width: 991.98px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-title {
        font-size: 1.3rem;
    }
    
    .footer-subtitle {
        font-size: 1.1rem;
    }
    
    .social-links {
        justify-content: center;
        margin: 1.5rem 0;
    }
    
    .footer-section {
        padding: 0 0.5rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-section:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-legal-links {
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1rem;
    }
    
    .copyright {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-item {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    
    .contact-item i {
        width: 20px;
        height: 20px;
        margin-right: 0.75rem;
        font-size: 0.8rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1.1rem;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* 高对比度模式适配 */
@media (prefers-contrast: high) {
    .footer {
        background: #000000;
        border-top-color: #ffffff;
    }
    
    .footer-title,
    .footer-subtitle {
        color: #ffffff;
    }
    
    .footer-description,
    .contact-item,
    .footer-links a {
        color: #ffffff;
    }
    
    .social-link {
        background: #ffffff;
        color: #000000;
        border: 2px solid #ffffff;
    }
}

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
    .footer {
        background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    }
}

/* 动画效果 */
@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: footerFadeIn 0.8s ease-out;
}

/* 焦点和无障碍访问 */
.footer a:focus,
.back-to-top:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .footer {
        background: none;
        color: #000000;
        page-break-inside: avoid;
    }
    
    .back-to-top {
        display: none;
    }
    
    .social-links {
        display: none;
    }
} 