/* 页脚容器样式 */
#footer {
    width: 100%;
    padding: 50px 0 30px 0;
    margin-top: 60px;
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(139, 195, 74, 0.3);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

/* 页脚内容容器 */
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px;
    text-align: left;
    align-items: start;
}

/* 页脚栏目 */
.footer-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: stretch;
}

.footer-section h3 {
    color: #8bc34a;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    border-bottom: 2px solid rgba(139, 195, 74, 0.3);
    padding-bottom: 10px;
    line-height: 1.2;
    min-height: 22px;
}

.footer-section p {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.footer-section a {
    color: #8bc34a;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    margin: 0 0 8px 0;
    display: block;
    line-height: 1.5;
}

.footer-section a:hover {
    color: #a5d6a7;
    text-decoration: underline;
}

/* GitHub链接样式 */
.github-link {
    margin-top: 15px;
}

.github-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8bc34a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(139, 195, 74, 0.1);
    border: 1px solid rgba(139, 195, 74, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    margin-bottom: 0;
}

.github-link a:hover {
    background: rgba(139, 195, 74, 0.2);
    border-color: rgba(139, 195, 74, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
}

.github-link svg {
    transition: transform 0.3s ease;
    width: 18px;
    height: 18px;
}

.github-link a:hover svg {
    transform: scale(1.1);
}

/* 页脚底部版权信息 */
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 195, 74, 0.2);
    text-align: center;
    color: #999999;
    font-size: 12px;
}

/* 时间线页面的特殊样式 */
.timeline-container {
    max-width: 1000px;
    margin: 50px auto;
    position: relative;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #2d5a27, #4a7c59, #6b9b37, #8bc34a);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(75, 124, 89, 0.3);
}

.timeline-item {
    position: relative;
    margin: 40px 0;
    width: 50%;
}

.timeline-item.left {
    left: 0;
    padding-right: 40px;
}

.timeline-item.right {
    left: 50%;
    padding-left: 40px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(45, 90, 39, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(139, 195, 74, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(45, 90, 39, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(107, 155, 55, 0.4);
    background: rgba(255, 255, 255, 0.9);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.timeline-item.left .timeline-content::before {
    right: -30px;
    border-left-color: #fff;
}

.timeline-item.right .timeline-content::before {
    left: -30px;
    border-right-color: #fff;
}

.timeline-marker {
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #6b9b37, #8bc34a);
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(107, 155, 55, 0.3), 0 4px 15px rgba(45, 90, 39, 0.2);
    z-index: 10;
    backdrop-filter: blur(5px);
}

.timeline-item.left .timeline-marker {
    right: -50px;
}

.timeline-item.right .timeline-marker {
    left: -50px;
}

.timeline-date {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 50%, #6b9b37 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(139, 195, 74, 0.2);
}

.timeline-content h3 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: bold;
}

.timeline-content p {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-content li {
    padding: 8px 0;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.timeline-content li:last-child {
    border-bottom: none;
}

.timeline-content li:hover {
    color: #4a7c59;
    transform: translateX(5px);
}

/* 赞助商板块样式 */
.sponsors-section {
    /* 移除grid-column，让其作为第四列正常排列 */
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.sponsors-background {
    position: relative;
    padding: 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(46, 125, 50, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 125, 50, 0.2);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.luoxiaohei-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 120" xmlns="http://www.w3.org/2000/svg"><ellipse cx="100" cy="80" rx="25" ry="20" fill="%231a1a1a" opacity="0.3"/><ellipse cx="85" cy="65" rx="8" ry="12" fill="%231a1a1a" opacity="0.25"/><ellipse cx="115" cy="65" rx="8" ry="12" fill="%231a1a1a" opacity="0.25"/><circle cx="92" cy="75" r="3" fill="%234caf50" opacity="0.6"/><circle cx="108" cy="75" r="3" fill="%234caf50" opacity="0.6"/><path d="M125 85 Q140 75 145 90 Q150 95 140 100 Q130 95 125 85" fill="%231a1a1a" opacity="0.2"/><circle cx="160" cy="40" r="4" fill="%231a1a1a" opacity="0.15"/><circle cx="170" cy="50" r="3" fill="%231a1a1a" opacity="0.15"/><circle cx="40" cy="35" r="3" fill="%231a1a1a" opacity="0.15"/><circle cx="30" cy="45" r="4" fill="%231a1a1a" opacity="0.15"/><path d="M20 100 L25 85 L30 100 Z" fill="%232e7d32" opacity="0.2"/><path d="M170 100 L175 85 L180 100 Z" fill="%232e7d32" opacity="0.2"/><circle cx="50" cy="95" r="2" fill="%234caf50" opacity="0.3"/><circle cx="150" cy="95" r="2" fill="%234caf50" opacity="0.3"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    pointer-events: none;
}

.sponsors-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sponsors-content h3 {
    color: #8bc34a;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    border-bottom: 2px solid rgba(139, 195, 74, 0.3);
    padding-bottom: 10px;
    text-align: left;
    position: relative;
    line-height: 1.2;
    min-height: 22px;
}

.sponsors-content h3::after {
    content: '🌲';
    margin-left: 8px;
    font-size: 0.9em;
}

.floating-heixiu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.heixiu-item {
  position: absolute;
  width: 30px;
  height: 30px;
  background-image: url('data:image/svg+xml;utf8,<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><defs><radialGradient id="bodyGrad" cx="0.5" cy="0.4" r="0.8"><stop offset="0%" stop-color="%23333333"/><stop offset="100%" stop-color="%23111111"/></radialGradient><radialGradient id="eyeGrad" cx="0.3" cy="0.3" r="0.7"><stop offset="0%" stop-color="%23ffffff"/><stop offset="100%" stop-color="%23f0f0f0"/></radialGradient></defs><ellipse cx="15" cy="17" rx="11" ry="9" fill="url(%23bodyGrad)" stroke="%23000000" stroke-width="0.5"/><ellipse cx="11" cy="13" rx="3.5" ry="4" fill="url(%23eyeGrad)" stroke="%23cccccc" stroke-width="0.3"/><ellipse cx="19" cy="13" rx="3.5" ry="4" fill="url(%23eyeGrad)" stroke="%23cccccc" stroke-width="0.3"/><ellipse cx="11" cy="13.5" rx="1.8" ry="2.5" fill="%23000000"/><ellipse cx="19" cy="13.5" rx="1.8" ry="2.5" fill="%23000000"/><ellipse cx="11.5" cy="12.5" rx="0.8" ry="1" fill="%23ffffff" opacity="0.8"/><ellipse cx="19.5" cy="12.5" rx="0.8" ry="1" fill="%23ffffff" opacity="0.8"/><ellipse cx="9" cy="8" rx="1.5" ry="2" fill="url(%23bodyGrad)" stroke="%23000000" stroke-width="0.3"/><ellipse cx="21" cy="8" rx="1.5" ry="2" fill="url(%23bodyGrad)" stroke="%23000000" stroke-width="0.3"/><ellipse cx="15" cy="20" rx="2" ry="1" fill="%23222222" opacity="0.6"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  animation: float 3s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
  opacity: 0.8;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.heixiu-item:nth-child(1) {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
    animation-duration: 4s;
}

.heixiu-item:nth-child(2) {
    top: 60%;
    left: -15%;
    animation-delay: 1s;
    animation-duration: 3.5s;
}

.heixiu-item:nth-child(3) {
    top: 40%;
    left: -8%;
    animation-delay: 2s;
    animation-duration: 4.5s;
}

.heixiu-item:nth-child(4) {
    top: 80%;
    left: -12%;
    animation-delay: 0.5s;
    animation-duration: 3.8s;
}

@keyframes float {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateX(150px) translateY(-20px) rotate(10deg);
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(300px) translateY(-40px) rotate(20deg);
        opacity: 0;
    }
}

.sponsors-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sponsor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(46, 125, 50, 0.3);
    transition: all 0.3s ease;
    width: 100%;
}

.sponsor-item:hover {
    transform: translateY(-3px);
    background: rgba(46, 125, 50, 0.15);
    border-color: rgba(46, 125, 50, 0.5);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.25);
}

.sponsor-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(46, 125, 50, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sponsor-item:hover .sponsor-logo {
    border-color: rgba(46, 125, 50, 0.6);
    box-shadow: 0 0 15px rgba(46, 125, 50, 0.3);
    background: rgba(255, 255, 255, 1);
}

.sponsor-favicon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.sponsor-placeholder {
    font-size: 8px;
    color: #4caf50;
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
}

.sponsor-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.sponsor-name {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

.sponsor-desc {
    font-size: 12px;
    color: #b0b0b0;
    margin: 0;
    line-height: 1.4;
}

.sponsor-website {
    font-size: 11px;
    color: #4caf50;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0;
    line-height: 1.3;
}

.sponsor-website:hover {
    color: #66bb6a;
    text-decoration: underline;
}

.sponsor-cta {
    text-align: center;
    margin-top: 15px;
}

.sponsor-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.2), rgba(76, 175, 80, 0.2));
    border: 1px solid rgba(46, 125, 50, 0.4);
    border-radius: 20px;
    color: #4caf50;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.sponsor-link:hover {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.3), rgba(76, 175, 80, 0.3));
    border-color: rgba(46, 125, 50, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.sponsor-text {
    color: #e0e0e0;
}

.sponsor-icon {
    font-size: 1.1em;
    animation: leafFloat 2s ease-in-out infinite;
}

@keyframes leafFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(5deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 70px !important;
        padding-right: 20px !important;
    }
    
    .timeline-marker {
        left: 20px !important;
        right: auto !important;
    }
    
    .timeline-content::before {
        left: -30px !important;
        right: auto !important;
        border-right-color: #fff !important;
        border-left-color: transparent !important;
    }
    
    #footer {
        padding: 40px 0 20px 0;
        margin-top: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .sponsors-section {
        order: -1; /* 在移动端将赞助商区域移到顶部 */
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 13px;
    }
    
    .footer-bottom {
        margin-top: 30px;
        font-size: 11px;
    }
    
    /* 赞助商板块响应式 */
    .sponsors-background {
        padding: 15px;
    }

    .sponsors-container {
        gap: 15px;
    }

    .sponsor-item {
        min-width: 200px;
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .sponsor-logo {
        width: 40px;
        height: 40px;
    }

    .sponsor-favicon {
        width: 24px;
        height: 24px;
    }

    .sponsor-placeholder {
        font-size: 7px;
    }

    .sponsor-name {
        font-size: 0.9em;
    }

    .sponsor-desc {
        font-size: 0.75em;
    }

    .sponsor-website {
        font-size: 0.7em;
    }

    .sponsor-link {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}