/* footer.css - 现代化页脚样式 */

/* 页脚主容器 */
.modern-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    padding: 80px 0 40px;
}

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

/* 容器 */
.modern-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* 网格布局 */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* 每个区块 */
.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 区块标题 */
.footer-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.footer-section h3 i {
    color: var(--primary-color);
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 关于我们区域 */
.about-content {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.about-content p {
    margin-bottom: 15px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* 社交链接 */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-link:hover i {
    color: white;
    transform: scale(1.2);
}

.social-link:nth-child(1):hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }
.social-link:nth-child(2):hover { box-shadow: 0 10px 20px rgba(7, 193, 96, 0.2); }
.social-link:nth-child(3):hover { box-shadow: 0 10px 20px rgba(24, 119, 242, 0.2); }
.social-link:nth-child(4):hover { box-shadow: 0 10px 20px rgba(219, 68, 55, 0.2); }

/* 友情链接区域 */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.link-item:hover {
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.link-item i {
    font-size: 1rem;
    color: var(--primary-color);
}

/* 数据统计区域 */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
}

.stat-item i {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-item div {
    flex: 1;
}

.stat-item h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 5px 0;
    line-height: 1;
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
}

/* 快速导航区域 */
.nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.nav-links a {
    padding: 12px 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

/* 底部信息 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
    animation: fadeIn 0.8s ease-out 0.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tech-stack span {
    margin-right: 10px;
}

.tech-stack i {
    font-size: 1.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tech-stack i:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.tech-stack .fa-php { color: #777bb4; }
.tech-stack .fa-js { color: #f7df1e; }
.tech-stack .fa-server { color: var(--primary-color); }

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    box-shadow: var(--shadow-sm);
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.back-to-top:active {
    transform: translateY(-2px);
}


/* 夜间模式优化 */
[data-theme="dark"] .modern-footer {
    background: color-mix(in srgb, var(--bg-card) 90%, #000);
}

[data-theme="dark"] .link-item,
[data-theme="dark"] .nav-links a,
[data-theme="dark"] .stat-item {
    background: color-mix(in srgb, var(--bg-secondary) 80%, #000);
}

[data-theme="dark"] .social-link {
    background: color-mix(in srgb, var(--bg-secondary) 80%, #000);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .modern-footer {
        padding: 60px 0 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .link-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .wave-container {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .modern-footer {
        padding: 40px 0 20px;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        gap: 15px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stat-item i {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .stat-item h4 {
        font-size: 1.5rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* 打印样式 */
@media print {
    .modern-footer {
        border: none;
        padding: 40px 0 20px;
    }
    
    .footer-section h3 {
        color: #000;
        border-bottom: 1px solid #ccc;
    }
    
    .social-links,
    .back-to-top,
    .wave-container {
        display: none;
    }
    
    .link-item,
    .nav-links a {
        border: 1px solid #ccc;
        background: none;
    }
    
    .stat-item {
        border: 1px solid #ccc;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .modern-footer {
        background: var(--bg-primary);
        border-top: 3px solid var(--text-primary);
    }
    
    .link-item,
    .nav-links a,
    .stat-item,
    .social-link {
        border: 2px solid var(--text-primary);
    }
    
    .footer-section h3 {
        border-bottom: 3px solid var(--text-primary);
    }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    .footer-section,
    .footer-bottom,
    .back-to-top,
    .stat-item,
    .link-item,
    .nav-links a,
    .social-link {
        animation: none;
        transition: none;
    }
    
    .wave-container::before {
        animation: none;
    }
    
    .back-to-top {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}
/* 网站升级弹窗样式 */
.upgrade-features .list-group-item {
  border: none;
  padding: 10px 0;
  background: transparent;
}

.upgrade-features .list-group-item i {
  font-size: 1.1em;
}

.modal-content {
  border-radius: 15px;
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

.upgrade-badge {
  z-index: 1050;
}

.upgrade-badge .btn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .upgrade-badge {
    display: none;
  }
}