/* 全局样式 */
:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #0071e3;
    --background-color: #ffffff;
    --light-gray: #f5f5f7;
    --medium-gray: #86868b;
    --text-color: #1d1d1f;
    --spacing-unit: 8px;
    --transition: all 0.3s ease;
    
    /* 暗黑模式变量 */
    --dark-background: #121212;
    --dark-card-background: #1e1e1e;
    --dark-text: #e0e0e0;
    --dark-secondary-text: #aaaaaa;
    --dark-border: #333333;
    --dark-hover: #2c2c2c;
}

/* 暗黑模式样式 */
body.dark-mode {
    background-color: var(--dark-background);
    color: var(--dark-text);
}

body.dark-mode .navbar {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.dark-mode .navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .logo h1,
body.dark-mode .nav-links a {
    color: var(--dark-text);
}

body.dark-mode .burger div {
    background-color: var(--dark-text);
}

body.dark-mode .about,
body.dark-mode .articles {
    background-color: var(--dark-background);
}

body.dark-mode .photography,
body.dark-mode .resume,
body.dark-mode footer {
    background-color: var(--dark-card-background);
}

body.dark-mode .section-description,
body.dark-mode .about-description,
body.dark-mode .about-detail p,
body.dark-mode .article-content p,
body.dark-mode .timeline-content p {
    color: var(--dark-secondary-text);
}

body.dark-mode .social-icon,
body.dark-mode .filter-btn,
body.dark-mode .article-tag {
    background-color: var(--dark-card-background);
    color: var(--dark-text);
}

body.dark-mode .article-item,
body.dark-mode .resume-section,
body.dark-mode .sidebar-widget,
body.dark-mode .portfolio-sidebar {
    background-color: var(--dark-card-background);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .skill-bar {
    background-color: var(--dark-border);
}

body.dark-mode .timeline::before {
    background-color: var(--dark-border);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: var(--dark-card-background);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: var(--accent-color);
}

/* 暗黑模式切换按钮 */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.theme-toggle i {
    font-size: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-description {
    max-width: 700px;
    margin: 20px auto 0;
    color: var(--medium-gray);
    font-size: 18px;
}

.underline {
    height: 4px;
    width: 60px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

.highlight {
    color: var(--accent-color);
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 60%;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 500;
    padding: 10px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    width: calc(100% - 20px);
    height: 2px;
    background-color: var(--accent-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: var(--transition);
}

/* 首页英雄区域 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/photography-background.svg?v=1') center center/cover no-repeat;
    position: relative;
    padding-top: 80px; /* 为导航栏留出空间 */
    overflow: hidden;
}

/* 相机快门动画效果 */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: url('../images/camera-shutter.svg?v=1') center center/contain no-repeat;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 24px;
    color: var(--medium-gray);
    margin-bottom: 32px;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    margin: 0 8px;
    transition: var(--transition);
}

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

/* 关于我部分 */
.about {
    background-color: var(--background-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.profile-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.about-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.about-details {
    margin-bottom: 40px;
}

.about-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.about-detail i {
    font-size: 24px;
    color: var(--accent-color);
    margin-right: 20px;
    margin-top: 5px;
}

.about-detail h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.about-detail p {
    color: var(--medium-gray);
}

.about-cta {
    display: flex;
    gap: 20px;
}

/* 摄影作品部分 */
.photography {
    background-color: var(--light-gray);
}

.photography-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    margin: 0 8px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 30px;
}

.filter-btn:hover {
    color: var(--accent-color);
}

.filter-btn.active {
    background-color: var(--accent-color);
    color: white;
}

.photography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.photography-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.photography-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.photography-img-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.photography-item:hover .photography-img-container img {
    transform: scale(1.05);
}

.photography-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.photography-item:hover .photography-overlay {
    transform: translateY(0);
    opacity: 1;
}

.photography-info h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 8px;
}

.photography-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.photography-more {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.lazy-img {
    filter: blur(10px);
    transition: filter 0.3s;
}

/* 文章部分 */
.articles {
    background-color: var(--background-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.article-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    background-color: white;
}

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

.article-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.article-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--medium-gray);
    font-size: 14px;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 5px;
}

.article-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: var(--transition);
}

.article-item:hover .article-content h3 {
    color: var(--accent-color);
}

.article-content p {
    color: var(--medium-gray);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

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

/* 简历部分 */
.resume {
    background-color: var(--light-gray);
}

.resume-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.resume-section {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.resume-section-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 15px;
}

.resume-section-header h3 {
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.resume-section-header h3 i {
    color: var(--accent-color);
    margin-right: 15px;
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding-left: 40px;
}

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

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--light-gray);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-content h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.timeline-content h5 {
    font-size: 16px;
    color: var(--medium-gray);
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-content p {
    color: var(--secondary-color);
}

/* 技能样式 */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-info h4 {
    font-size: 18px;
    font-weight: 500;
}

.skill-percentage {
    color: var(--accent-color);
    font-weight: 600;
}

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

.skill-progress {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 4px;
    transition: width 1.5s ease;
}

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

.resume-download .btn {
    display: inline-flex;
    align-items: center;
}

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

/* 联系我部分 */
.contact {
    background-color: var(--background-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-info {
    background-color: var(--accent-color);
    color: white;
    padding: 40px;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background-color: white;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-item p {
    opacity: 0.8;
}

.contact-social {
    margin-top: 40px;
}

.contact-social h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-info .social-icons {
    justify-content: flex-start;
    margin-bottom: 0;
}

.contact-info .social-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.contact-info .social-icon:hover {
    background-color: white;
    color: var(--accent-color);
}

.contact-form-container {
    padding: 40px;
}

.contact-form-container h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
}

.contact-form-container h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* 页脚样式 */
footer {
    background-color: var(--light-gray);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 20px;
    color: var(--medium-gray);
}

/* 相机指示器 */
.camera-indicators {
    position: absolute;
    top: 120px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 3;
}

.indicator {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: pulse 2s infinite alternate;
}

.aperture {
    animation-delay: 0s;
}

.shutter-speed {
    animation-delay: 0.7s;
}

.iso {
    animation-delay: 1.4s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* 对焦框样式 */
.focus-frame-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
    animation: float 8s ease-in-out infinite;
}

.focus-frame {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%);
    }
    25% {
        transform: translate(-52%, -48%);
    }
    50% {
        transform: translate(-49%, -51%);
    }
    75% {
        transform: translate(-48%, -49%);
    }
    100% {
        transform: translate(-50%, -50%);
    }
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .nav-links {
        width: 70%;
    }
    
    .section-container {
        padding: 80px 20px;
    }
    
    .photography-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .resume-section {
        padding: 30px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: 30px;
    }
    
    .contact-form-container {
        padding: 30px;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 8vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
        border-radius: 20px 0 0 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links li {
        opacity: 0;
    }
    
    .burger {
        display: block;
    }
    
    .nav-active {
        transform: translateX(0%);
    }
    
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .toggle .line2 {
        opacity: 0;
    }
    
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-text h3 {
        font-size: 24px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .photography-grid {
        grid-template-columns: 1fr;
    }
    
    .photography-more {
        margin-top: 30px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 60px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 22px;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }
    
    .camera-indicators {
        top: 100px;
        right: 20px;
        gap: 10px;
    }
    
    .indicator {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .focus-frame-container {
        width: 300px;
        height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .about-text h3 {
        font-size: 24px;
    }
    
    .about-description {
        font-size: 16px;
    }
    
    .about-detail i {
        font-size: 20px;
    }
    
    .about-detail h4 {
        font-size: 18px;
    }
    
    .about-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .photography-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        padding: 6px 15px;
        margin: 0 4px 12px;
        font-size: 14px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-img {
        height: 180px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-content h3 {
        font-size: 18px;
    }
    
    .resume-section {
        padding: 20px;
    }
    
    .timeline-content h4 {
        font-size: 18px;
    }
    
    .timeline-content h5 {
        font-size: 14px;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 25px;
    }
    
    .contact-item i {
        font-size: 20px;
    }
    
    .contact-item h4 {
        font-size: 16px;
    }
} 

/* 图片浏览器样式 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
}

.image-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-viewer-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    max-width: 90%;
    max-height: 90%;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-viewer-img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 5px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.image-viewer-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-viewer-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.image-viewer-prev,
.image-viewer-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-viewer-prev {
    left: -80px;
}

.image-viewer-next {
    right: -80px;
}

.image-viewer-prev:hover,
.image-viewer-next:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

@media screen and (max-width: 768px) {
    .image-viewer-close {
        top: 10px;
        right: 10px;
    }
    
    .image-viewer-prev,
    .image-viewer-next {
        width: 40px;
        height: 40px;
    }
    
    .image-viewer-prev {
        left: 10px;
    }
    
    .image-viewer-next {
        right: 10px;
    }
} 