/* 更新日志页面样式 */

/* ===== Hero区域 ===== */
.changelog-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    overflow: hidden;
}

/* 背景图片层 */
.changelog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/backgrounds/custom_2025-09-20_13-07-10_68cea6fe797fb.webp');
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 1;
    z-index: 1;
    transform: scale(1.1);
}

/* 渐变叠加层 */
.changelog-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(26, 26, 26, 0.7025) 0%,
        rgba(45, 45, 45, 0.675) 50%,
        rgba(26, 26, 26, 0.7025) 100%),
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    z-index: 2;
}

/* 标题样式 */
.changelog-hero-title {
    font-size: 3rem !important;
    
                    color: #ffffff !important;
                    background: none !important;
                    -webkit-text-fill-color: #ffffff !important;
                
}

/* Section高度样式 */
.changelog-hero {
    min-height: 50vh !important;
}


.changelog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/backgrounds/custom_2025-09-20_13-07-10_68cea6fe797fb.webp');
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 1;
    z-index: 1;
    transform: scale(1.1);
}

/* 渐变叠加层 */
.changelog-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(26, 26, 26, 0.7025) 0%,
        rgba(45, 45, 45, 0.675) 50%,
        rgba(26, 26, 26, 0.7025) 100%),
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    z-index: 2;
}

/* 标题样式 */
.changelog-hero-title {
    font-size: 3rem !important;
    
                    color: #ffffff !important;
                    background: none !important;
                    -webkit-text-fill-color: #ffffff !important;
                
}

/* Section高度样式 */
.changelog-hero {
    min-height: 50vh !important;
}


.changelog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/backgrounds/bg-color3.png');
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 1;
    z-index: 1;
    transform: scale(1.1);
}

/* 渐变叠加层 */
.changelog-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(26, 26, 26, 0.7025) 0%,
        rgba(45, 45, 45, 0.675) 50%,
        rgba(26, 26, 26, 0.7025) 100%),
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    z-index: 2;
    animation: overlayPulse 6s ease-in-out infinite alternate;
}

@keyframes overlayPulse {
    0% {
        opacity: 0.9;
    }
    100% {
        opacity: 1;
    }
}

.changelog-hero .container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.changelog-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--electric-blue), var(--flame-orange), var(--neon-purple));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: titleGradient 4s ease-in-out infinite alternate, titleFloat 3s ease-in-out infinite;
}

@keyframes titleGradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.changelog-hero-subtitle {
    font-size: 1.2rem;
    color: var(--white);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    opacity: 0.95;
}

/* ===== 更新日志时间线 ===== */
.changelog-filters {
    background: var(--dark-bg);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-color);
}

.filters-row {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.changelog-filters .search-box input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) 3rem;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.changelog-filters .search-box input:focus {
    outline: none;
    border-color: var(--flame-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2), 0 4px 12px rgba(255, 107, 53, 0.1);
    background: rgba(50, 50, 50, 0.9);
}

.changelog-filters .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box .search-icon {
    position: absolute;
    left: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    fill: var(--flame-orange);
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-box:focus-within .search-icon {
    fill: var(--flame-orange);
    filter: drop-shadow(0 0 4px rgba(255, 107, 53, 0.5));
}

.filter-group {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.changelog-filters .filter-group select {
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.changelog-filters .filter-group select:focus {
    outline: none;
    border-color: var(--flame-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
    background: rgba(50, 50, 50, 0.9);
}

.changelog-filters .filter-group select:hover {
    background: rgba(50, 50, 50, 0.9);
    border-color: rgba(255, 107, 53, 0.3);
}

.changelog-timeline {
    padding: var(--spacing-xl) 0;
    background: var(--dark-bg);
}

/* 垂直时间线容器 */
.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
}

/* 垂直虚线时间线 */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        var(--flame-orange) 0px,
        var(--flame-orange) 4px,
        transparent 4px,
        transparent 8px
    );
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    padding-left: 50px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-2px);
}

.timeline-item:nth-child(even) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(odd) {
    animation-delay: 0.2s;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* 时间线节点 */
.timeline-node {
    position: absolute;
    left: -10px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--flame-orange);
    border: 2px solid var(--primary-black);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    animation: nodePulse 2s infinite;
}

.timeline-node:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(255, 107, 53, 0.2);
}

.timeline-node.featured {
    background: var(--electric-blue);
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
    animation: featuredNodePulse 2s infinite;
}

@keyframes nodePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 107, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

@keyframes featuredNodePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(0, 212, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
    }
}

.timeline-node.featured {
    background: var(--electric-blue);
    box-shadow: 0 0 0 3px var(--electric-blue), 0 0 20px rgba(0, 212, 255, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px var(--electric-blue), 0 0 20px rgba(0, 212, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 0 6px var(--electric-blue), 0 0 30px rgba(0, 212, 255, 0.8);
    }
}

/* 版本信息头部 */
.timeline-version {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.version-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.version-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--flame-orange);
    min-width: 60px;
}

.version-number.featured {
    color: var(--flame-orange);
}

.version-date {
    color: var(--light-gray);
    font-size: 0.85rem;
    font-weight: 400;
}

.version-type {
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.version-type.major {
    background: var(--flame-orange);
    color: var(--white);
}

.version-type.minor {
    background: var(--electric-blue);
    color: var(--white);
}

.version-type.patch {
    background: var(--neon-purple);
    color: var(--white);
}

/* 内容区域 */
.timeline-content {
    background: rgba(40, 40, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    position: relative;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.6s ease;
}

.timeline-content:hover {
    background: rgba(45, 45, 45, 0.95);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.timeline-content:hover::before {
    left: 100%;
}

/* 内容标题 */
.content-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.content-summary {
    color: var(--light-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
}

/* 版本内容区域 */
.content-summary {
    color: var(--light-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 var(--spacing-lg) 0;
    padding: var(--spacing-lg);
    background: rgba(0, 212, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
}

.content-summary::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--electric-blue);
    border-radius: 2px;
}

/* 版本头部 */
.version-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid rgba(0, 212, 255, 0.1);
    position: relative;
}

.version-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--electric-blue);
    border-radius: 1px;
}

.version-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--electric-blue);
    letter-spacing: -0.03em;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.version-type {
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.version-type.major {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.version-type.minor {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.version-type.patch {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.version-type.hotfix {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.version-date {
    color: var(--light-gray);
    font-size: 1rem;
    margin-left: auto;
    font-weight: 600;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 更新日志项目列表 */
.changelog-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--spacing-md);
}

.changelog-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(50, 50, 50, 0.8);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
    position: relative;
}

.changelog-item:hover {
    background: rgba(60, 60, 60, 0.9);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.1);
    transform: translateX(4px);
}

.changelog-item:hover .item-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}



/* 更新项目图标 */
.item-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    margin-right: var(--spacing-sm);
}

.item-icon.new {
    background: #22c55e;
    color: white;
}

.item-icon.improved {
    background: #3b82f6;
    color: white;
}

.item-icon.fixed {
    background: #f59e0b;
    color: white;
}

.item-icon.removed {
    background: #ef4444;
    color: white;
}

.item-icon.security {
    background: #8b5cf6;
    color: white;
}

/* 更新项目内容 */
.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 0.2rem 0;
    line-height: 1.3;
}

.item-description {
    color: var(--light-gray);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .timeline-container {
        padding: 0 var(--spacing-sm);
    }

    .timeline-container::before {
        left: 12px;
    }

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

    .timeline-node {
        left: -28px;
        width: 10px;
        height: 10px;
    }

    .version-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .version-number {
        font-size: 1rem;
    }

    .version-date {
        font-size: 0.8rem;
    }

    .version-type {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }

    .timeline-content {
        padding: var(--spacing-md);
    }

    .content-title {
        font-size: 1.1rem;
    }

    .content-summary {
        font-size: 0.85rem;
        margin-bottom: var(--spacing-md);
    }

    .changelog-item {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .item-icon {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
    }

    .item-title {
        font-size: 0.9rem;
    }

    .item-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .timeline-container::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 35px;
    }

    .timeline-node {
        left: -25px;
        width: 8px;
        height: 8px;
    }

    .version-number {
        font-size: 0.95rem;
    }

    .version-date {
        font-size: 0.75rem;
    }

    .version-type {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
    }

    .timeline-content {
        padding: var(--spacing-sm);
    }

    .content-title {
        font-size: 1rem;
    }

    .changelog-items {
        gap: var(--spacing-sm);
    }

    .item-icon {
        width: 1.2rem;
        height: 1.2rem;
        font-size: 0.7rem;
    }
}

.loading-indicator {
    text-align: center;
    padding: var(--spacing-xl);
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-top: 3px solid var(--electric-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

.error-message {
    text-align: center;
    padding: var(--spacing-xl);
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 页面加载动画 */
.changelog-timeline {
    animation: sectionFadeIn 1s ease-out;
}

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

/* 滚动触发动画 */
.timeline-item.animate-in {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

/* 微交互动画 */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.timeline-content.shimmer::before {
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

/* 涟漪效果 */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 搜索框焦点效果 */
.search-box.focused {
    transform: scale(1.02);
}

.search-box.focused input {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3), 0 8px 24px rgba(255, 107, 53, 0.2);
}

/* 时间线项目进入动画 */
.timeline-item.animate-in {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

/* 更新项目图标动画 */
.item-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.changelog-item:hover .item-icon {
    animation: iconBounce 0.6s ease-in-out;
}

@keyframes iconBounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-4px) scale(1.1);
    }
    80% {
        transform: translateY(-2px) scale(1.05);
    }
}

/* 加载状态优化 */
.loading-indicator {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--light-gray);
    animation: fadeIn 0.5s ease-in;
}

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

/* 错误状态样式 */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    color: #fca5a5;
    text-align: center;
    margin: var(--spacing-lg) 0;
    animation: errorSlideIn 0.5s ease-out;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 额外的响应式设计 */
@media (max-width: 768px) {
    .changelog-hero-title {
        font-size: 2.5rem;
    }

    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .changelog-hero {
        min-height: 25vh;
    }

    .changelog-hero::before {
        background-attachment: scroll;
        transform: scale(1);
        opacity: 0.08;
    }

    .changelog-hero-title {
        font-size: 2.5rem;
    }

    .changelog-hero-subtitle {
        font-size: 1.1rem;
    }

    .timeline-content {
        padding: var(--spacing-md);
    }
}

@media (max-width: 320px) {
    .changelog-hero::before {
        background-size: cover;
        background-position: center top;
        opacity: 0.06;
    }

    .changelog-hero-title {
        font-size: 2rem;
    }

    .changelog-hero-subtitle {
        font-size: 1rem;
    }
}

/* === 动态背景设置 - 开始 === */
/* 背景图片层 */
.changelog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/backgrounds/custom_2025-09-20_13-43-38_68ceaf8adece4.webp');
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 1;
    z-index: 1;
    transform: scale(1.1);
}

/* 渐变叠加层 */
.changelog-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(26, 26, 26, 0.5549999999999999) 0%,
        rgba(45, 45, 45, 0.6) 50%,
        rgba(26, 26, 26, 0.5549999999999999) 100%),
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    z-index: 2;
}

/* 标题样式 */
.changelog-hero-title {
    font-size: 3.6rem !important;
    
                    color: #ffffff !important;
                    background: none !important;
                    -webkit-text-fill-color: #ffffff !important;
                
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

/* Section高度样式 */
.changelog-hero {
    min-height: 40vh !important;
}
/* === 动态背景设置 - 结束 === */

/* ===== 订阅区域样式 ===== */
.changelog-subscribe {
    background: linear-gradient(135deg, var(--secondary-black) 0%, var(--primary-black) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.changelog-subscribe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: subscribeGlow 8s ease-in-out infinite alternate;
}

@keyframes subscribeGlow {
    0% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.subscribe-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.subscribe-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--electric-blue), var(--flame-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    animation: titleShine 3s ease-in-out infinite alternate;
}

@keyframes titleShine {
    0% {
        filter: brightness(1);
    }
    100% {
        filter: brightness(1.2);
    }
}

.subscribe-description {
    font-size: 1.1rem;
    color: var(--light-gray);
    line-height: 1.6;
    opacity: 0.9;
}

.newsletter-form {
    background: rgba(40, 40, 40, 0.8);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.newsletter-form:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.1);
}

.changelog-subscribe .form-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.changelog-subscribe .newsletter-form input[type="email"] {
    flex: 1;
    padding: var(--spacing-md);
    background: rgba(60, 60, 60, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.changelog-subscribe .newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--flame-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
    background: rgba(70, 70, 70, 0.9);
}

.changelog-subscribe .newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.subscribe-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--flame-orange), #ff8c42);
    border: none;
    border-radius: var(--radius-md);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.subscribe-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, #ff8c42, var(--flame-orange));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.subscribe-btn:hover::before {
    left: 100%;
}

.subscribe-btn:active {
    transform: translateY(0);
}

.form-note {
    font-size: 0.85rem;
    color: var(--light-gray);
    opacity: 0.7;
    text-align: center;
    margin: 0;
}

/* 订阅区域响应式设计 */
@media (max-width: 768px) {
    .subscribe-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .subscribe-title {
        font-size: 2rem;
    }

    .form-group {
        flex-direction: column;
    }

    .newsletter-form {
        padding: var(--spacing-lg);
    }
}

/* ===== 页面加载状态 ===== */
body:not(.page-loaded) .timeline-item {
    opacity: 0;
    transform: translateY(30px);
}

body.page-loaded .timeline-item {
    animation: fadeInUp 0.8s ease forwards;
}

body.page-loaded .timeline-item:nth-child(1) { animation-delay: 0.1s; }
body.page-loaded .timeline-item:nth-child(2) { animation-delay: 0.2s; }
body.page-loaded .timeline-item:nth-child(3) { animation-delay: 0.3s; }
body.page-loaded .timeline-item:nth-child(4) { animation-delay: 0.4s; }
body.page-loaded .timeline-item:nth-child(5) { animation-delay: 0.5s; }

/* 性能优化 */
.timeline-item {
    will-change: transform, opacity;
}

.timeline-node {
    will-change: transform;
}

.item-icon {
    will-change: transform;
}

/* 确保弹窗在changelog页面正常显示 */
.auth-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.auth-modal[style*="display: none"] {
    display: none !important;
}

.auth-modal-content {
    position: relative !important;
    z-index: 10001 !important;
}

/* 减少动画在低性能设备上的影响 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .timeline-item {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* 深色模式优化 */
@media (prefers-color-scheme: dark) {
    .timeline-content {
        background: rgba(30, 30, 30, 0.95);
    }

    .changelog-item {
        background: rgba(40, 40, 40, 0.9);
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .timeline-node {
        border-width: 3px;
    }

    .timeline-content {
        border-width: 2px;
    }

    .item-icon {
        border: 2px solid var(--white);
    }
}

/* 确保弹窗样式不受changelog页面样式影响 */
.auth-modal .form-group {
    display: block !important;
    margin-bottom: var(--spacing-md) !important;
}

.auth-modal input[type="text"],
.auth-modal input[type="email"],
.auth-modal input[type="password"] {
    width: 100% !important;
    padding: var(--spacing-md) !important;
    background: rgba(60, 60, 60, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: var(--radius-md) !important;
    color: var(--white) !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.auth-modal input[type="text"]:focus,
.auth-modal input[type="email"]:focus,
.auth-modal input[type="password"]:focus {
    outline: none !important;
    border-color: var(--electric-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2) !important;
    background: rgba(70, 70, 70, 0.9) !important;
}

.auth-modal .input-group {
    display: flex !important;
    gap: var(--spacing-sm) !important;
    width: 100% !important;
}

.auth-modal .input-group input {
    flex: 1 !important;
    min-width: 0 !important;
}

.auth-modal .send-code-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.auth-modal .password-input-container {
    position: relative !important;
    width: 100% !important;
}

.auth-modal .password-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: var(--light-gray) !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    padding: 0 !important;
}

.auth-modal .checkbox-group {
    display: flex !important;
    align-items: center !important;
    gap: var(--spacing-sm) !important;
    margin: var(--spacing-md) 0 !important;
}

.auth-modal .auth-submit-btn {
    width: 100% !important;
    padding: var(--spacing-md) !important;
    background: linear-gradient(135deg, var(--electric-blue), var(--neon-purple)) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    color: var(--white) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.auth-modal .auth-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3) !important;
}
