/* about-page.css - 关于页面所有样式 */

:root {
    --bg-color: #1a1a1a;
    --text-color: rgba(255, 255, 255, 0.85);
    --text-light: rgba(255, 255, 255, 0.6);
    --text-lighter: rgba(255, 255, 255, 0.4);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover-bg: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary-gradient: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	--shadow-color: rgba(0, 0, 0, 0.1);
}

body.light-mode {
    --bg-color: #f8f9fc;
    --text-color: #5a5c69;
    --text-light: #858796;
    --text-lighter: #b7b9cc;
    --card-bg: #ffffff;
    --card-hover-bg: #f8f9fc;
    --border-color: #e3e6f0;
    --primary-gradient: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	--shadow-color: rgba(0, 0, 0, 0.3);
}

/* 头部大图区域 */
.blog-header-image {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: -80px;
    z-index: 1;
}

.blog-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.5s ease;
}

.blog-header-image:hover img {
    opacity: 1;
}

.blog-header-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.blog-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    max-width: 90%;
}

.blog-meta {
    display: flex;
    gap: 30px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 20px;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.blog-meta-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.blog-meta-item i {
    margin-right: 10px;
}

/* 正文内容区域 */
.blog-content-wrapper {
    position: relative;
    z-index: 2;
    padding: 60px 0;
}

.blog-content-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 视频容器 - 美化样式 */
.video-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    position: relative;
    background: #000;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 2;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
	object-fit: cover; /* 关键属性：让视频和poster填充整个容器 */
}

.blog-content {
    font-size: 1.15rem;
    line-height: 2.2;
    color: var(--text-color);
    margin-bottom: 60px;
    background: var(--card-bg);
    padding: 5px 40px 40px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.blog-content .contentstyle {
    text-indent: 2em;
    display: flex;
    flex-direction: column;
}

.blog-content .contentstyle img {
    align-self: center;
    margin-bottom: 20px;
}

.blog-content:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* 标题样式 */
.page-title {
    text-align: center;
    margin: 40px 0;
    color: #fff;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-title:after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg,  var(--primary-color), var(--secondary-color));
    margin: 15px auto;
    border-radius: 2px;
}

.blog-content p {
    margin-bottom: 1.8em;
}

.blog-content h2, 
.blog-content h3, 
.blog-content h4 {
    color: white;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

body.light-mode .blog-content h2,
body.light-mode .blog-content h3,
body.light-mode .blog-content h4 {
    color: var(--text-color);
}

/* 时间线样式 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--card-bg);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -12px;
}

.right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 0 5px 40px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

/* 网站运行时间组件样式 */
.runtime-container {
    width: 100%;
    max-width: 1100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 40px 30px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 40px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.runtime-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.runtime-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.runtime-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    letter-spacing: 1px;
}

.runtime-display {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

.time-unit {
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    min-width: 130px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
    max-width: 120px;
}

.time-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9a9e 0%, #fad0c4 50%, #a1c4fd 100%);
}

.time-unit:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.time-value {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    background: linear-gradient(to bottom, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.time-unit:hover .time-value {
    transform: scale(1.1);
}

.time-label {
    font-size: 1.1rem;
    opacity: 0.9;
    letter-spacing: 1px;
    font-weight: 500;
}

.runtime-description {
    font-size: 1.3rem;
    margin-top: 20px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .runtime-container {
        padding: 40px 30px;
        border-radius: 15px;
    }
    
    .runtime-title {
        font-size: 1.8rem;
    }
    
    .time-unit {
        min-width: 90px;
        padding: 20px 15px;
        max-width: 90px;
    }
    
    .time-value {
        font-size: 2.2rem;
    }
    
    .runtime-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .runtime-container {
        padding: 25px 15px;
    }
    
    .runtime-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .runtime-display {
        gap: 10px;
    }
    
    .time-value {
        font-size: 1.8rem;
    }
    
    .time-label {
        font-size: 0.9rem;
    }
    
    .runtime-description {
        font-size: 1rem;
    }
}

/* 技能展示 */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.skill-item {
    background: var(--card-bg);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 视频播放器区域 */
.video-player-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 350px;
    z-index: 1000;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-player-header {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.video-player-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

/* 更新折叠动画的CSS */
.video-player-body {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    max-height: 500px; /* 设置一个足够大的最大高度 */
    transition: 
        max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease,
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

.video-player-body.collapsed {
    max-height: 0;
    opacity: 0;
    transform: scaleY(0.9);
    border-bottom: none;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.video-player-header {
    transition: background-color 0.2s ease;
}

.video-player-header:hover {
    background-color: rgba(85, 201, 192, 0.2);
}

.video-player-header i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-player-header.collapsed i {
    transform: rotate(180deg);
}

.video-player {
    width: 100%;
    height: 200px;
    background: #000;
    position: relative;
}

.video-player video {
    width: 100%;
    height: 100%;
    display: block;
}

.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    z-index: 1;
}

.video-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ff6b6b;
    font-size: 1.2rem;
    z-index: 1;
    padding: 20px;
    text-align: center;
}

.video-error i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.video-buffering {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 0.9rem;
    display: none;
    z-index: 1;
}

.video-player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
}

.video-player-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.video-player-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-player-progress {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 15px;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.video-player-progress-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--primary-color);
    border-radius: 2px;
}

.video-player-progress-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

/* ===== 打赏区域样式（新增） ===== */
.reward-container {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(5px);
}

body.light-mode .reward-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.reward-left {
    flex: 2;
    min-width: 280px;
}

.reward-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
}

.reward-thanks h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

body.light-mode .reward-thanks h3 {
    color: #2c3e50;
}

.reward-thanks h3:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #feca57);
    border-radius: 2px;
}

.reward-thanks p {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.6;
}

body.light-mode .reward-thanks p {
    color: #4a5568;
}

.reward-quote {
    font-style: italic;
    color: #718096;
    border-left: 3px solid #ff6b6b;
    padding-left: 15px;
    margin-top: 10px;
}

.reward-list {
    margin-top: 25px;
    background: rgba(255,255,255,0.7);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.reward-list h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.light-mode .reward-list h4 {
    color: #2d3748;
}

.reward-items {
    max-height: 200px;
    overflow-y: auto;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #d2d6dc;
}

.reward-item:last-child {
    border-bottom: none;
}

.reward-nickname {
    font-weight: 600;
    color: #2d3748;
    flex: 2;
}

body.light-mode .reward-nickname {
    color: #2d3748;
}

.reward-amount {
    color: #e53e3e;
    font-weight: 700;
    flex: 1;
    text-align: center;
}

.reward-time {
    color: #718096;
    font-size: 12px;
    flex: 2;
    text-align: right;
}

.reward-button {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255,107,107,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.reward-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255,107,107,0.4);
}

.reward-button i {
    font-size: 24px;
}

/* 二维码弹窗样式 */
.reward-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.reward-modal-content {
    background: white;
    border-radius: 25px;
    width: 90%;
    max-width: 500px;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reward-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
}

.reward-modal-header h3 {
    font-size: 22px;
    color: #2d3748;
    margin: 0;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #718096;
}

.reward-modal-body {
    padding: 25px;
}

.qr-code-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.qr-code-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.qr-code-item img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    border: 3px solid white;
}

.qr-code-item img:hover {
    transform: scale(1.05);
}

.qr-code-item p {
    margin-top: 12px;
    font-weight: 600;
    color: #4a5568;
}

.reward-tip {
    text-align: center;
    margin-top: 20px;
    color: #718096;
    font-size: 14px;
    background: #f7fafc;
    padding: 10px;
    border-radius: 8px;
}

/* 打赏区域深色模式适配 */
body:not(.light-mode) .reward-container {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-color: rgba(255,255,255,0.1);
}

body:not(.light-mode) .reward-thanks h3,
body:not(.light-mode) .reward-thanks p {
    color: rgba(255,255,255,0.9);
}

body:not(.light-mode) .reward-quote {
    color: rgba(255,255,255,0.6);
    border-left-color: #ff6b6b;
}

body:not(.light-mode) .reward-list {
    background: rgba(0,0,0,0.3);
}

body:not(.light-mode) .reward-list h4 {
    color: rgba(255,255,255,0.9);
}

body:not(.light-mode) .reward-nickname {
    color: rgba(255,255,255,0.9);
}

body:not(.light-mode) .reward-time {
    color: rgba(255,255,255,0.5);
}

body:not(.light-mode) .reward-item {
    border-bottom-color: rgba(255,255,255,0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .reward-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .reward-right {
        margin-top: 25px;
    }
    
    .reward-item {
        flex-wrap: wrap;
    }
    
    .reward-time {
        margin-top: 5px;
        text-align: left;
        flex: 100%;
    }
    
    .qr-code-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .reward-button {
        padding: 15px 30px;
        font-size: 18px;
    }
    
    .reward-button i {
        font-size: 20px;
    }
}
/* ===== 打赏区域样式结束 ===== */

/* 响应式调整 */
@media (max-width: 992px) {
    .blog-title {
        font-size: 2.8rem;
    }
    
    .blog-meta {
        gap: 15px;
    }
    
    .blog-meta-item {
        padding: 6px 12px;
        font-size: 1rem;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .left::after, .right::after {
        left: 21px;
    }
    
    .right {
        left: 0;
    }
    
    .video-player-container {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .blog-header-image {
        height: 60vh;
        min-height: 400px;
        margin-top: -60px;
    }
    
    .blog-title {
        font-size: 2.2rem;
    }
    
    .blog-meta {
        display: none;
    }
    
    .video-player-container {
        position: relative;
        width: 100%;
        bottom: auto;
        left: auto;
        margin: 40px 0;
    }
}

@media (max-width: 576px) {
    .blog-header-image {
        height: 50vh;
        min-height: 350px;
    }
    
    .blog-title {
        font-size: 1.8rem;
    }
    
    .blog-content-container {
        padding: 0 20px;
    }
    
    .video-player-container {
        width: 100%;
    }
}