/* 全局样式 */
:root {
    --primary-color: #2c3e50;
    --name-color: #fea330;
    --accent-color: #3498db;
    --text-color: #2c3e50;
    --bg-color: #f9f9f9;
    --section-padding: 100px 0;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a, a:hover, a:visited, a:active {
    text-decoration: none;
}

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

/* 自定义光标 */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
    transform-origin: center center;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.menu ul {
    display: flex;
    list-style: none;
    gap: 0px;
}

.menu a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.menu a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .cursor {
        display: none;
    }

    .menu ul {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
    }
    
    .menu ul.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
}

/* 英雄区域 */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        height: 60vh;
        justify-content: center;
    }
}

/* 向上滑动提示 */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--accent-color);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes bounce {
     0%, 20%, 50%, 80%, 100% {
         transform: translateY(0);
     }
     40% {
         transform: translateY(-20px);
     }
     60% {
         transform: translateY(-10px);
     }
 }

@media (max-width: 768px) {
    .scroll-down {
        display: block;
        bottom: 20px;
        font-size: 1.5rem;
    }
}

/* 头像旋转动画 */
.avatar {
    transition: transform 0.5s ease-in-out;
    transform-origin: center center;
}

/* 旋转动画关键帧 */
@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bgPan {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes rotateBack {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
    margin-bottom: 30px;
    animation: pulse 2s infinite alternate;
}

@media (max-width: 768px) {
    .avatar {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(74, 107, 175, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(74, 107, 175, 0.8);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 20px rgba(74, 107, 175, 0.5);
        transform: scale(1);
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://img.alicdn.com/imgextra/i1/77815199/O1CN01xNFV0d1oHCE5pP11w_!!77815199.jpg') no-repeat right center;
    background-size: cover;
    z-index: 1;
}

/* 如果没有设置背景图，使用默认样式 */
.hero-bg:not([style*="background-image"]) {
    background: url('https://img.alicdn.com/imgextra/i1/77815199/O1CN01xNFV0d1oHCE5pP11w_!!77815199.jpg') no-repeat right center;
    background-size: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(26,42,58,0.3) 0%, rgba(74,107,175,0.5) 100%);
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-bg {
        background-position: center center;
    }
    
    .hero-bg::after {
        background: radial-gradient(circle, rgba(26,42,58,0.3) 0%, rgba(74,107,175,0.5) 100%);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 40%;
    padding-left: 20%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .hero-content {
        width: 90%;
        padding-left: 5%;
        padding-right: 5%;
        text-align: center;
        align-items: center;
        margin: 0 auto;
    }
}

.name {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--name-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.title {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #3498db, #e74c3c, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 100%;
}

@media (max-width: 768px) {
    .name {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .title {
        font-size: 1.2rem;
        margin-bottom: 30px;
        padding: 0 10px;
        word-wrap: break-word;
    }
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

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

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

.bio {
    font-size: 1.1rem;
    line-height: 1.8;
}

.bio p {
    margin-bottom: 20px;
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: -20px;
    justify-content: center;
}

/* 时间轴 */
.timeline {
    padding: var(--section-padding);
    background-color: #f3f4f5;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

/* 技能部分 */
.skills {
    padding: var(--section-padding);
    background-color: white;
    text-align: center;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

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

@media (max-width: 768px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}

/* 作品展示部分 */
.works {
    padding: var(--section-padding);
    background-color: #f3f4f5;
    text-align: center;
}

.works-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.work-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.work-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.work-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    font-size: 1.2rem;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    opacity: 0;
}

.work-item:hover h3 {
    transform: translateY(0);
    opacity: 1;
}

.work-item {
    position: relative;
    overflow: hidden;
}


.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: filter 0.3s ease;
    margin: 0;
    padding: 0;
}

.work-item:hover img {
    filter: brightness(0.6) contrast(1.2);
    animation: bgPan 30s infinite alternate;
}

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

@media (max-width: 768px) {
    .works-container {
        grid-template-columns: 1fr;
    }
}

/* 页脚 */
.footer {
    padding: 40px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(52, 152, 219, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.back-to-top:hover {
    background-color: rgba(44, 62, 80, 0.7);
    transform: translateY(-5px);
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    color: white;
    margin: 0 15px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: scale(1.3);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* 响应式设计 */
@media (max-width: 768px) {
    .name {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .timeline-container::after {
        left: 30px;
    }
}

/* 滚动动画类 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.wechat-icon {
    position: relative;
}

.wechat-qrcode {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: none;
}

.wechat-qrcode img {
    width: 100%;
    height: auto;
}

.wechat-icon:hover .wechat-qrcode {
    display: block;
}

.footer a {
    color: inherit;
}

.footer a:hover {
    color: inherit;
}

.scroll-down a {
    color: inherit;
}

.scroll-down a:hover,
.scroll-down a:visited,
.scroll-down a:active {
    color: inherit;
}

.hero-content {
    text-align: center;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.contact {
    padding: 80px 0;
    background: #ffffff;
}

/* 联系方式布局 */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* 添加响应式设计 */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

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

/* 留言表单样式 */
.message-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.message-form h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
}

/* 表单行布局 - 名字和电话号码在一排 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 17px;
}

.message-form .form-group {
    margin-bottom: 15px;
}

/* 隐藏标签但保持可访问性 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 输入框图标容器 */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

/* textarea特殊容器 */
.textarea-wrapper {
    align-items: flex-start;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: #6c757d;
    z-index: 1;
    pointer-events: none;
}

/* textarea的图标位置调整 */
.textarea-wrapper .input-icon {
    top: 17px;
}

.message-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.message-form input,
.message-form textarea {
    width: 100%;
    padding: 12px 16px 12px 50px; /* 左侧留出图标空间 */
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

/* textarea特殊样式 - 为圆形按钮留出右侧空间 */
.textarea-wrapper textarea {
    padding-right: 60px; /* 右侧留出圆形按钮空间 */
}

.message-form input:focus,
.message-form textarea:focus {
    outline: none;
    border-color: #4a6baf;
    box-shadow: 0 0 0 3px rgba(74, 107, 175, 0.1);
}

.message-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* 圆形发送按钮 */
.submit-btn-round {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    z-index: 2;
}

.submit-btn-round svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 2;
}

.submit-btn-round:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.submit-btn-round:active {
    transform: translateY(0);
}

/* 加载动画 */
.fa-spin {
    animation: spin 1s linear infinite;
}

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

.submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #4a6baf 0%, #667eea 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 107, 175, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .message-form {
        padding: 20px;
    }
    
    .message-form h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    /* 移动端名字和电话垂直排列 */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .message-form .form-group {
        margin-bottom: 15px;
    }
    
    .message-form input,
    .message-form textarea {
        padding: 10px 14px 10px 45px; /* 移动端图标间距调整 */
        font-size: 14px;
    }
    
    .textarea-wrapper textarea {
        padding-right: 55px; /* 移动端圆形按钮空间调整 */
    }
    
    .submit-btn-round {
        width: 36px;
        height: 36px;
        right: 10px;
        bottom: 10px;
    }
    
    .submit-btn-round svg {
        width: 16px;
        height: 16px;
    }
    
    .input-icon {
        left: 14px;
        width: 16px;
        height: 16px;
    }
    
    .submit-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 20px;
    color: #4a6baf;
}

.copy-btn {
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-left: auto;
}

.copy-btn:hover {
    color: #4a6baf;
    background: rgba(74, 107, 175, 0.1);
}

.copy-btn.copied {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.copy-btn i {
    font-size: 14px;
}

/* 复制提示样式 */
.copy-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
    min-width: 200px;
}

.copy-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-content i {
    font-size: 16px;
    color: white;
}

.toast-content span {
    font-size: 14px;
    font-weight: 500;
}

/* 错误提示样式 */
.copy-toast.error {
    background: #dc3545;
}

.copy-toast.error .toast-content i {
    color: white;
}

/* 导航菜单高亮效果 */
.menu ul li a {
    position: relative;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.menu ul li a.active {
    color: #4a6baf;
    font-weight: bold;
}

.menu ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15px;
    right: 15px;
    height: 3px;
    background: #4a6baf;
    border-radius: 3px;
}

/* 修改后 */
.menu ul li {
    margin: 0 -8px;
}

@media (max-width: 768px) {
    .menu ul {
        gap: 5px;  /* 缩小菜单项间距 */
        padding: 10px 0;  /* 减小内边距 */
    }
}

.menu ul li {
    margin: 10px 0;
}


/* 头像点击效果 */
.avatar {
    cursor: pointer;
}

/* 现代风格滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #0072ff, #00c6ff);
}
.menu ul li {
    margin: 10px 0;
}

/* 照片集弹窗样式 */
.photo-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.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-modal.show {
    display: block;
    opacity: 1;
}

.photo-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    width: 80%;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.4s ease;
}

.photo-modal.show .photo-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-color);
}

.photo-modal h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

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

.carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    /* 移除固定高度，使用宽高比例 */
    padding-bottom: 56.25%; /* 默认16:9比例 */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: none;
}

.carousel-slide.active {
    opacity: 1;
    display: block;
}

.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 改为contain以保持图片比例 */
    background-color: #000; /* 图片周围的背景色 */
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.carousel-prev, .carousel-next {
    background-color: var(--accent-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.3s;
}

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

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

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: var(--accent-color);
}

@media (max-width: 768px) {
    .carousel-container {
        padding-bottom: 75%; /* 4:3比例，更适合移动设备 */
    }
    
    .photo-modal-content {
        width: 90%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding-bottom: 100%; /* 1:1比例，在小屏幕上更好地显示 */
    }
}

/* 头像点击效果 */
.avatar {
    cursor: pointer;
}
