/* --- CSS 变量定义 (淡绿色主题) --- */
:root {
    --bg-color: #f0f8f0;      /* 主背景：淡绿色 */
    --bg-secondary: #e8f5e8;  /* 次级背景：稍深的淡绿色 */
    --text-primary: #2c3e2c;  /* 主要文字色：深绿色 */
    --text-secondary: #5a6c5a;/* 次要文字色：中绿色 */
    --accent-color: #27ae60;  /* 强调色：鲜绿色 */
    --accent-hover: #219653;  /* 强调色悬停状态：深绿色 */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- 全局重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* 点击导航平滑滚动 */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- 通用工具类 --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-dark {
    background-color: var(--bg-secondary);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-transform: uppercase;
}

/* --- 导航栏 Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(240, 248, 240, 0.9); /* 半透明淡绿色背景 */
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    z-index: 100;
    padding: 15px 0;
    border-bottom: 1px solid rgba(44, 62, 44, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

/* --- 首屏大图 Hero Section --- */
.hero-section {
    height: 100vh; /* 占满全屏高度 */
    background-image: url('hero-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

/* 淡绿色遮罩层，让文字更清晰 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(240, 248, 240, 0.4), rgba(232, 245, 232, 0.9));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
    transform: translateY(-2px);
}

/* --- 核心理念卡片 --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 响应式网格 */
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.7);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(44, 62, 44, 0.1);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- 五层生命系统框架 --- */
.system-intro {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.framework-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.framework-item {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.7);
    padding: 35px;
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.framework-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* 突出显示第五层（北极星层） */
.highlight-layer {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(232, 245, 232, 0.5));
    border-left-color: #9b59b6; /* 紫色代表灵性/北极星 */
}

.fw-icon {
    font-size: 2rem;
    margin-right: 30px;
    color: var(--text-primary);
    opacity: 0.5;
    min-width: 50px;
    text-align: center;
}

.highlight-layer .fw-icon {
    color: #9b59b6;
    opacity: 1;
}

.fw-content {
    flex-grow: 1;
}

.fw-content h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.fw-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 1rem;
}

/* 层级徽章样式 */
.layer-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-purple { background: rgba(155, 89, 182, 0.1); color: #8e44ad; }
.badge-blue { background: rgba(52, 152, 219, 0.1); color: #2980b9; }
.badge-green { background: rgba(39, 174, 96, 0.1); color: #27ae60; }
.badge-gold { background: rgba(241, 196, 15, 0.1); color: #d35400; }
.badge-red { background: rgba(231, 76, 60, 0.1); color: #c0392b; }

/* 列表样式 */
.layer-list {
    margin: 15px 0;
    margin-left: 20px;
    list-style-type: disc;
    color: var(--text-secondary);
}

.layer-list li {
    margin-bottom: 5px;
}

/* 水平列表 (用于第三层) */
.horizontal-list {
    list-style: none;
    margin-left: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.horizontal-list li {
    background: rgba(0,0,0,0.03);
    padding: 5px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.quote-text {
    font-style: italic;
    border-left: 3px solid rgba(0,0,0,0.1);
    padding-left: 15px;
    margin-top: 15px !important;
    color: var(--text-primary) !important;
}

.sub-text {
    font-size: 0.9rem !important;
    color: var(--text-primary) !important;
    opacity: 0.7;
    margin-top: 10px;
    font-weight: bold;
}

.system-outro {
    max-width: 800px;
    margin: 50px auto 0 auto;
}

.outro-highlight {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-top: 20px;
}


/* --- 航行日志 --- */
.log-intro {
    color: var(--text-secondary);
    max-width: 600px;
    margin: -20px auto 40px auto;
}

.latest-log-card {
    background: linear-gradient(45deg, rgba(255,255,255,0.7), rgba(39,174,96,0.05));
    padding: 40px;
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    border: 1px solid rgba(39, 174, 96, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.log-date {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.latest-log-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.latest-log-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.read-more-link {
    color: var(--accent-color);
    font-weight: bold;
}

/* --- 页脚 --- */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(44, 62, 44, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
    background-color: var(--bg-secondary);
}

.footer-logo {
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* --- 第一层身体硬件层专用样式 --- */
.body-hardware-hero {
    height: 100vh;
    background-image: url('picture/body.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.body-hardware-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(240, 248, 240, 0.3), rgba(232, 245, 232, 0.8));
    z-index: 1;
}

.body-hardware-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.body-hardware-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.body-hardware-subtitle {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-weight: 500;
}

.body-hardware-quote {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 12px;
    margin: 30px auto;
    max-width: 600px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.body-hardware-quote p {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 500;
}

.body-hardware-quote .author {
    color: var(--accent-color);
    font-weight: bold;
    margin-top: 15px;
}

/* 漫画故事部分 */
.comic-story-section {
    background-color: var(--bg-color);
    padding: 60px 0;
    text-align: center;
}

.comic-title {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    font-weight: bold;
}

.comic-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.comic-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    margin: 0 auto;
    display: block;
}

/* 宽屏设备优化 */
@media (min-width: 1200px) {
    .comic-image {
        max-width: 1200px;
    }
}

@media (min-width: 1400px) {
    .comic-image {
        max-width: 1400px;
    }
}

@media (min-width: 1600px) {
    .comic-image {
        max-width: 1600px;
    }
}

.comic-description {
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

.comic-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.comic-description .highlight-text {
    color: var(--accent-color);
    font-weight: bold;
    font-style: italic;
}

/* 内容区域 */
.content-section {
    background-color: var(--bg-secondary);
    padding: 80px 0;
}

.layer-section {
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.7);
    padding: 40px;
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.layer-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.layer-icon {
    font-size: 1.5rem;
}

.layer-content h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
}

.layer-content h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
}

.layer-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.layer-content ul, .layer-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.layer-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.highlight {
    color: var(--accent-color);
    font-weight: bold;
}

.philosophy-section {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(39, 174, 96, 0.05));
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
}

.philosophy-title {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.philosophy-content {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.protocol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.protocol-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(39, 174, 96, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.protocol-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.2);
}

.protocol-title {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.protocol-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.back-to-home {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.back-to-home:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.footer-section {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- 移动端适配 (简单版) --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none; /* 暂时在手机上隐藏导航链接，以后可以加汉堡菜单 */
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }

    .framework-item {
        flex-direction: column;
        text-align: left;
    }
    
    .fw-icon {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: left;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 30px;
    }

    .avatar-circle {
        width: 150px;
        height: 150px;
    }
    
    .avatar-circle i {
        font-size: 4rem;
    }

    .goal-box {
        text-align: left;
        flex-direction: row;
    }
}

.about-container {
    display: flex;
    align-items: center; /* 垂直居中 */
    gap: 50px; /* 头像和文字的间距 */
    background: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
    padding: 50px;
    border-radius: 16px;
    border: 1px solid rgba(44, 62, 44, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* 头像区域样式 */
.about-avatar {
    flex-shrink: 0; /* 防止头像被压缩 */
}

.avatar-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.2);
}

.avatar-circle i {
    font-size: 5rem;
    color: var(--accent-color);
}

/* 文字内容区域样式 */
.about-content {
    flex-grow: 1;
}

.greeting {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.emoji {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

.intro-highlight {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-primary);
}

/* 强调色文字 */
.accent-text {
    color: var(--accent-color);
    font-weight: bold;
}

/* 目标卡片样式 */
.goal-box {
    display: flex;
    align-items: center;
    background: rgba(39, 174, 96, 0.1);
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.goal-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
}

.description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.description strong {
    color: var(--text-primary);
}

.invitation {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: 1px;
}

/* --- 设计文档部分样式 --- */
.doc-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(39,174,96,0.05));
    padding: 50px;
    border-radius: 16px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(39, 174, 96, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.doc-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    display: block;
}

.doc-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.doc-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.doc-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.doc-feature {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.doc-feature i {
    color: var(--accent-color);
    margin-right: 12px;
    font-size: 1.2rem;
}

.doc-feature span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.doc-btn {
    margin: 10px;
    padding: 14px 30px;
    font-size: 1rem;
}

.doc-btn i {
    margin-right: 8px;
}

.footer-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-link {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* --- 移动端适配：设计文档部分 --- */
@media (max-width: 768px) {
    .doc-card {
        padding: 30px 20px;
    }
    
    .doc-icon {
        font-size: 3rem;
    }
    
    .doc-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .doc-btn {
        display: block;
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }
    
    .footer-note {
        font-size: 0.8rem;
    }
}