/* 全局样式 */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #3498DB;
    --text-color: #2C3E50;
    --light-bg: #F8F9FA;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

/* 主页面欢迎区样式 */
.hero-section {
    height: 100vh;
    background: #F9F6F2;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-section .lead {
    font-size: 1.5rem;
    color: #4a4a4a;
    margin-bottom: 2rem;
}

.hero-section .btn-primary {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    background-color: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 头像样式 */
.profile-image-container {
    margin-bottom: 2rem;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: contain;
    background-color: white;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 作品展示保护样式 */
.artwork-container {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* 4:3 比例 */
    background-color: #f8f8f8;
}

.artwork-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-color: #fff;
}

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

/* 作品卡片样式优化 */
.portfolio-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.portfolio-item .p-3 {
    background: white;
}

.portfolio-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.portfolio-item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.portfolio-item .tags .badge {
    background-color: var(--secondary-color);
    font-weight: normal;
    padding: 5px 10px;
}

/* 关于我区域样式 */
#about {
    background-color: #F9F6F2;
    padding: 80px 0;
}

#about h2 {
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.about-image-container {
    text-align: center;
    margin-bottom: 2rem;
}

.about-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin: 0 auto;
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.skills .badge {
    margin: 5px;
    padding: 8px 15px;
    font-size: 0.9rem;
    background-color: var(--secondary-color);
}

/* 社交媒体链接样式 */
footer {
    background-color: #F9F6F2;
    padding: 3rem 0 2rem;
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-about {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

footer h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.social-links {
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

footer .border-top {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 768px) {
    .profile-image {
        width: 150px;
        height: 150px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.2rem;
    }

    .hero-section .btn-primary {
        padding: 0.6rem 2rem;
        font-size: 1rem;
    }
    
    .about-image {
        width: 200px;
        height: 200px;
    }

    footer .col-md-4 {
        margin-bottom: 2rem;
    }
    
    footer .col-md-4:last-child {
        margin-bottom: 0;
    }
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* 二维码模态框样式 */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 1rem;
}

.modal-body {
    padding: 1rem 1.5rem 2rem;
}

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

.qrcode-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qrcode-container p {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

/* 允许特定文本选择 */
p, h1, h2, h3, h4, h5, h6 {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 作品描述样式 */
.artwork-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 1rem 0;
    text-align: justify;
}

.artwork-meta {
    margin-bottom: 0.8rem;
}

.artwork-date {
    font-size: 0.85rem;
    color: #666;
}

.artwork-brief {
    font-size: 0.9rem;
    color: #4a4a4a;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio-item .tags {
    margin-top: 1rem;
}

.portfolio-item .tags .badge {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    font-weight: normal;
    transition: all 0.3s ease;
}

.portfolio-item .tags .badge:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* 作品信息样式 */
.artwork-info {
    padding: 1.2rem;
    background: white;
}

.artwork-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

/* 作品大图模态框样式 */
#artworkModal .modal-content {
    background-color: rgba(255, 255, 255, 0.98);
}

#artworkModal .modal-dialog {
    max-width: 90vw;
}

#artworkModal .modal-body {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.artwork-full {
    max-height: 85vh;
    object-fit: contain;
}

/* 添加图片悬停效果 */
.artwork-preview {
    transition: opacity 0.3s ease;
}

.artwork-preview:hover {
    opacity: 0.9;
}

/* 贩量幸福版块样式 */
#about .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.happiness-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.happiness-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #666;
    line-height: 1.6;
    position: relative;
    padding: 0 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.happiness-image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    margin: 0 auto;
    overflow: hidden;
}

.happiness-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.happiness-image:hover {
    transform: translateY(-5px);
}

@media (min-width: 768px) {
    #about .container {
        padding: 0 30px;
    }
} 