/* --- 全局基础配置 & 变量 --- */
:root {
    --line-green: #06c755;
    --line-green-hover: #05b34c;
    --text-main: #111111;
    --text-sub: #666666;
    --bg-gray: #f9f9f9;
    --white: #ffffff;
    --max-width: 1100px;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif; 
    color: var(--text-main); 
    line-height: 1.6; 
}

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

/* --- 头部导航栏 (Header) --- */
header {
    position: fixed; 
    top: 0; 
    width: 100%; 
    height: 80px;
    background: #ffffff;
    z-index: 1000; 
    border-bottom: 1px solid #eee;
}

.header-inner { 
    max-width: 1400px; 
    margin: 0 auto; 
    height: 100%;
    display: grid; 
    grid-template-columns: 1fr 2fr 1fr; 
    align-items: center; 
    padding: 0 40px;
}

/* 导航链接 */
.nav-links { 
    display: flex; 
    justify-content: center; 
    gap: 60px !important; 
    font-weight: 700; 
}

.nav-links a { 
    position: relative; 
    padding: 10px 0;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;      
    height: 4px;   
    bottom: 0;
    left: 0;
    background-color: var(--line-green);
    transition: width 0.3s ease; 
}

.nav-links a:hover { 
    color: var(--line-green) !important; 
}

.nav-links a:hover::after {
    width: 100%; 
}

/* LOGO 样式 */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 15px;    
    width: auto;     
    display: block;
}

/* 语言下拉菜单 */
.lang-selector { 
    position: relative; 
    justify-self: end; 
    cursor: pointer; 
    font-weight: 700; 
    padding: 10px; 
}

.lang-dropdown {
    position: absolute; 
    top: 100%; 
    right: 0; 
    background: white;
    border: 1px solid #eee; 
    border-radius: 8px; 
    width: 80px;
    display: none; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.lang-selector:hover .lang-dropdown { 
    display: block; 
}

.lang-dropdown a { 
    display: block; 
    padding: 10px; 
    text-align: center; 
    font-size: 14px; 
    color: var(--text-main); 
}

.lang-dropdown a:hover { 
    background: var(--bg-gray); 
    color: var(--line-green) !important; 
}


/* --- 页脚区域 (Footer) --- */
.footer-custom { 
    background: #fdfdfd; 
    border-top: 1px solid #eee; 
    padding: 60px 0 40px; 
}

.footer-inner { 
    max-width: var(--max-width); 
    margin: 0 auto; 
    padding: 0 20px; 
    position: relative; 
}

.footer-top { 
    display: flex; 
    align-items: center; 
    padding-bottom: 40px; 
    border-bottom: 1px solid #eee; 
    margin-bottom: 40px; 
}

.f-logo { 
    background: var(--line-green); 
    color: white; 
    padding: 8px 12px; 
    border-radius: 8px; 
    font-weight: 900; 
    margin-right: 20px; 
}

.f-links { 
    display: flex; 
    gap: 15px; 
    font-size: 14px; 
    font-weight: 600; 
    color: #333; 
}

.f-links span::after { 
    content: "|"; 
    margin-left: 15px; 
    color: #ddd; 
}

.qr-area { 
    position: absolute; 
    right: 20px; 
    top: -10px; 
    text-align: center; 
}

.qr-code { 
    width: 90px; 
    height: 90px; 
    border: 1px solid #eee; 
    padding: 5px; 
    background: white; 
}

.footer-bottom { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 13px; 
    color: #888; 
}

.legal-links a { 
    margin-left: 20px; 
}

.social-icons { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
}

.social-icons img { 
    width: 24px; 
    opacity: 0.6; 
}
/* 1. 容器设为相对定位，方便弹出层绝对定位 */
.social-icons {
    position: relative; /* 确保子项可以相对于它定位 */
}

.family-dropup {
    position: relative;
    display: inline-block;
}

/* 2. 隐藏默认的 details 黑色小三角 */
.family-dropup summary {
    list-style: none;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    outline: none;
    user-select: none;
    padding: 5px 0;
}
.family-dropup summary::-webkit-details-marker {
    display: none; /* 兼容旧版 Chrome/Safari */
}

/* 3. 弹出菜单核心样式：通过 bottom: 100% 实现向上弹出 */
.family-dropup .dropup-content {
    position: absolute;
    bottom: 100%;       /* 核心：在文字的上方展现 */
    left: 50%;
    transform: translateX(-50%); /* 居中对齐 */
    margin-bottom: 10px; /* 与下方文字保持一点间距 */
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1); /* 阴影朝上 */
    width: 130px;        /* 弹出菜单宽度 */
    z-index: 999;        /* 确保在最上层 */
    padding: 6px 0;
}

/* 小箭头效果（可选，指向下方文字） */
.family-dropup .dropup-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

/* 4. 弹出菜单内的链接样式 */
.family-dropup .dropup-content a {
    display: block;
    padding: 10px 15px;
    font-size: 13px;
    color: #444;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f9f9f9;
}

.family-dropup .dropup-content a:last-child {
    border-bottom: none; /* 最后一项去掉下划线 */
}

/* 5. 悬停高亮：变成 LINE 的经典绿色 */
.family-dropup .dropup-content a:hover {
    background-color: #f4f5f6;
    color: var(--line-green) !important;
}

/* --- 头部与底部专用响应式断点 --- */
@media (max-width: 900px) {
    .header-inner { 
        grid-template-columns: 1fr 1fr; 
    }
    .nav-links { 
        display: none; /* 移动端隐藏中间导航 */
    }
}

@media (max-width: 600px) {
    .logo-img {
        height: 32px;
    }
}