/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根变量定义 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #f8f9fa;
    --text-color: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 12px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #ecf0f1;
        --background-color: #1a1a1a;
        --text-color: #e0e0e0;
    }
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    min-height: 100vh;
    padding: 20px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

/* 头部 */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 1px;
}

/* 主内容区 */
main {
    padding: 40px 20px;
}

/* 视频区域 */
.video-section {
    margin-bottom: 50px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

.video-link {
    text-align: center;
    margin-top: 15px;
    font-size: 1rem;
}

.video-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.video-link a:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
}

/* 链接区域 */
.links-section  h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 600;
}

.picture-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 600;
}

/* 按钮容器 */
.buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* 按钮基础样式 */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn:active {
    transform: translateY(-1px);
}

/* 图标样式 */
.icon {
    width: 24px;
    height: 24px;
}

/* 各平台按钮颜色 */
.btn-github {
    background: linear-gradient(135deg, #24292e 0%, #0d1117 100%);
}

.btn-github:hover {
    background: linear-gradient(135deg, #2f363d 0%, #161b22 100%);
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

.btn-telegram:hover {
    background: linear-gradient(135deg, #009ee0 0%, #0088cc 100%);
}

.btn-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-instagram:hover {
    background: linear-gradient(135deg, #f5a342 0%, #eb7848 25%, #e13050 50%, #d12e73 75%, #c31f95 100%);
}

.btn-x {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.btn-x:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

.btn-mega {
    background: linear-gradient(135deg, #D9272E 0%, #B91E24 100%);
}

.btn-mega:hover {
    background: linear-gradient(135deg, #E63238 0%, #D9272E 100%);
}

.btn-feishu {
    background: linear-gradient(135deg, #00D6B9 0%, #00B8A9 100%);
}

.btn-feishu:hover {
    background: linear-gradient(135deg, #00E5CC 0%, #00D6B9 100%);
}

/* 页脚 */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

footer p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.keywords {
    opacity: 0.8;
    font-size: 0.85rem;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .links-section h2 {
        font-size: 1.5rem;
    }
    
    .buttons-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .btn {
        font-size: 1rem;
        padding: 15px 25px;
    }
    
    main {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 40px 15px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    body {
        padding: 10px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.6s ease-out;
}

/* 打印样式 */
@media print {
    body {
        background: white;
    }
    
    .btn::before {
        display: none;
    }
    
    .video-wrapper {
        display: none;
    }
}




