* {
    transition: all 0.3s ease;
}
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: #f5f5f5;
}
img {
    vertical-align: middle;
}
a:hover {
    filter: brightness(85%);
}

h1 {
    margin-top: 0;
    color: #333;
}
h2 {
    margin: 0 0 15px;
    color: #333;
}
h3 {
    margin: 0 0 18px;
    color: #666;
}
p {
    margin: 15px;
    text-align:center;
}
.warning {
    color: red;
    font-weight: bold;
}

/* 网站标题 */
.header-title {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 8px 0;
    margin-bottom: 10px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.header-title h1 {
    margin: 0;
    font-size: 2.5em;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.header-title p {
    margin: 0;
    font-size: 1.2em;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.header-title .qq-chat {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 0.9em;
    color: #333;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, transform 0.2s;
}
.header-title .qq-chat:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

/* 底部额外信息 */
#site-footer {
    margin-top: auto;
    font-size: 13px;
    text-align: center;
    color: #555;
    background: inherit;
    padding: 10px 0 8px;
}
#site-footer a {
    color: inherit;
    text-decoration: none;
}
#site-footer img {
    width: 15px;
    height: 15px;
    transform: translateY(-1px);
}

/* 主功能样式 */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
}
.main-sections {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}
.section {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
/* 主要按钮样式 */
.main-btn {
    display: inline-block;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: bold;
    margin: 10px 0;
    transition: all 0.3s ease;
    color: white;
}
.main-btn:hover {
    transform: scale(1.05);
}
.main-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.yagame {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 30px;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(270deg, #01B0F1, #0078D7, #00eaff, #01B0F1);
    background-size: 400% 400%;
    animation: gradientMove 6s ease infinite;
    box-shadow: 0 0 12px rgba(0, 191, 255, 0.8), 0 0 24px rgba(0, 191, 255, 0.6);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: auto;
}
.yagame:hover {
    box-shadow: 0 0 20px #00eaff, 0 0 20px #01B0F1, 0 0 20px #0078D7;
}
.tiedan {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 30px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    background: linear-gradient(270deg, #FFD700, #FFA500, #FFF176, #FFD700);
    background-size: 400% 400%;
    animation: gradientMove 6s ease infinite;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.8), 0 0 24px rgba(255, 165, 0, 0.6);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: auto;
}
.tiedan:hover {
    box-shadow: 0 0 20px #FFD700, 0 0 20px #FFA500, 0 0 20px #FFF176;
}
@keyframes gradientMove {
    0% { background-position: 0 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* 更多功能&相关网站样式 */
.other-features {
    width: 100%;
    margin-top: 10px;
    text-align: center;
}
.other-features h2 {
    margin: 10px 0;
}
.feature-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.github-section {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}
.by-author {
    position: absolute;
    right: 6px;
    bottom: 2px;
    font-size: 9px;
    opacity: 0.8;
    pointer-events: none;
}
.btn-icon {
    width: 38px;
    height: 38px;
}

/* 整体容器 */
.menu-group {
    position: relative;
    display: inline-block;
}
/* 下拉浮层 */
.menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    gap: 10px;

    background: white;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);

    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: all 0.25s ease;
}
/* 点击展开 */
.menu-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
/* 悬停展开 */
@media (hover:hover) {
    .menu-group:hover .menu-panel {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-title .qq-chat {
        right: 3px;
        bottom: 3px;
        font-size: 0.7em;
        padding: 2px 4px;
        border-radius: 4px;
    }
    .container {
        padding: 10px 20px;
    }
    .main-sections {
        flex-direction: column;
    }
    .section {
        margin-bottom: 0;
        padding: 10px;
        flex-direction: row;
        justify-content: center;
    }
    .feature-buttons {
        flex-direction: column;
        align-items: center;
    }
}
