/* 基础样式 */
:root {
    --primary-color: #00adb5;
    --secondary-color: #393e46;
    --background-color: #222831;
    --text-color: #eeeeee;
    --accent-color: #ff5722;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* 顶部轮播图 */
.slider-container {
    position: relative;
    height: 60vh;
    overflow: hidden;
    margin-bottom: 30px;
}

.slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-header {
    text-align: center;
    padding: 20px;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.profile-info h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: white;
}

.company {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 15px;
}

.company-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: black;
    border-radius: 20px;
    font-size: 0.9rem;
}

.company-link:hover {
    transform: translateY(-2px);
}

/* 区块标题 */
.section-title {
    text-align: center;
    margin: 40px 0 30px;
    font-size: 2rem;
    position: relative;
    color: white;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 3px;
}

/* 公众号文章区块 */
.wechat-section {
    margin-bottom: 50px;
}

.loading, .error-message {
    text-align: center;
    padding: 20px;
    color: #aaa;
}

.loading i, .error-message i {
    margin-right: 10px;
}

.wechat-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.wechat-post {
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wechat-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.post-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    margin-bottom: 10px;
    color: white;
}

.post-meta {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
}

.read-more:hover {
    background: var(--accent-color);
}

.follow-button {
    text-align: center;
    margin-top: 30px;
}

.follow-button a {
    display: inline-block;
    padding: 12px 24px;
    background: #07c160;
    color: white;
    border-radius: 30px;
    font-weight: bold;
}

.follow-button a:hover {
    background: #06ad56;
    transform: scale(1.05);
}

/* 联系方式区块 */
.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.social-icon i {
    position: relative;
    z-index: 2;
}

.social-icon:hover::before {
    transform: scale(1);
}

.social-icon:hover i {
    transform: rotateY(360deg);
    color: white;
}

.social-icon i {
    transition: transform 0.6s ease;
}

/* 底部 */
.footer {
    background: #1a1a1a;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.friend-links {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.friend-links h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.friend-links ul {
    list-style: none;
}

.friend-links li {
    margin-bottom: 8px;
}

.friend-links a {
    color: #aaa;
    position: relative;
    padding-left: 15px;
}

.friend-links a::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.friend-links a:hover {
    color: white;
    padding-left: 20px;
}

.copyright {
    flex: 1;
    text-align: right;
    color: #aaa;
    font-size: 0.9rem;
}

/* 二维码模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.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: white;
}

.modal-body img {
    width: 250px;
    height: 250px;
    margin: 20px 0;
    border: 5px solid white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .slider-container {
        height: 50vh;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-info h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin: 30px 0 20px;
    }
    
    .wechat-posts, .blog-posts {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        text-align: center;
        margin-top: 20px;
    }
}

/* 互动效果 */
.hover-effect {
    position: relative;
    overflow: hidden;
}

.hover-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.hover-effect:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* 二维码模态框 */ 
.modal { 
 display: none; 
 position: fixed; 
 z-index: 1000; 
 left: 0; 
 top: 0; 
 width: 100%; 
 height: 100%; 
 background-color: rgba(0, 0, 0, 0.8); 
 animation: modalFadeIn 0.3s ease-out; 
} 
 
@keyframes modalFadeIn { 
 from { opacity: 0; } 
 to { opacity: 1; } 
} 
 
.modal-content { 
 position: absolute; 
 top: 50%; 
 left: 50%; 
 transform: translate(-50%, -50%); 
 background: var(--background-color); 
 padding: 30px; 
 border-radius: 10px; 
 text-align: center; 
 max-width: 90%; 
 width: 400px; 
 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
} 
 
.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: white; 
} 
 
.modal-body img { 
 width: 250px; 
 height: 250px; 
 margin: 20px 0; 
 border: 5px solid white; 
}