/* --- 基础重置 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-title {
    text-align: center;
    padding: 25px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.main-title h1 { font-size: 1.25rem; color: #1a1a1a; }
.main-title p { font-size: 0.85rem; color: #888; margin-top: 8px; }

/* 顶部导航 */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-left .site-name { font-size: 1.1rem; font-weight: bold; margin-bottom: 4px; }
.nav-left .site-desc { font-size: 0.75rem; opacity: 0.9; }
.nav-right {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    white-space: nowrap; /* 防止文字换行 */
}
.nav-right .contact-text { font-size: 0.85rem; font-weight: 500; }

/* --- 2行3列菜单链接样式 --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列 */
    grid-template-rows: repeat(2, auto); /* 2行 */
    gap: 12px;
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.menu-item {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.menu-item a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    width: 100%;
    height: 100%;
}
.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

/* 下载区域标题 */
.spacer-line {
    height: 50px;
    background-color: #FF66FF;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 下载区域标题2 */
.fraud-title {
    background-color: #ffd9fe;
    color: #333;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    display: block;
    border-bottom: 1px solid #d4b875;
}

/* 下载表格 */
.download-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.download-table th, .download-table td { border: 1px solid #e1e1e1; padding: 12px 15px; text-align: left; }
.download-table th { background-color: #e6f4ff; font-weight: 600; color: #1677ff; }
.download-table tr:nth-child(even) { background-color: #f2f2f2; }
.download-table a { color: #1677ff; text-decoration: none; word-break: break-all; }
.download-table a:hover { text-decoration: underline; }

/* --- 手风琴样式 --- */
.accordion-item { border-bottom: 1px solid #f0f0f0; }
.accordion-item:last-child { border-bottom: none; }

.accordion-header {
    width: 100%;
    padding: 18px 20px;
    background: #fff;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    outline: none;
}

.accordion-header:hover { background-color: #fafafa; }
.accordion-header.active { background-color: #e6f4ff; color: #1677ff; }

.icon-arrow {
    width: 10px; height: 10px;
    border-right: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    transform: rotate(45deg);
    transition: transform 0.3s, border-color 0.3s;
}
.accordion-header.active .icon-arrow {
    transform: rotate(-135deg);
    border-color: #1677ff;
}

/* 手风琴展开区域 - 修复核心 */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    /* 使用 cubic-bezier 让动画更自然 */
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
    background-color: #B88AB8; 
}

/* 打开状态：设置一个足够大的高度，确保所有内容都能显示 */
/* 10000px 足以容纳绝大多数单页内容，且不会造成性能问题 */
.accordion-content.open {
    max-height: 10000px; 
    transition: max-height 0.5s ease-in-out;
}

.content-inner { padding: 20px; }

/* 表格布局 */
.img-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 20px;
}
.img-table td {
    padding: 0;
    text-align: center;
}

/* 小标题样式 */
.img-caption {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    letter-spacing: 1px;
}
.img-caption1 {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    letter-spacing: 1px;
}

/* 图片样式 */
.vertical-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 4px solid #fff; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background-color: #eee;
}
.vertical-img1 {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 4px solid #fff; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background-color: #eee;
}

/* --- 修改后的图片描述样式 --- */
.img-description {
   background-color: #fbf1d6; /* 已修改为您指定的颜色 */
   color: #333; /* 文字颜色调整为深色以提高可读性 */
   padding: 12px 15px;
   border-radius: 0 0 8px 8px;
   margin-top: -4px;
   text-align: left;
   font-size: 0.9rem;
   line-height: 1.5;
   border: 1px solid #e0d6bd; /* 边框颜色同步调整 */
   border-top: none;
}

/* --- 底部备案号样式 --- */
.footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    /* 使用与顶部导航相同的渐变背景 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
    font-weight: 500;
}
.footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}
.footer p {
    margin: 5px 0;
}
.footer .disclaimer {
    font-size: 0.75rem;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 480px) {
    body { padding: 0; }
    .container { border-radius: 0; box-shadow: none; }
    .content-inner { padding: 15px; }
    .img-table { border-spacing: 0 15px; }
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .nav-right {
        align-self: stretch;
        justify-content: center;
    }

/* 移动端适配顶部导航栏 */
@media (max-width: 480px) {
    body { padding: 0; }
    .container { border-radius: 0; box-shadow: none; }
    
    /* 修改导航栏为横向排列，防止换行 */
    .top-nav { 
        flex-direction: row; 
        align-items: center;
        gap: 10px;
        padding: 12px 15px;
        flex-wrap: nowrap; /* 强制不换行 */
    }
    
    .nav-left {
        flex: 1; /* 左侧占据剩余空间 */
        min-width: 0; /* 允许内容收缩 */
    }
    
    .nav-left .site-name { 
        font-size: 1rem; 
        margin-bottom: 2px; 
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-left .site-desc { 
        font-size: 0.7rem; 
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-right { 
        flex-shrink: 0; /* 右侧不收缩 */
        padding: 6px 12px;
        font-size: 0.75rem; /* 稍微减小字体以适应小屏幕 */
        margin-left: 10px;
    }
    
    .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 15px; }
    .menu-item { padding: 10px 5px; font-size: 0.8rem; }
    .spacer-line { height: 40px; font-size: 0.9rem; padding: 0 15px; }
    .download-table th, .download-table td { padding: 8px 10px; font-size: 0.9rem; }
        
    /* 移动端菜单适配 */
    .menu-grid {
        grid-template-columns: repeat(3, 1fr); /* 小屏幕改为3列 */
        gap: 10px;
        padding: 15px;
    }
    .menu-item {
        padding: 10px 5px;
        font-size: 0.8rem;
    }
}
.vertical-img2 {            
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 4px solid #fff; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background-color: #eee;
}

a, a:link, a:visited, a:hover, a:active {
  text-decoration: none;
}
