/* =========================================
   川渝轮滑联盟 - 首页样式 (Light/Neon/Acrylic)
   ========================================= */

/* --- 核心变量 --- */
:root {
    /* 核心主色：荧光绿/电光绿 */
    --neon-green: #76FF03;
    --neon-green-shadow: #32CD32;
    --neon-accent: #00E676;
    
    /* 背景体系：银白/浅灰金属质感 */
    --bg-light: #F5F5F5;
    --bg-silver: #E8F4F8;
    --bg-gradient: linear-gradient(135deg, #E8F4F8 0%, #F5F5F5 100%);
    
    /* 材质：亚克力/玻璃 */
    --acrylic-bg: rgba(255, 255, 255, 0.65);
    --acrylic-border: rgba(255, 255, 255, 0.8);
    --acrylic-blur: blur(20px);
    --glass-shadow: 0 8px 32px 0 rgba(118, 255, 3, 0.15);
    
    /* 文字 */
    --text-primary: #2c3e50;
    --text-secondary: #546e7a;
    --text-light: rgba(255, 255, 255, 0.9);
    
    /* 动画 */
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
}

/* --- 装饰元素 (3D 球体与光轨) --- */
.visual-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.sphere-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -100px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(118, 255, 3, 0.4) 60%, rgba(50, 205, 50, 0.1));
    box-shadow: inset -20px -20px 50px rgba(118, 255, 3, 0.2), 0 0 50px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    animation: float-sphere 20s infinite ease-in-out alternate;
}

.sphere-2 {
    width: 150px;
    height: 150px;
    bottom: 100px;
    left: -50px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(0, 230, 118, 0.3));
    box-shadow: inset -10px -10px 30px rgba(0, 230, 118, 0.2);
    animation: float-sphere 15s infinite ease-in-out alternate-reverse;
}

.trail-1 {
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(118, 255, 3, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(118, 255, 3, 0.05);
    animation: rotate-ring 60s linear infinite;
}

@keyframes float-sphere {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-30px) rotate(10deg); }
}

@keyframes rotate-ring {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- 主 Banner --- */
.main-banner {
    position: relative;
    padding: 180px 0 140px;
    text-align: center;
    overflow: hidden;
    background: transparent;
}

.banner-bg-effect {
    /* 网格线改为浅色 */
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(118, 255, 3, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(118, 255, 3, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: perspective(1000px) rotateX(60deg);
    animation: float 30s infinite linear;
    z-index: -1;
}

.banner-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    /* 3D 字体效果：半透明白 + 描边 */
    color: rgba(255, 255, 255, 0.8);
    -webkit-text-stroke: 2px #aaa;
    text-shadow: 
        5px 5px 0px rgba(118, 255, 3, 0.2),
        10px 10px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.banner-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 4rem;
    font-weight: 500;
    position: relative;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

/* 按钮组 - 亚克力风格 */
.banner-actions {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.btn {
    position: relative;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s var(--ease-elastic);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.6);
    overflow: hidden;
    color: var(--text-primary);
    text-decoration: none;
    z-index: 1;
}

.btn-primary {
    background: rgba(118, 255, 3, 0.2);
    border-color: var(--neon-green);
    color: #2c3e50;
    box-shadow: 0 10px 20px rgba(118, 255, 3, 0.3);
}

.btn-primary:hover {
    background: var(--neon-green);
    color: #fff;
    box-shadow: 0 15px 30px rgba(118, 255, 3, 0.5);
    transform: translateY(-5px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
    background: #fff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    background: rgba(255,255,255,0.8);
}

/* --- 功能区块 --- */
.latest-photos-section {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.latest-photo-block {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(118, 255, 3, 0.16);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
    min-height: 206px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.latest-photo-block-full {
    grid-column: 1 / -1;
}

.latest-photo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.latest-photo-head h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
    padding-left: 10px;
    border-left: 4px solid var(--neon-green);
    line-height: 1.1;
}

.latest-photo-more {
    font-size: 12px;
    color: #1e2b38;
    text-decoration: none;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(118, 255, 3, 0.45);
    background: rgba(118, 255, 3, 0.16);
    line-height: 1;
}

.latest-photo-more:hover {
    background: rgba(118, 255, 3, 0.32);
    border-color: var(--neon-green-shadow);
}

.latest-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: stretch;
}

.latest-photo-grid-12 {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.latest-link-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
}

.latest-venue-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
}

.latest-venue-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(118, 255, 3, 0.14), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(118, 255, 3, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    text-decoration: none;
    color: #1f2d3d;
    transition: all 0.2s ease;
}

.latest-venue-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(50, 205, 50, 0.15);
    border-color: var(--neon-green-shadow);
}

.latest-venue-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-align: center;
    color: transparent;
    background: linear-gradient(135deg, #12324a 0%, #2b5b7c 45%, #7cff68 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 0.4px rgba(20, 53, 72, 0.45);
    text-shadow:
        0 2px 6px rgba(18, 50, 74, 0.18),
        0 0 12px rgba(118, 255, 3, 0.2);
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.latest-venue-item:hover .latest-venue-name {
    transform: translateY(-1px) scale(1.02);
    text-shadow:
        0 4px 12px rgba(18, 50, 74, 0.22),
        0 0 16px rgba(118, 255, 3, 0.28);
}

.latest-venue-arrow {
    display: none;
}

.latest-entity-card {
    display: block;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(118, 255, 3, 0.22);
    border-radius: 8px;
    padding: 8px;
    text-decoration: none;
    color: #243447;
    transition: all 0.2s ease;
    height: 100%;
}

.latest-entity-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.latest-entity-cover {
    width: 100%;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    background: #eef3f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.latest-entity-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.latest-entity-placeholder {
    color: #7d8b96;
    font-size: 12px;
}

.latest-entity-name {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #1f2d3d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-photo-item {
    border-radius: 10px;
    overflow: hidden;
    display: block;
    background: #f0f0f0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    aspect-ratio: 4 / 3;
}

.latest-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.latest-photo-item:hover img {
    transform: scale(1.05);
}

.latest-photo-empty {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 24px 0;
}

.features-section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 80px;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

/* 标题装饰 - 荧光绿下划线 */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 6px;
    background: var(--neon-green);
    margin: 15px auto 0;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(118, 255, 3, 0.4);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

/* 卡片 - 通透亚克力材质 */
.feature-card {
    background: var(--acrylic-bg);
    border: 1px solid var(--acrylic-border);
    backdrop-filter: var(--acrylic-blur);
    padding: 50px 30px;
    border-radius: 24px;
    position: relative;
    transition: all 0.4s var(--ease-smooth);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.02),
        inset 0 0 20px rgba(255,255,255,0.5);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--neon-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 
        0 20px 40px rgba(118, 255, 3, 0.15),
        inset 0 0 0 1px var(--neon-green);
    background: rgba(255, 255, 255, 0.8);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}

.feature-icon {
    font-size: 40px;
    z-index: 2;
}

.feature-icon-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--neon-green);
    border-right-color: var(--neon-green);
    animation: rotate-ring 4s linear infinite paused;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover .feature-icon-ring {
    animation-play-state: running;
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.feature-link {
    color: var(--neon-green-shadow);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.feature-link .arrow {
    display: inline-block;
    transition: transform 0.3s;
    background: var(--neon-green);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 14px;
}

.feature-card:hover .feature-link .arrow {
    transform: translateX(5px);
    background: var(--neon-green-shadow);
}

/* --- 数据统计 (HUD Light) --- */
.stats-section {
    margin: 80px 0;
    padding: 80px 0;
    background: #fff;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.03);
    overflow: hidden;
}

.stats-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 10%, rgba(118, 255, 3, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(118, 255, 3, 0.05) 0%, transparent 40%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-right: 1px dashed rgba(0,0,0,0.1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    background: -webkit-linear-gradient(45deg, var(--neon-green-shadow), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* --- 队伍滚动 (Clean Track) --- */
.teams-scroll-section {
    padding: 80px 0;
    background: transparent;
    overflow: hidden;
}

.marquee-container {
    background: #fff;
    padding: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transform: skewY(-2deg);
    overflow: hidden;
}

.marquee-track {
    transform: skewY(2deg); /* 反向倾斜内容 */
}

.marquee-content {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.team-logo-item {
    width: 110px;
    height: 110px;
    background: #fff;
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s var(--ease-elastic);
    position: relative;
    border: 2px solid transparent;
}

.team-logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.3s;
}

.team-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(118, 255, 3, 0);
    transition: all 0.3s;
    z-index: -1;
}

.team-logo-item:hover {
    transform: scale(1.1);
    border-color: var(--neon-green);
}

.team-logo-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.team-logo-item:hover .team-glow {
    box-shadow: 0 0 30px rgba(118, 255, 3, 0.4);
}

/* --- 响应式 --- */
@media (max-width: 768px) {
    .latest-photos-section {
        grid-template-columns: 1fr;
        margin-top: 10px;
        padding: 10px;
    }

    .latest-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-photo-grid-12 {
        grid-template-columns: repeat(3, 1fr);
    }

    .latest-link-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-venue-list {
        grid-template-columns: 1fr;
    }

    .banner-title {
        font-size: 2.5rem;
    }
    
    .sphere-1 {
        right: -50px;
        width: 150px;
        height: 150px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 1px dashed rgba(0,0,0,0.1);
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .marquee-container {
        transform: skewY(0);
    }
    
    .marquee-track {
        transform: skewY(0);
    }
}

/* --- 通用动画类 --- */
.animate-fade-in-up {
    animation: fadeInUp 0.8s var(--ease-smooth) forwards;
    opacity: 0;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-smooth);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; transition-delay: 0.4s; }

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

@keyframes marquee {
    to { transform: translateX(-50%); }
}
