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

/* 华为鸿蒙字体 */
@import url('https://fonts.googleapis.com/css2?family=HarmonyOS+Sans:wght@300;400;500;700&display=swap');

body {
    background-color: rgb(15, 16, 17);
    font-family: 'HarmonyOS Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 极简风格导航栏 */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgb(15, 16, 17);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0;
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.nav-left {
    flex: 0 0 auto;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #cccccc;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.menu {
    position: relative;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 5px 0;
    transition: color 0.3s ease;
    font-family: 'HarmonyOS Sans', inherit;
}

.menu-toggle:hover {
    color: #cccccc;
}

/* 磨砂玻璃效果的菜单弹窗 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 16, 17, 0.3);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    max-width: 600px;
    height: 100%;
    background: rgba(15, 16, 17, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 80px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-overlay.active .menu-panel {
    transform: translateX(0);
}

.menu-close {
    position: absolute;
    top: 40px;
    right: 80px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    font-family: 'HarmonyOS Sans', sans-serif;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.menu-close:hover {
    color: #cccccc;
}

.menu-nav {
    margin-top: 80px;
}

.menu-nav-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 72px;
    font-weight: 300;
    font-family: 'HarmonyOS Sans', sans-serif;
    margin-bottom: 20px;
    transition: color 0.3s ease;
    letter-spacing: -2px;
}

.menu-nav-link:hover {
    color: #cccccc;
}

.menu-social {
    margin-top: auto;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-social-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 300;
    font-family: 'HarmonyOS Sans', sans-serif;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.menu-social-link:hover {
    color: #cccccc;
}

@media (max-width: 768px) {
    .menu-panel {
        width: 85%;
        padding: 40px 30px;
    }
    
    .menu-close {
        top: 20px;
        right: 30px;
    }
    
    .menu-nav-link {
        font-size: 48px;
    }
    
    .menu-social-link {
        font-size: 16px;
    }
}

.nav-icon svg {
    display: block;
}

/* 主要内容区域 */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 30px;
    text-align: left;
}

.intro-section {
    margin-bottom: 80px;
}

.intro-paragraph {
    margin-bottom: 50px;
}

.intro-paragraph:last-child {
    margin-bottom: 0;
}

.intro-text-cn {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0;
    margin-top: 12px;
    font-style: italic;
    font-family: 'HarmonyOS Sans', sans-serif;
}

.intro-text-en {
    font-weight: 300;
    font-style: normal;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-family: 'HarmonyOS Sans', sans-serif;
    padding-left: 0;
    text-align: justify;
    text-justify: inter-word;
}

/* 根据中文段落长度调整英文字体大小 - 增大字体 */
.intro-text-en-1 {
    font-size: 20px; /* 第一段中文较长，英文增大 */
}

.intro-text-en-2 {
    font-size: 19px; /* 第二段中文中等，英文增大 */
}

.intro-text-en-3 {
    font-size: 18px; /* 第三段中文较短，英文增大 */
}

.intro-text-en-4 {
    font-size: 17px; /* 第四段中文最短，英文增大 */
}

.intro-text-en .quote {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
}

.intro-title {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    font-family: 'HarmonyOS Sans', sans-serif;
}

.site-title {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    font-family: 'HarmonyOS Sans', sans-serif;
}

h1 {
    color: #ffffff;
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    font-family: 'HarmonyOS Sans', sans-serif;
}

.main-content p {
    color: #cccccc;
    font-size: 16px;
    font-weight: 300;
    font-family: 'HarmonyOS Sans', sans-serif;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 15px 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-right {
        gap: 15px;
    }

    .nav-link {
        font-size: 13px;
    }
}

/* 竖向显示屏优化 */
@media (max-width: 600px) {
    .nav-container {
        padding: 12px 15px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .menu-toggle {
        font-size: 12px;
    }
}

    .main-content {
        padding: 60px 20px;
    }

    h1 {
        font-size: 32px;
    }

    .intro-section {
        margin-bottom: 60px;
    }

    .intro-paragraph {
        margin-bottom: 40px;
    }

    .intro-text-cn {
        font-size: 14px;
        margin-top: 10px;
        margin-bottom: 0;
    }

    .intro-text-en-1 {
        font-size: 17px;
    }

    .intro-text-en-2 {
        font-size: 16px;
    }

    .intro-text-en-3 {
        font-size: 15px;
    }

    .intro-text-en-4 {
        font-size: 14px;
    }

    .intro-title {
        font-size: 12px;
        margin-bottom: 30px;
    }
}

/* 版权信息样式 */
main {
    flex: 1;
}

.footer {
    width: 100%;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    margin-bottom: 0;
    box-sizing: border-box;
}

.footer-text {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'HarmonyOS Sans', sans-serif;
    line-height: 1.6;
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    .footer {
        padding: 25px 15px;
    }
    
    .footer-text {
        font-size: 11px;
    }
}