/* 基础样式 */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f0f4f8, #e9ecef);
    color: #2d3748;
    transition: all 0.3s ease;
}
header {
    background: linear-gradient(90deg, #3182ce, #2c5282);
    color: white;
    text-align: center;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
header h1 {
    margin: 0 0 1px 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
header p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 300;
}
header img {
    width: 180px;
    height: auto;
}
main {
    max-width: 1100px;
    margin: 20px auto;
    padding: 1px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
/* 公告栏样式 */
.announcement-bar {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    color: #2a4365;
    padding: 14px 0;
    text-align: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #c6e2ff;
    box-shadow: 0 2px 12px rgba(45, 55, 72, 0.06);
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    z-index: 100;
    backdrop-filter: blur(4px);
    background-color: rgba(255, 255, 255, 0.95);
}

.announcement-content {
    display: inline-block;
    white-space: nowrap;
    animation: scrollText 28s linear infinite;
    animation-delay: 0s;
    padding: 0 25px;
    font-weight: 500;
    font-size: 12px;
    position: relative;
    letter-spacing: 0.5px;
}

@keyframes scrollText {
    0% { transform: translateX(10%); }
    100% { transform: translateX(-100%); }
}

.announcement-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-weight: 300;
    color: #adb5bd;
    font-size: 1.6em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.8);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.announcement-close:hover {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

.announcement-icon {
    margin-right: 12px;
    color: #f7b733;
    font-size: 1.2em;
    vertical-align: middle;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.announcement-highlight {
    color: #ff6b6b;
    font-weight: 600;
    margin: 0 3px;
    position: relative;
    display: inline-block;
    transition: transform 0.2s;
}

.announcement-highlight:hover {
    transform: translateY(-1px);
}

.announcement-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    opacity: 0.5;
    transition: all 0.2s;
}

.announcement-highlight:hover::after {
    height: 2px;
    opacity: 1;
}

/* 悬浮按钮样式 */
.contact-float {
    position: fixed; /* 固定定位 */
    right: 20px; /* 距离右侧20px */
    bottom: 150px; /* 距离底部20px */
    z-index: 9999; /* 确保层级最高 */
    transition: transform 0.3s ease; /* 鼠标悬停动画 */
}

/* 圆形图片样式 */
.contact-circle {
    width: 60px; /* 图片宽度 */
    height: 60px; /* 图片高度 */
    border-radius: 50%; /* 圆形边框 */
    border: 5px solid #fff; /* 白色边框 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* 阴影效果 */
    cursor: pointer; /* 鼠标悬停显示手势 */
    position: relative; /* 定位基准 */
}

/* 鼠标悬停时显示联系方式 */
.contact-float:hover .contact-list {
    opacity: 1;
    visibility: visible;
    right: calc(100% + 15px); /* 调整间距 */
}

/* 联系方式列表内的图标和文字样式 */
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-family: '微软雅黑', sans-serif;
    color: #333;
}

.contact-item i {
    font-size: 1.2em; /* 图标大小 */
    color: #4A90E2; /* 图标颜色 */
}

/* 响应式调整（手机端） */
@media (max-width: 768px) {
    .contact-float {
        right: 10px;
        bottom: 100px;
    }
    .contact-circle {
        width: 40px;
        height: 40px;
    }
    .contact-list {
        min-width: 150px;
        padding: 10px 15px;
    }
}
.contact-label {
    position: absolute;
    left: 50%;
    bottom: -24px;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600; /* 加粗字体 */
    font-family: 'PingFang SC', '微软雅黑', sans-serif; /* 更现代的中文字体 */
    color: #fff; /* 白色文字 */
    padding: 4px 12px;
    white-space: nowrap;
    border-radius: 20px; /* 大圆角设计 */
    background: linear-gradient(135deg, #4A90E2, #66CCFF); /* 渐变背景 */
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3); /* 立体阴影 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* 文字阴影 */
    opacity: 0.9;
    transition: all 0.3s ease; /* 过渡动画 */
}

/* 鼠标悬停/聚焦效果 */
.contact-float:hover .contact-label,
.contact-label:focus {
    opacity: 1;
    box-shadow: 0 6px 18px rgba(74, 144, 226, 0.4); /* 增强阴影 */
    transform: translateX(-50%) scale(1.05); /* 轻微放大 */
}

/* 横幅广告样式 */
.banner-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}
.banner-ad {
    width: 100%;
    max-width: 600px;
    text-align: center;
}
.banner-ad img {
    max-height: 90px;
    width: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.ad-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.ad-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(45, 55, 72, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}
.ad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(45, 55, 72, 0.15);
    border-color: #cbd5e0;
}
.ad-info {
    padding: 20px;
}

/* H3标题样式开始*/

/* 标题容器样式：呼吸感与对齐 */
.ad-title-contact {
    display: flex;
    flex-direction: column;
    gap: 20px; /* 标题与按钮间距加大 */
    padding: 0;
    align-items: center;
    text-align: center;
}

/* 标题基础样式：现代字体与柔和粗细 */
.ad-title {
    margin: 0;
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 18px;
    font-weight: 700; /* 半粗体 */
    line-height: 1.6;
    color: #1a202c; /* 深灰，降低对比度 */
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* 分词间距 */
    justify-content: center;
    align-items: center;
}

/* 标题高亮部分：渐变底色+柔和阴影 */
.title-highlight {
    color: #2d3748;
    background: linear-gradient(90deg, rgba(49, 130, 206, 0.15), transparent);
    padding: 6px 12px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 3px 8px rgba(49, 130, 206, 0.1);
    font-weight: 800;
    letter-spacing: 0.5px;
}
/* 标题强调部分：斜体+渐变文字 */
.title-emphasis {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    font-style: normal;
    transform: none;
    display: inline-block;
    padding: 6px 14px;
    margin-left: 8px;
    position: relative;
    background: linear-gradient(135deg, #feb2b2, #fc8181);
    border-radius: 20px;
    box-shadow: 0 3px 8px rgba(229, 62, 62, 0.2);
    text-shadow: none;
}

/* 按钮与标题联动（可选） */
.ad-contact-button:hover + .ad-title .title-highlight {
    transform: translateX(2px);
    transition: transform 0.2s ease;
}
/* H3标题样式结束 */
.ad-contact {
    font-size: 14px;
    color: #555;
    margin: 0;
}
.ad-extra-images {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 10px 0;
    gap: 10px;
    border-top: 1px solid #f0f4f8;
}
.ad-extra-images img {
    flex: 1;
    width: 0;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(45, 55, 72, 0.12);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.ad-extra-images img:hover {
    transform: scale(1.05);
    border-color: #3182ce;
    box-shadow: 0 6px 16px rgba(45, 55, 72, 0.2);
}
footer {
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    margin-top: 50px;
    padding: 40px 20px 20px;
    color: #718096;
    font-size: 14px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3182ce, #2b6cb0);
    border-radius: 2px;
}

.footer-section p {
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #718096;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3182ce;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #3182ce;
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #a0aec0;
    font-size: 13px;
    background: #f7fafc;
}

footer a {
    color: #3182ce;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: #2b6cb0;
}

/* 合作页面样式 */
.cooperation-container {
    max-width: 800px;
    margin: 0 auto;
}

.cooperation-title {
    text-align: center;
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3182ce, #2c5282);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-button.tg-button {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(45, 55, 72, 0.3);
}

.contact-button.tg-button:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
}

.cooperation-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.info-section, .requirements-section {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.info-title {
    color: #2d3748;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
}

.info-list li:last-child {
    border-bottom: none;
}

.requirements-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.requirements-list li {
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #fff5f5;
    border-left: 4px solid #fc8181;
    border-radius: 4px;
    color: #c53030;
    font-size: 14px;
}

.cooperation-image {
    text-align: center;
    margin-bottom: 30px;
}

.cooperation-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(45, 55, 72, 0.12);
    transition: all 0.3s ease;
}

.cooperation-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(45, 55, 72, 0.16);
}

.action-buttons {
    text-align: center;
    margin-top: 30px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3182ce, #2c5282);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.2);
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(45, 55, 72, 0.3);
    color: white;
}

/* 桌面端样式 */
@media (min-width: 1024px) {
    .ad-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .ad-item {
        flex-direction: row; /* 横向排列 */
        align-items: center;
        gap: 20px;
        padding: 15px;
    }
    .ad-info {
        flex: 1; /* 信息部分自适应宽度 */
        display: flex;
        flex-direction: column;
        justify-content: center; /* 垂直居中标题和联系方式 */
        align-items: center; /* 水平居中标题和联系方式 */
        text-align: center; /* 文本居中 */
    }
    .ad-title-contact {
        font-size: 14px; /* 提高字体大小 */
    }
    .ad-title {
        font-size: 13px; /* 标题字体更大 */
        color: #0056b3; /* 深蓝色 */
        margin: 5px 0;
    }
    .ad-contact {
        font-size: 16px; /* 联系方式字体更大 */
        color: #333;
        margin: 5px 0;
    }
    .ad-extra-images img {
        width: 100px; /* 图片宽度增大 */
        height: 80px; /* 图片高度增大 */
        border-radius: 10px; /* 图片圆角 */
    }
    main {
        padding: 5px;
    }
}
.ad-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* 图标与文字间距 */
    padding: 4px 10px;
    background: linear-gradient(135deg, #3182ce, #2c5282); /* 统一蓝色渐变 */
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 180px; /* 固定最小宽度，避免文字换行 */
}

/* 悬停效果：上浮 + 阴影加深 */
.ad-contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(45, 55, 72, 0.3);
    background: linear-gradient(135deg, #2b6cb0, #2a4365);
}

/* 点击效果：下沉 */
.ad-contact-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 图标样式：固定大小 + 微动效 */
.button-icon {
    font-size: 18px;
    transition: transform 0.2s ease;
}

/* 悬停时图标轻微旋转 */
.ad-contact-button:hover .button-icon {
    transform: rotate(15deg);
}

/* 聚焦状态（键盘导航时） */
.ad-contact-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* 可选：添加点击波纹动画 */
.ad-contact-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1, 1);
    transform-origin: 50% 50%;
    transition: all 0.5s ease;
}

.ad-contact-button:active::before {
    width: 200px;
    height: 200px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(15, 15);
}
    /* 波纹动画 */
    @keyframes ripple {
        0% {
            transform: scale(0, 0) translate(-50%, -50%);
            opacity: 0.8;
        }
        20% {
            opacity: 0.6;
        }
        100% {
            transform: scale(20, 20) translate(-50%, -50%);
            opacity: 0;
        }
    }
 
    /* 图标增强（使用SVG替代emoji更专业） */
    .ad-contact-button .icon {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }
 
    /* 轮廓版本（可选） */
    .ad-contact-button.outline {
        background: transparent;
        border: 1px solid #4a6bff;
        color: #4a6bff;
    }
    .ad-contact-button.outline:hover {
        background: rgba(74, 107, 255, 0.05);
    }
    .ad-contact-button.outline::after {
        background: rgba(74, 107, 255, 0.3);
    }
@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}
 
.ad-contact-button:hover {
    background-color: #0056b3; /* 鼠标悬停时背景颜色变深，增加交互感 */
}


.ad-hidden-content {
    display: none; /* 默认隐藏 */
    margin-top: 15px;
    padding: 20px;
    border-radius: 12px; /* 圆角处理 */
    background: linear-gradient(145deg, #ffffff, #f0f0f3); /* 轻微渐变背景 */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05); /* 高级阴影 */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease; /* 动画过渡效果 */
    font-family:'Heiti SC', '黑体', sans-serif; /* 使用黑体 */
    font-size: 13px; /* 设置字体大小 */
    color: #2c3e50; /* 深蓝灰色，显得高级 */
    line-height: 1.2; /* 增加行高，提升可读性 */
}
 
.ad-hidden-content.visible {
    display: block;
    opacity: 1;
    transform: translateY(0); /* 平滑移入效果 */
}