/* 全局样式 */
:root {
    --primary-color: #ff6700; /* 小米橙色 */
    --secondary-color: #424242; /* 深灰色 */
    --accent-color: #00c9ff; /* 浅蓝色强调色 */
    --text-color: #333333;
    --light-text: #ffffff;
    --background-color: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #757575;
    --border-color: #e0e0e0;
    --transition-speed: 0.3s;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --navbar-bg-color: #ffffff; /* 白色导航栏背景 */
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 3px; /* 更小的圆角，类似小米风格 */
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.primary-btn:hover {
    background-color: #f25807; /* 深一点的橙色 */
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.secondary-btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.outline-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.outline-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* 加载动画 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--navbar-bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.navbar.transparent {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: none;
}

.navbar.scrolled {
    background-color: var(--navbar-bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    margin-left: auto;
    margin-right: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary-color);
    position: relative;
    padding: 5px 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary-color);
}

.contact-link:hover {
    color: var(--primary-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* 首页轮播区 */
.hero-carousel {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: var(--background-color);
}

.carousel-item.active {
    display: block;
}

.carousel-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.carousel-image img,
.carousel-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 500px;
    text-align: left;
    color: var(--light-text);
}

.carousel-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.carousel-controls {
    position: absolute;
    bottom: 50px;
    left: 10%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-prev,
.carousel-next {
    background: transparent;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    color: var(--primary-color);
}

.carousel-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 30px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-color);
    width: 50px;
}

/* 精选作品区 */
.featured-products {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 分类标签 */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0 40px;
    flex-wrap: wrap;
}

.category-tab {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    padding: 8px 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.category-tab:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.category-tab:hover {
    color: var(--primary-color);
}

.category-tab:hover:after,
.category-tab.active:after {
    width: 100%;
}

.category-tab.active {
    color: var(--primary-color);
}

/* 作品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background-color: var(--background-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.product-info p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.product-link {
    display: block;
    text-align: center;
    padding: 12px 0;
    background-color: var(--light-gray);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.product-link:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* 通用部分样式 */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: var(--light-gray);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.view-more {
    display: block;
    text-align: center;
    margin-top: 40px;
    color: var(--primary-color);
    font-weight: 600;
}

/* 摄影作品样式 - 规则布局 */
.gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.gallery-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.gallery-col {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.video-col {
    flex: 1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    cursor: pointer;
    height: 280px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
}

.gallery-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.gallery-info p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.text-center {
    text-align: center;
}

.view-more {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.view-more:hover {
    background-color: white;
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .gallery-row {
        flex-wrap: wrap;
    }
    
    .gallery-col {
        flex: 0 0 48%;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .gallery-col {
        flex: 0 0 100%;
    }
}

/* 文章区样式 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--background-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.article-date {
    display: block;
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.article-excerpt {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
}

.read-more:after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.read-more:hover:after {
    opacity: 1;
    right: -25px;
}

/* 小红书区样式 */
.xiaohongshu-profile {
    background-color: var(--background-color);
    border-radius: 4px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
}

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

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.profile-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.profile-info p {
    color: var(--dark-gray);
}

.follow-btn {
    margin-left: auto;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background-color: #f25807;
    transform: translateY(-2px);
}

.follow-btn i {
    margin-right: 5px;
}

.xiaohongshu-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.post-card {
    background-color: var(--background-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-image {
    height: 180px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 15px;
}

.post-content h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-post {
    display: block;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* 简历区样式 */
.resume-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.resume-section {
    margin-bottom: 40px;
}

.resume-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: -34px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 2px solid var(--background-color);
}

.timeline-content {
    padding-bottom: 20px;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.timeline-period {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content ul {
    margin-top: 10px;
}

.timeline-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
}

.timeline-content ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.skill-bar {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.resume-download {
    text-align: center;
    margin-top: 40px;
}

.resume-download .btn i {
    margin-right: 8px;
}

/* 联系区样式 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--dark-gray);
}

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

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 4px;
    box-shadow: var(--box-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 页脚样式 */
.footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light-text);
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--light-text);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-subscribe {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    text-align: center;
}

.footer-subscribe h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light-text);
    font-weight: 600;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 3px 0 0 3px;
    font-size: 0.9rem;
}

.subscribe-form button {
    padding: 12px 20px;
    border: none;
    border-radius: 0 3px 3px 0;
    background-color: var(--primary-color);
    color: var(--light-text);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-form button:hover {
    background-color: #f25807;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-text);
}

.divider {
    color: rgba(255, 255, 255, 0.3);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #f25807;
    transform: translateY(-3px);
}

/* 图片预览模态框 */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border: 5px solid var(--background-color);
}

.modal-info {
    background-color: var(--background-color);
    padding: 15px;
    color: var(--text-color);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--light-text);
    font-size: 2rem;
    cursor: pointer;
}

/* 响应式样式 */
@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    .contact-content,
    .resume-content {
        grid-template-columns: 1fr;
    }
    
    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--background-color);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        gap: 15px;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 20px;
    }
    
    .user-actions {
        display: none;
    }
    
    .nav-links {
        margin-right: 0;
    }
    
    .carousel-content {
        left: 5%;
        max-width: 90%;
    }
    
    .carousel-controls {
        left: 5%;
    }
    
    .explore-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .articles-grid,
    .xiaohongshu-posts {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .resume-content {
        gap: 30px;
    }
    
    .featured-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        gap: 15px;
    }
    
    .category-tab {
        font-size: 14px;
    }
    
    .carousel-content h1 {
        font-size: 2rem;
    }
    
    .carousel-content p {
        font-size: 1rem;
    }
    
    .subscribe-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
        border-radius: 3px;
    }
}

/* 探索我的世界 */
.explore-section {
    padding: 80px 0;
    position: relative;
    color: white;
    overflow: hidden;
}

.explore-section .section-title {
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.explore-section .section-container {
    position: relative;
    z-index: 2;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding: 0 20px;
}

.explore-item {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.explore-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.explore-image {
    height: 220px;
    overflow: hidden;
}

.explore-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.explore-item:hover .explore-image img {
    transform: scale(1.08);
}

.explore-content {
    padding: 30px;
    color: #333;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.explore-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.explore-content p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.explore-link {
    color: #ff6b00;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding-right: 25px;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
    transition: all 0.3s ease;
}

.explore-link:after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: right 0.3s ease;
}

.explore-link:hover {
    color: #e65c00;
    padding-right: 30px;
}

.explore-link:hover:after {
    right: -5px;
}

/* 关于我 */
.about-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-top: 40px;
    align-items: center;
}

.about-image {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.about-detail h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.about-detail p {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.about-cta {
    margin-top: 20px;
}

/* 视频控制按钮样式 */
.video-control-btn {
    display: none; /* 隐藏视频控制按钮 */
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    font-size: 16px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.video-control-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* 精选作品部分样式 */
.portfolio-section {
    padding: 80px 0;
    position: relative;
}

.portfolio-section .section-title {
    margin-bottom: 15px;
    color: #333;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
    font-weight: bold;
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.underline {
    width: 80px;
    height: 4px;
    background-color: #ff6b00;
    margin: 0 auto 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.portfolio-filter {
    margin-bottom: 40px;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-list li {
    padding: 10px 25px;
    margin: 0 8px 10px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-size: 16px;
    letter-spacing: 0.5px;
}

.filter-list li.active,
.filter-list li:hover {
    background-color: #ff6b00;
    color: white;
    box-shadow: 0 5px 12px rgba(255, 107, 0, 0.4);
    transform: translateY(-2px);
}

.portfolio-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    background-color: transparent;
    position: relative;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.portfolio-img-container {
    width: 100%;
    height: 220px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
}

.portfolio-content {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.85);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.portfolio-category {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.portfolio-link {
    display: inline-block;
    padding: 8px 20px;
    background-color: #ff6b00;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-top: auto;
    align-self: flex-start;
}

.portfolio-link:hover {
    background: linear-gradient(to right, #ff6b00, #f75c03);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@media (max-width: 992px) {
    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .explore-grid {
        grid-template-columns: 1fr;
    }
    
    .explore-section .section-title {
        font-size: 2rem;
    }
}

#photography {
    padding: 100px 0;
}

#photography .section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#photography .section-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* 视频项目样式 */
.video-item {
    position: relative;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 50px;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.video-item:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* 媒体模态框样式 */
.media-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    box-sizing: border-box;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: #ff6b00;
    transform: scale(1.1);
}

.modal-media-container {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-media-container img,
.modal-media-container video {
    width: 100%;
    display: block;
    max-height: 80vh;
    object-fit: contain;
}

.modal-info {
    color: white;
    text-align: center;
    padding: 15px 0;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-date {
    font-size: 16px;
    opacity: 0.8;
}

/* 视频控制样式 */
.video-player {
    cursor: pointer;
}

.modal-media-container video {
    background-color: black;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .play-icon {
        font-size: 40px;
    }
} 