/* 引入自定义字体 */
@font-face {
    font-family: 'MiSans';
    src: url('MiSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 主功能板块样式 - 包含公告和个人中心 */
.main-feature-container {
    display: flex;
    gap: 20px;
    margin: 30px 20px;
    background-color: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.announcement-section {
    flex: 3; /* 左侧占据3/4宽度 - 公告区域 */
    padding: 10px;
}

.right-column {
    flex: 1; /* 右侧占据1/4宽度 - 包含个人中心和帮助中心 */
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 20px;
    border-left: 1px solid #eee; /* 公告区域与右侧区域的分界线 */
}

.profile-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border: 1px solid #ddd; /* 轻微边框，让头像更明显 */
}

.avatar-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    font-size: 24px;
    overflow: hidden;
}

.user-info {
    flex: 1;
}

.username {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* 会员状态样式 - 已更名为content-display */
.content-display {
    font-size: 14px;
    color: #666;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #ff6b6b;
    color: #000;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.login-button:hover {
    background-color: #ff5252;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-section {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 12px;
    margin-top: 0;
    padding-top: 15px;
}

/* 功能卡片容器样式 */
.feature-cards-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

/* 功能卡片样式 */
.feature-card {
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 卡片头部样式 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* 卡片标题样式 */
.card-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* 卡片标签样式 */
.card-tag {
    background-color: #4a6cf7;
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* 卡片内容样式 */
.card-content {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* 不同卡片的标签颜色 */
.feature-card:nth-child(1) .card-tag {
    background-color: #4a6cf7; /* 开始对话 - 蓝色 */
}

.feature-card:nth-child(2) .card-tag {
    background-color: #ff9800; /* 升级会员 - 橙色 */
}

.feature-card:nth-child(3) .card-tag {
    background-color: #4caf50; /* 使用教程 - 绿色 */
}

.announcement-content {
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 12px;
    min-height: 150px;
    line-height: 1.6;
}

.profile-info,
.help-info {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-button,
.help-button {
    padding: 10px 15px;
    background-color: white;
    border: 1px solid #000;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.profile-button:hover,
.help-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-feature-container {
        flex-direction: column;
    }

    /* 在手机上隐藏公告板块 */
    .announcement-section {
        display: none;
    }

    .right-column {
        flex-direction: column;
        gap: 15px;
        border-left: none; /* 移除分隔线 */
        padding-left: 0; /* 移除左侧内边距 */
    }
    
    .feature-cards-container {
        flex-direction: column;
    }
}

/* 大屏幕响应式调整 */
@media (min-width: 1024px) {
    .feature-cards-container {
        flex-direction: column;
        gap: 20px;
    }
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'MiSans', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.navbar {
    background-color: #333;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px; /* 增大圆角效果 */
    margin: 20px auto;
    max-width: 400px;
    width: 100%;
    flex-wrap: nowrap; /* 确保所有内容单行排列 */
    white-space: nowrap; /* 防止文字换行 */
}

/* 窄屏时隐藏数字玩家logo */
@media (max-width: 500px) {
    .logo {
        display: none;
    }
    .navbar {
        max-width: 250px;
        justify-content: center; /* 居中显示导航链接 */
    }
    .nav-links {
        gap: 30px; /* 增大间距 */
    }
}

.logo {
    font-size: 18px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 - 取消加粗并应用自定义字体 */
/* 手机屏幕 (≤767px) */
@media (max-width: 767px) {
    h1 {
        text-align: center;
        margin-bottom: 15px;
        font-size: 32px;
        color: #333;
        font-weight: normal; /* 取消加粗效果 */
        font-family: 'MiSans', sans-serif; /* 应用自定义字体 */
    }
}

/* 平板及以上屏幕 (≥768px) */
@media (min-width: 768px) {
    h1 {
        text-align: center;
        margin-bottom: 15px;
        font-size: 48px;
        color: #333;
        font-weight: normal; /* 取消加粗效果 */
        font-family: 'MiSans', sans-serif; /* 应用自定义字体 */
    }
}

/* 桌面屏幕 (≥1024px) */
@media (min-width: 1024px) {
    h1 {
        font-size: 56px;
    }
}

h1 span {
    color: #00aaff;
}

/* 描述文字样式 */
/* 手机屏幕 (≤767px) */
@media (max-width: 767px) {
    .description {
        text-align: center;
        margin-bottom: 30px;
        color: #666;
        font-size: 16px;
    }
}

/* 平板及以上屏幕 (≥768px) */
@media (min-width: 768px) {
    .description {
        text-align: center;
        margin: 0 auto 30px; /* 居中显示并设置底部边距 */
        color: #666;
        font-size: 19px; /* 电脑上增大到当前字体的1.2倍左右 */
        max-width: 800px; /* 限制最大宽度 */
        padding: 0 20px; /* 两侧留白 */
    }
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 0 20px;
}

.account-card {
    background-color: white;
    border-radius: 16px; /* 增大圆角使卡片更圆润 */
    padding: 15px; /* 减小卡片竖直尺寸 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.account-card:hover {
    transform: translateY(-5px);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px; /* 减小间距 */
}

.account-id {
    font-weight: bold;
    font-size: 20px; /* 放大20%左右 (原值16px) */
}

.status-icon {
    color: #4CAF50;
    font-size: 18px;
}

.usage-info {
    margin-bottom: 10px; /* 减小间距 */
}

.usage-text {
    display: block;
    margin-bottom: 5px;
    font-size: 16px; /* 放大20%左右 (原值14px) */
    color: #666;
}

.progress-bar {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 4px;
}

.link-button {
    width: auto; /* 常规按钮大小，不铺满卡片 */
    padding: 6px 12px; /* 减小按钮尺寸 */
    background-color: white; /* 与卡片颜色相同 */
    border: 1px solid #000; /* 边框改为黑色 */
    border-radius: 12px; /* 增大圆角使按钮更圆润 */
    cursor: pointer;
    font-size: 14px;
    display: block; /* 确保可以设置对齐方式 */
    margin-left: 0; /* 靠左显示 */
    margin-right: auto; /* 确保右边有空间 */
    transition: background-color 0.2s;
}

.link-button:hover {
    background-color: #e0e0e0;
}

@media (max-width: 768px) {
    .accounts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* 弹窗样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1000; /* 确保在最上层 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    overflow: auto;
}

/* 电脑端弹窗样式 - 居中显示 */
@media (min-width: 768px) {
    .modal-content {
        background-color: white;
        margin: 15% auto;
        padding: 20px;
        border-radius: 16px;
        max-width: 500px;
        width: 80%;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        animation: modalFadeIn 0.3s;
    }
    
    .modal-fade-out {
        animation: modalFadeOut 0.3s forwards;
    }
}

/* 手机端弹窗样式 - 底部弹出 */
@media (max-width: 767px) {
    .modal-content {
        background-color: white;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 20px;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
        animation: slideUp 0.3s;
    }
    
    .slide-down {
        animation: slideDown 0.3s forwards;
    }
}

/* 弹窗标题样式 */
.modal-content h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

/* 弹窗内容样式 */
.modal-body {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 关闭按钮样式 */
.close-modal {
    display: block;
    margin: 0 auto;
    padding: 6px 12px; /* 与link-button一致 */
    background-color: white; /* 与link-button一致 */
    border: 1px solid #000; /* 与link-button一致 */
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px; /* 与link-button一致 */
    transition: background-color 0.2s;
}

.close-modal:hover {
    background-color: #e0e0e0;
}

/* 帮助中心按钮样式 */
.help-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.help-button {
    padding: 12px 20px;
    background-color: white;
    border: 1px solid #000;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    transition: all 0.2s;
}

.help-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 弹窗动画 */
@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

@keyframes modalFadeOut {
    from {opacity: 1; transform: translateY(0);}
    to {opacity: 0; transform: translateY(-50px);}
}

@keyframes slideUp {
    from {transform: translateY(100%);}
    to {transform: translateY(0);}
}

@keyframes slideDown {
    from {transform: translateY(0);}
    to {transform: translateY(100%);}
}

@media (max-width: 480px) {
    .accounts-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        gap: 10px;
    }
}