* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    background-color: #000;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #000;
}

/* 头部横幅 */
.hero-banner {
    height: 350px;
    position: relative;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    background-image: url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: -100px auto 50px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    position: relative;
    z-index: 10;
}

/* 个人信息侧边栏 */
.profile-sidebar {
    position: relative;
}

.profile-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.profile-header {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e0e0e0;
}

.profile-info h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.profile-title {
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
}

.profile-location {
    color: #888;
    font-size: 13px;
    margin-bottom: 10px;
}

.status-badge {
    display: inline-block;
    background-color: #e8f5e9;
    color: #4caf50;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* 统计信息 */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.stat-item {
    text-align: center;
    padding: 10px 5px;
}

.stat-value {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
    margin-bottom: 6px;
    white-space: nowrap;
}

.stat-label {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    line-height: 1.3;
    white-space: nowrap;
}

/* 按钮 */
.profile-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #333;
}

.btn-secondary {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}

/* 视频部分 */
.video-section {
    margin-bottom: 25px;
}

.video-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.video-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    background-color: #e0e0e0;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button i {
    font-size: 24px;
    color: #000;
    margin-left: 4px;
}

/* 关于我和联系 */
.about-section,
.contact-section {
    margin-bottom: 25px;
}

.about-section h3,
.contact-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.about-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.read-more {
    color: #000;
    text-decoration: underline;
    font-weight: 500;
}

.contact-section p {
    font-size: 14px;
    margin-bottom: 8px;
    color: #666;
}

.contact-section p i {
    margin-right: 8px;
    width: 16px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #000;
    color: #fff;
}

/* 作品展示区域 */
.portfolio-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.portfolio-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    padding: 8px 16px;
    transition: all 0.3s;
    border-radius: 5px;
}

.tab-btn:hover {
    color: #333;
    background-color: #f5f5f5;
}

.tab-btn.active {
    color: #000;
    background-color: #f0f0f0;
}

/* 作品网格 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.portfolio-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    background-color: transparent;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: transparent;
    min-height: 200px;
}

.portfolio-item.large {
    grid-row: span 2;
}

.portfolio-item.large img {
    min-height: 415px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-item.large {
        grid-row: span 1;
    }
    
    .portfolio-item.large img {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    margin: 0;
}

.close-btn {
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: #000;
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.required {
    color: #f44336;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.form-actions .btn {
    min-width: 100px;
}

/* 成功提示 */
.success-message {
    background-color: #4caf50;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideIn 0.3s;
}

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