/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航 */
.nav {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #1a1a1a;
}

/* 头部 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.hero .desc {
    font-size: 1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.btn-primary {
    background: #fff;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* 通用区块 */
.section {
    padding: 80px 0;
}

.section-gray {
    background: #f8f9fa;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #1a1a1a;
}

.section h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

/* 关于我 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #555;
}

/* 作品分类 */
.work-category {
    margin-bottom: 60px;
}

.work-desc {
    color: #666;
    margin-bottom: 25px;
}

/* 占位符 */
.placeholder {
    background: #e9ecef;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #868e96;
    font-size: 1rem;
}

.placeholder small {
    font-size: 0.85rem;
    margin-top: 5px;
}

/* 图片滑动器 */
.slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 300px;
    height: 300px;
}

.slide .placeholder {
    width: 100%;
    height: 100%;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: #667eea;
    color: #fff;
}

.slider-btn.prev {
    left: -20px;
}

.slider-btn.next {
    right: -20px;
}

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.video-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-cover {
    position: relative;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.video-cover .placeholder {
    width: 100%;
    height: 100%;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(102, 126, 234, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.video-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.video-card p {
    font-size: 0.9rem;
    color: #666;
}

/* 工作流网格 */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.workflow-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.workflow-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.workflow-cover {
    height: 150px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.workflow-cover .placeholder {
    width: 100%;
    height: 100%;
}

.workflow-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.workflow-card p {
    font-size: 0.9rem;
    color: #666;
}

/* 简历 */
.resume-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.resume-section p {
    color: #666;
    margin-bottom: 20px;
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: #999;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .slide {
        flex: 0 0 260px;
        height: 260px;
    }
    
    .slider-btn {
        display: none;
    }
}
