* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F5F5F5;
    color: #333;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* 上半部分背景图片 */
.top-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 381px;
    background-image: url('photo/阿良良木历.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.9;
}

/* 内容区域 */
.content-overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, transparent 381px, white 381px);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航栏 */
nav {
    background-color: rgba(26, 42, 58, 0.95);
    padding: 15px 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 5px;
}

nav ul li a:hover {
    color: #4FC3F7;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 语言选择器 */
.language-switcher {
    position: relative;
    z-index: 1001;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    display: none;
    z-index: 1002;
    margin-top: 5px;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: #f5f5f5;
}

.language-option.active {
    background: #4FC3F7;
    color: white;
}

.admin-login-btn {
    background: #4FC3F7;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    z-index: 1001;
}

.admin-login-btn:hover {
    background: #29B6F6;
}

.admin-login-btn.admin-mode {
    background: #d35400;
}

.admin-login-btn.admin-mode:hover {
    background: #e74c3c;
}

/* 个人简介区 */
.profile-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 30px;
    border: 5px solid #1A2A3A;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-pic .avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
    text-align: center;
    flex-direction: column;
}

.profile-pic:hover .avatar-overlay {
    opacity: 1;
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1A2A3A;
}

.tagline {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* 社交链接 */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-links a i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.x-icon { background: #000; color: white; }
.x-icon:hover { background: #222; transform: translateY(-2px); }

.ig-icon { background: #E1306C; color: white; }
.ig-icon:hover { background: #F56040; transform: translateY(-2px); }

.qq-icon { background: #12B7F5; color: white; }
.qq-icon:hover { background: #0099E5; transform: translateY(-2px); }

.wechat-icon { background: #09BB07; color: white; }
.wechat-icon:hover { background: #07A306; transform: translateY(-2px); }

.bilibili-icon { background: #FB7299; color: white; }
.bilibili-icon:hover { background: #FF85AD; transform: translateY(-2px); }

/* 内容区域 */
.content-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.section-title {
    color: #1A2A3A;
    margin-bottom: 20px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1A2A3A, #4FC3F7);
}

/* 管理员控制面板 */
.admin-controls {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: none;
}

.admin-controls h3 {
    color: #dc3545;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 留言板样式 */
.guestbook-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #4FC3F7;
    box-shadow: 0 0 5px rgba(79, 195, 247, 0.3);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    text-align: right;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    margin-left: 10px;
}

.btn-primary {
    background: #4FC3F7;
    color: white;
}

.btn-primary:hover {
    background: #29B6F6;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-danger {
    background: #dc3545;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
}

.btn-danger:hover {
    background: #c82333;
}

.guestbook-messages {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.message-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.3s;
    position: relative;
}

.message-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f1f1;
}

.message-author {
    font-weight: 600;
    color: #4FC3F7;
}

.message-time {
    font-size: 12px;
    color: #6c757d;
}

.message-content {
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}

.message-actions {
    text-align: right;
    opacity: 0;
    transition: opacity 0.3s;
}

.message-item:hover .message-actions {
    opacity: 1;
}

.empty-messages {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 0;
}

.status-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.status-message.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.status-message.warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* 商铺链接 */
.shop-link-container {
    text-align: center;
    margin: 40px 0 20px 0;
    padding: 20px;
}

.shop-link {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #4FC3F7, #29B6F6);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.3);
}

.shop-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.4);
    background: linear-gradient(135deg, #29B6F6, #4FC3F7);
}

.shop-link i {
    margin-right: 10px;
    font-size: 1.3rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-pic {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .nav-right {
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    .cloud-drive-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #4285f4;
    color: white;
    border-radius: 4px;
    margin-left: 10px;
}
.file-manager {
    margin-top: 20px;
}
.file-card {
    transition: all 0.3s;
}
.file-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* 云盘相关样式 */
.cloud-drive-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: #4285f4;
    color: white;
    border-radius: 4px;
    margin-left: 10px;
}

.file-card {
    background: rgba(255,255,255,0.9);
}
.file-card {
    transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s cubic-bezier(.2,.8,.2,1);
    will-change: transform, box-shadow;
}

.file-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    /* 禁用常见的动画/过渡以尊重用户设置 */
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .file-card,
    .file-card:hover {
        transition: none !important;
        transform: none !important;
        box-shadow: none !important;
    }
}