/* 
 * 主样式文件 - 个人作品集网站
 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066FF; /* 主题蓝色 */
    --secondary-color: #111111; /* 深灰色/黑色 */
    --text-color: #333333; /* 文本颜色 */
    --light-text: #666666; /* 浅色文本 */
    --bg-color: #ffffff; /* 背景色 */
    --light-bg: #f5f5f5; /* 浅灰背景 */
    --border-color: #e0e0e0;
    --transition-speed: 0.3s;
    --font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 加载动画 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-inner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 导航栏 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

/* 黑色导航栏样式 */
.dark-header {
    background-color: #000000;
    box-shadow: none;
}

.dark-header .logo a,
.dark-header .nav-links a,
.dark-header .social-links a {
    color: #ffffff;
}

.dark-header .menu-toggle span {
    background-color: #ffffff;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light-text);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a.active,
.nav-links a:hover {
    color: #ffffff;
}

.dark-header .nav-links a::after {
    background-color: #ffffff;
}

.nav-links a.active {
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-left: 40px;
}

.social-links a, .footer-social a {
    font-size: 1.1rem;
    color: var(--light-text);
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover, .footer-social a:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.footer-social a {
    font-size: 1.3rem;
    color: #ffffff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

/* 主要内容 */
main {
    margin-top: 60px;
    padding-bottom: 100px;
}

/* 关于部分 */
.about-section {
    padding: 20px 0 60px;
}



.section-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.about-content {
    display: flex;
    gap: 40px;
    margin-top: 0;
    margin-bottom: 40px;
    align-items: flex-start;
}

.about-text {
    flex: 1.2;
}

.lead-text {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.4;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.about-image img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    object-fit: contain;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 450px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-caption {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 技能部分 */
.skill-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.section-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-list li {
    background-color: var(--bg-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 身份标签 */
.identity-section {
    padding: 60px 0;
    text-align: center;
}

.identity-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 40px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* 随机事实 */
.facts-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.facts-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.facts-list li {
    background-color: var(--bg-color);
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.yoda-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
}

.yoda-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 技能评分部分 */
.skills-section {
    padding: 60px 0;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skill-levels {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.skill-level {
    display: flex;
    gap: 50px;
}

.skill-level span {
    font-size: 0.9rem;
    color: var(--light-text);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-bar {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-info span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.progress-line {
    position: relative;
    height: 8px;
    width: 100%;
    background-color: var(--light-bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-line span {
    position: absolute;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.tea span {
    width: 95%;
}

.design-systems span {
    width: 90%;
}

.figma span {
    width: 95%;
}

.gardening span {
    width: 75%;
}

.calisthenics span {
    width: 40%;
}

/* 新的柱状图技能样式 */
.skills-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 400px;
    margin-top: 40px;
    position: relative;
}

.skill-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18%;
    position: relative;
}

.skill-bar-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 350px;
}

.skill-bar-new {
    width: 100%;
    border-radius: 8px 8px 0 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
}

.skill-name {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
}

.skill-percentage {
    position: absolute;
    bottom: -30px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.tea-bar {
    background-color: #7ad0c1;
    height: 95%;
}

.strength-bar {
    background-color: #f8c8c0;
    height: 90%;
}

.nutrition-bar {
    background-color: #e9c46a;
    height: 95%;
}

.gaming-bar {
    background-color: #d4a373;
    height: 75%;
}

.drinking-bar {
    background-color: #e76f51;
    height: 40%;
}

.skill-level-lines {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: -1;
}

.skill-level-line {
    width: 100%;
    height: 1px;
    background-color: #eee;
}

.skill-level-labels {
    position: absolute;
    left: -80px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.skill-level-label {
    font-size: 0.9rem;
    color: #999;
    height: 20px;
    display: flex;
    align-items: center;
}

/* 特色部分 */
.featured-section, .book-section, .design-system-section, .story-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.featured-section p, .book-section p, .design-system-section p, .story-section p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 30px;
    max-width: 800px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #0055cc;
    transform: translateY(-2px);
}

.featured-image, .book-image, .design-system-image, .story-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.featured-image img, .book-image img, .design-system-image img, .story-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 页脚 */
footer {
    background-color: var(--light-bg);
    padding: 50px 0;
}

.dark-footer {
    background-color: #000000;
    color: #ffffff;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    color: var(--light-text);
}

.dark-footer .copyright {
    color: #ffffff;
}

.footer-nav ul {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark-footer .footer-nav a {
    color: #ffffff;
    opacity: 0.8;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.dark-footer .footer-nav a:hover {
    color: #ffffff;
    opacity: 1;
}

.back-to-top {
    background-color: transparent;
    color: var(--light-text);
    padding: 10px 20px;
    border: 1px solid var(--light-text);
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dark-footer .back-to-top {
    color: #ffffff;
    border-color: #ffffff;
}

.back-to-top:hover {
    background-color: #ffffff;
    color: #000000;
}

/* 联系我部分 */
.contact-section {
    padding: 100px 0;
    background-color: #fafafa;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-name {
    font-size: 2rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.contact-address,
.contact-country {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.6;
}

.contact-email {
    font-size: 1.2rem;
    line-height: 1.6;
}

.contact-email a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.contact-email a:hover {
    color: #555;
    border-color: #555;
}

.qr-code {
    width: 200px;
    height: 200px;
    padding: 15px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.qr-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.qr-placeholder p {
    font-size: 16px;
    color: #666;
    text-align: center;
    padding: 10px;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.map-container {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.map-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 6px;
}

.map-container:hover .map-image {
    transform: scale(1.02);
}

/* Q&A部分 */
.qa-section {
    padding: 80px 0;
    background-color: #fafafa;
}

.qa-container {
    margin-top: 40px;
}

.qa-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: white;
}

.qa-question {
    padding: 20px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1.1rem;
}

.qa-question:hover {
    background-color: #f9f9f9;
}

.qa-question i {
    transition: transform 0.3s ease;
}

.qa-item.active .qa-question i {
    transform: rotate(180deg);
}

.qa-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
    opacity: 0;
}

.qa-item.active .qa-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
    opacity: 1;
}

.qa-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* 添加编号样式 */
.qa-item {
    position: relative;
    counter-increment: qa-counter;
}

.qa-question::before {
    content: "0" counter(qa-counter) ".";
    display: inline-block;
    margin-right: 10px;
    font-weight: 700;
    color: #000;
    min-width: 30px;
}

/* 分隔线样式 */
.qa-item:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background-color: #f0f0f0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    header {
        padding: 20px 30px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        max-width: 100%;
        margin-top: 30px;
    }
    
    .about-image img {
        max-height: 400px;
        width: auto;
        margin: 0 auto;
    }
    
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .facts-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    
    .nav-links, .social-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .lead-text {
        font-size: 1.5rem;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .facts-list {
        grid-template-columns: 1fr;
    }
    
    footer .container {
        flex-direction: column;
        gap: 20px;
    }

    .contact-info {
        flex-direction: column;
        gap: 40px;
        padding-bottom: 30px;
    }
    
    .contact-details {
        text-align: center;
    }
    
    .contact-name {
        font-size: 1.8rem;
    }
    
    .qr-code {
        margin: 0 auto;
    }
    
    .map-container {
        height: 300px;
    }
} 

/* 子页面样式 */
.subpage-section {
    padding: 100px 0;
    min-height: calc(100vh - 300px);
}

.subpage-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin: 50px 0;
}

.subpage-text {
    flex: 1;
    min-width: 300px;
}

.qr-code-large {
    width: 300px;
    height: 300px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 18px;
    color: #666;
}

.douyin-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
    min-width: 300px;
}

.douyin-videos {
    width: 100%;
    height: 400px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    color: #666;
}

.video-placeholder i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #000;
}

.back-link {
    margin-top: 30px;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    color: #000;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link a i {
    margin-right: 10px;
}

.back-link a:hover {
    transform: translateX(-5px);
}

.email-link {
    color: #0066FF;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #0066FF;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: #0055cc;
}

/* 联系表单样式 */
.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066FF;
}

.submit-btn {
    background-color: #000;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
} 

/* 微信页面特定样式 */
.wechat-content {
    display: block;
}

.wechat-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    margin: 80px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.wechat-info .subpage-text {
    flex: 0 1 400px;
    min-width: 300px;
}

.wechat-info .qr-code-large {
    flex: 0 0 300px;
    margin: 0;
}

@media (max-width: 768px) {
    .wechat-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wechat-info .qr-code-large {
        width: 100%;
        max-width: 300px;
        margin: 30px auto 0;
    }
} 