/* 现代化大气页脚样式 - 黑色主题 */

/* 基础样式重置 */
.modern-footer * {
    box-sizing: border-box;
}

.modern-footer {
    background: #000000 !important;
    color: #ffffff !important;
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #333333, transparent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部品牌区域 */
.footer-main {
    padding: 60px 0 40px;
    background: #111111;
}

.footer-brand-section {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.brand-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: left;
}

.footer-logo-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #555555;
    padding: 8px;
    transition: all 0.3s ease;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo-main:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.brand-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.brand-tagline {
    font-size: 14px;
    color: #b0b0b0;
    margin: 5px 0 0;
    font-weight: 300;
}

.brand-description {
    max-width: 600px;
    margin: 20px auto 0;
}

.brand-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #cccccc;
    margin: 0;
}

/* 栏目分区 */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column {
    position: relative;
}

.column-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

.column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #555555;
    border-radius: 1px;
}

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

.column-links li {
    margin-bottom: 12px;
}

.column-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
    position: relative;
}

.column-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #888888;
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.column-links a:hover {
    color: #cccccc;
    transform: translateX(5px);
}

.column-links a:hover::before {
    opacity: 1;
    left: -10px;
}

/* 联系我们列 */
.contact-column {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 30px;
    min-width: 200px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #cccccc;
    line-height: 1.4;
    word-break: break-word;
}

.contact-item i {
    color: #888888;
    margin-top: 2px;
    width: 16px;
    text-align: center;
}

.contact-item i,
.contact-item .contact-icon {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    text-align: center;
    filter: invert(66%) sepia(75%) saturate(476%) hue-rotate(89deg) brightness(96%) contrast(90%);
}

.social-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.social-icon:hover .social-img {
    transform: scale(1.1);
}

/* 社交媒体区域 */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    object-fit: cover;
}

.social-icon:hover {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.contact-item i {
    color: #888888;
    width: 14px;
    height: 14px;
    text-align: center;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(60%);
    opacity: 0.8;
    align-self: center;
}
}

/* 社交媒体区域 */
.footer-social-section {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.social-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 25px;
    color: #ffffff;
    position: relative;
}

.social-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 1px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 15px;
    justify-items: center;
    align-items: start;
    max-width: 700px;
    margin: 0 auto;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 70px;
}

.social-item:hover {
    transform: translateY(-5px);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.2);
}

.social-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-item:hover .social-icon-wrapper {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.1);
}

.social-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.social-item:hover .social-icon {
    transform: translateY(-2px);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

.social-name {
    font-size: 12px;
    color: #cccccc;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-item:hover .social-name {
    color: #6366f1;
}

/* 底部版权区域 */
.footer-bottom {
    background: #000000;
    padding: 30px 0;
    border-top: 1px solid #333333;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.bottom-left {
    flex: 1;
}

.bottom-center {
    flex: 1;
    text-align: center;
}

.bottom-right {
    flex: 1;
    text-align: right;
}

.copyright {
    font-size: 14px;
    color: #999999;
    margin: 0;
}

.icp-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.icp-link:hover {
    color: #cccccc;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #cccccc;
}

/* 二维码弹窗样式 */
.qr-popup {
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    min-width: 150px;
    text-align: center;
}

.qr-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.qr-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffffff;
}

.qr-code {
    width: 120px;
    height: 120px;
    background: transparent !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    position: relative;
    border: none !important;
}

.qr-code img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
    background: transparent !important;
    border: none !important;
}

.qr-code::before {
    content: '二维码';
    position: absolute;
    color: #999;
    font-size: 12px;
}

.qr-platform-name {
    font-size: 12px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.social-item {
    position: relative;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .contact-column {
        border-left: none;
        padding-left: 0;
        grid-column: span 3;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 30px;
    }
    
    .contact-info {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        justify-items: start;
    }
    
    .contact-item {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .brand-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .contact-column {
        grid-column: span 2;
        padding-top: 25px;
    }
    
    .contact-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        align-items: flex-start;
    }
    
    .contact-item {
        width: 100%;
        justify-content: flex-start;
        padding: 3px 0;
    }}
    
    .social-grid {
        gap: 15px;
    }
    
    .social-item {
        padding: 10px 15px;
        min-width: 70px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .bottom-left, .bottom-center, .bottom-right {
        flex: none;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .contact-column {
        grid-column: span 1;
        padding-top: 20px;
    }
    
    .contact-info {
        gap: 12px;
    }
    
    .contact-item {
        font-size: 13px;
        gap: 10px;
    }
    
    .contact-icon {
        width: 14px;
        height: 14px;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .brand-info h3 {
        font-size: 24px;
    }
    
    .column-title {
        font-size: 16px;
    }
}

/* 联系我们区域的二维码样式 */
.qr-only {
    text-align: center;
    padding: 10px 0;
}

.qr-main-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: transparent !important;
    border: none !important;
    background-color: transparent !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.qr-description {
    margin-top: 10px;
    font-size: 13px;
    color: #cccccc !important;
}

/* 二维码占位文本样式 */
.qr-placeholder-text {
    font-size: 11px;
    color: #888888;
    text-align: center;
    margin: 5px 0 0;
    line-height: 1.3;
    padding: 0 5px;
    word-wrap: break-word;
}

.qr-code .qr-placeholder-text {
    color: #666666;
    font-weight: 500;
}

.qr-code img[data-qr="twitter"],
.qr-code img[data-qr="linkedin"],
.qr-code img[data-qr="instagram"],
.qr-code img[data-qr="youtube"] {
    width: 60px;
    height: 60px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 5px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-column {
    animation: fadeInUp 0.6s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }
.footer-column:nth-child(5) { animation-delay: 0.5s; }

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .modern-footer {
        background: #000000;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .modern-footer {
        background: #000000;
        color: #ffffff;
    }
    
    .column-links a,
    .contact-item,
    .social-name,
    .copyright,
    .icp-link,
    .footer-links a {
        color: #ffffff;
    }
    
    .column-title::after,
    .social-title::after {
        background: #ffffff;
    }
}