/* 1. 基础布局 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 8px;
    background-color: #f6f9fc;
    color: #1a1f36;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin-bottom: 20px;  /* 减小底部间距 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;  /* 增加两侧内边距 */
}

/* 2. 页面标题 */
h1 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1f36;  /* 恢复黑色 */
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}

.subtitle {
    text-align: center;
    color: #697386;
    font-size: 16px;
    margin-bottom: 24px;
}

/* 3. 卡片容器基础样式 */
.system-specs,
.model-predictions {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05),
                0 4px 8px rgba(85, 108, 214, 0.05);
    margin-bottom: 24px;
}

/* 统一卡片标题样式 */
.system-specs h2,
.model-predictions h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1f36;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6ebf5;
}

/* 配置内容区域 */
.specs-content {
    display: flex;
    gap: 24px;
}

/* 自动监测和手动配置区域 */
.detected-specs,
.manual-specs {
    flex: 1;
    background: linear-gradient(to bottom, #f8fafd, #fff);  /* 添加渐变背景 */
    border-radius: 12px;
    padding: 22px;
    border: 1px solid rgba(85, 108, 214, 0.08);
    transition: all 0.2s ease;
}

.detected-specs {
    flex: 2;  /* 占据 2/5 宽度 */
}

.manual-specs {
    flex: 3;  /* 占据 3/5 宽度 */
}

.detected-specs:hover,
.manual-specs:hover {
    box-shadow: 0 4px 12px rgba(85, 108, 214, 0.08);
}

/* 配置区块标题 */
.config-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1f36;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(85, 108, 214, 0.1);
}

/* 自动监测项 */
.spec-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 8px;
}

.spec-row:last-child {
    margin-bottom: 0;
}

/* 配置名称样式 */
.spec-name {
    width: 120px;
    font-size: 14px;
    color: #1a1f36;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 为中文状态设置特殊宽度 */
html[lang="zh-CN"] .spec-name {
    width: 90px;  /* 中文状态下减小宽度 */
}

.spec-value {
    color: #556cd6;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
    min-width: 0;  /* 允许内容收缩 */
}

/* 手动配置选项 */
.spec-item {
    margin-bottom: 16px;
}

.spec-item:last-child {
    margin-bottom: 0;
}

/* 手动配置选项名称 */
.spec-item .spec-name {
    display: inline-block;
    min-width: 160px;  /* 默认最小宽度（英文） */
    margin-right: 12px;
    color: #1a1f36;
    white-space: nowrap;  /* 防止换行 */
}

/* 中文状态下的手动配置名称宽度 */
html[lang="zh-CN"] .spec-item .spec-name {
    min-width: 120px;  /* 中文状态下减小最小宽度 */
}

.spec-item .value {
    display: inline-block;
    color: #556cd6;
    font-weight: 500;
}

/* 6. 选择按钮组 */
.radio-group {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.radio-group:not(.vram-group) {
    grid-template-areas: ". . ram ram ram ram ram ram . .";
}

.radio-group:not(.vram-group) .radio-button {
    grid-column: auto / span 1;
}

.radio-button {
    padding: 8px 0;
    background: white;
    border: 1px solid #e6ebf5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
}

.radio-button span {
    font-size: 13px;
}

.radio-button input {
    display: none;
}

.radio-button:hover {
    border-color: #556cd6;
    background: #f8fafd;
    transform: translateY(-1px);
}

.radio-button input:checked + span {
    color: #556cd6;
    font-weight: 600;
}

.radio-button:has(input:checked) {
    background: #eef2ff;
    border-color: #556cd6;
    box-shadow: 0 2px 4px rgba(85, 108, 214, 0.1);
}

/* 7. 模型卡片 */
.model-card {
    background: #f8fafd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
}

.model-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-right: 140px;
    line-height: 1.4;
}

.model-size {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #697386;
    white-space: nowrap;
}

/* 8. 状态显示 */
.status-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.status {
    padding: 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.status-label {
    color: #697386;
    font-size: 13px;
}

.status strong {
    display: block;
    font-size: 13px;
    color: #8792a2;  /* 使用更浅的灰色 */
    margin-top: 4px;
    font-weight: normal;  /* 改为普通字重，进一步弱化 */
}

/* 成功状态 */
.status.success {
    background: #e6f6f0;
    border-left: 4px solid #2da660;
    position: relative;
    overflow: hidden;
}

.status.success::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(45, 166, 96, 0.08));
    pointer-events: none;
}

.status.success .status-info {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.status.success .status-value {
    color: #027a48;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.status.success .status-value::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23027a48' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.8));
}

.status.success strong {
    color: #8792a2;  /* 使用相同的浅灰色 */
    font-weight: normal;
    position: relative;
    z-index: 1;
}

/* 错误状态 */
.status.error {
    background: #fafafa;
    border-left: 2px solid #ddd;
}

.status.error .status-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status.error .status-value {
    color: #de350b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status.error .status-value::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23de350b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.status.error strong {
    color: #8792a2;  /* 使用相同的浅灰色 */
    font-weight: normal;
    position: relative;
    z-index: 1;
}

/* 9. 补充信息 */
.model-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(85, 108, 214, 0.05);  /* 更淡的分隔线 */
}

.info-item {
    color: #97a3b6;  /* 更浅的灰色 */
}

.info-label {
    font-size: 12px;
    color: #97a3b6;  /* 更浅的灰色 */
    margin-bottom: 4px;
    opacity: 0.8;  /* 降低不透明度 */
}

.info-value {
    font-size: 12px;
    line-height: 1.5;
    color: #97a3b6;  /* 更浅的灰色 */
    opacity: 0.8;  /* 降低不透明度 */
}

.hardware-specs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hardware-label {
    display: none;
}

/* 10. 下载按钮 */
.download-button {
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    background: #556cd6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.download-button:hover {
    background: #4757b0;
}

.download-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* 11. 响应式布局 */
@media (max-width: 768px) {
    /* 基础布局 */
    body {
        padding: 4px;
    }
    
    .container {
        padding: 12px;
    }
    
    /* 标题 */
    h1 {
        font-size: 24px;
        margin: 48px 0 8px;  /* 增加顶部边距，为语言切换按钮留出空间 */
        padding: 0 12px;  /* 添加两侧内边距，避免文字太靠边 */
    }
    
    .subtitle {
        font-size: 14px;
        margin-bottom: 16px;
        padding: 0 16px;  /* 添加两侧内边距 */
    }
    
    /* 配置选择区域 */
    .radio-group,
    .radio-group:not(.vram-group) {
        grid-template-columns: repeat(4, 1fr);
        grid-template-areas: none;
    }

    .radio-group:not(.vram-group) .radio-button {
        grid-column: auto;  /* 重置电脑端的网格列设置 */
    }

    .radio-button {
        padding: 8px 0;
    }

    .radio-button span {
        font-size: 12px;
    }
    
    .spec-title {
        font-size: 14px;
    }
    
    /* 状态显示 */
    .status-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .status {
        padding: 10px;
        flex-direction: row;  /* 确保水平布局 */
        justify-content: space-between;  /* 两端对齐 */
        align-items: center;  /* 垂直居中 */
    }
    
    .status-info {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;  /* 防止压缩 */
    }
    
    .status strong {
        font-size: 11px;
        margin-top: 0;  /* 移除顶部边距 */
        text-align: right;  /* 右对齐 */
        white-space: nowrap;  /* 防止换行 */
        margin-left: 8px;  /* 添加左侧间距 */
    }
    
    .status-label {
        font-size: 12px;
        white-space: nowrap;  /* 防止换行 */
    }
    
    .status-value {
        white-space: nowrap;  /* 防止换行 */
    }
    
    /* 模型卡片 */
    .model-card {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .model-name {
        font-size: 15px;
        padding-right: 0;
        margin-bottom: 12px;
    }
    
    .model-size {
        position: static;
        display: inline-block;
        margin-bottom: 12px;
    }
    
    /* 福利卡片 */
    .bonus-card {
        padding: 16px;
    }
    
    .bonus-card .model-name {
        font-size: 18px;
        margin-bottom: 16px;
        padding-right: 40px;
    }
    
    .bonus-tag {
        font-size: 11px;
        padding: 3px 30px;
        right: -25px;
        top: 10px;
    }
    
    .bonus-note {
        padding: 12px;
        font-size: 13px;
    }
    
    .bonus-note p {
        margin: 6px 0;
    }
    
    .contact-info {
        font-size: 12px;
    }
    
    .bonus-button {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* 弹窗 */
    .modal-content {
        width: 92%;
        margin: 16px;
    }
    
    .modal-header {
        padding: 14px 16px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .code-box {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .code {
        font-size: 14px;
    }
    
    .copy-button {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    /* 展开按钮 */
    .expand-button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* 详细信息 */
    .model-info {
        grid-template-columns: 1fr;
        gap: 8px;  /* 减小间距 */
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(85, 108, 214, 0.05);  /* 更淡的分隔线 */
    }
    
    .info-item {
        padding: 6px 0;  /* 减小内边距 */
        border-bottom: 1px solid rgba(85, 108, 214, 0.05);  /* 更淡的分隔线 */
    }
    
    .info-item:last-child {
        border-bottom: none;
    }

    .info-label {
        font-size: 12px;
        color: #97a3b6;  /* 进一步弱化标签颜色 */
        margin-bottom: 2px;
    }

    .info-value {
        font-size: 13px;
        color: #8792a2;  /* 进一步弱化内容颜色 */
        line-height: 1.4;
    }
    
    /* 优化展开/收起按钮 */
    .expand-button {
        padding: 6px 0;
        margin-top: 6px;
        opacity: 0.8;  /* 降低按钮不透明度 */
    }
    
    .expand-text {
        font-size: 12px;
        color: #97a3b6;  /* 更弱化的按钮文字颜色 */
    }
    
    .hardware-specs {
        gap: 6px;
    }
    
    .hardware-item {
        font-size: 12px;
    }
    
    /* 下载按钮 */
    .download-button {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .spec-item .spec-name {
        min-width: 140px;  /* 移动端稍微减小最小宽度 */
    }
    
    .spec-name {
        width: auto;  /* 移动端自适应宽度 */
        min-width: 100px;  /* 设置最小宽度 */
        margin-right: 8px;  /* 减小右侧间距 */
        font-size: 13px;  /* 稍微减小字号 */
    }
    
    .spec-item .spec-name {
        min-width: 120px;  /* 移动端减小最小宽度 */
        margin-right: 8px;
    }
    
    /* 确保值的显示也不换行 */
    .spec-value,
    .spec-item .value {
        white-space: nowrap;
        font-size: 13px;
    }
    
    /* 调整语言切换按钮位置 */
    .language-switch {
        top: 8px;  /* 调整到更靠上的位置 */
        right: 8px;
        padding: 3px;
    }
    
    .lang-btn {
        min-width: 40px;
        padding: 6px 12px;  /* 稍微减小内边距 */
        font-size: 13px;
    }
    
    .spec-row {
        display: block;  /* 改为块级布局 */
        margin-bottom: 12px;
    }
    
    .spec-name {
        display: block;
        width: auto;
        margin-bottom: 4px;
        font-size: 13px;
    }
    
    .spec-value {
        display: block;
        font-size: 13px;
        padding-left: 0;  /* 移除左侧内边距 */
        word-break: break-all;  /* 允许在任意字符处换行 */
        overflow-wrap: break-word;  /* 允许长单词换行 */
    }
    
    /* GPU 信息特殊处理 */
    .detected-specs .spec-value {
        max-width: 100%;
        white-space: normal;  /* 允许正常换行 */
    }
}

/* 小屏幕适配 */
@media (max-width: 360px) {
    h1 {
        font-size: 20px;
        margin: 44px 0 8px;  /* 稍微减小顶部边距 */
    }
    
    .radio-group,
    .radio-group:not(.vram-group) {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .model-name {
        font-size: 14px;
    }
    
    /* 进一步减小内边距 */
    .lang-btn {
        padding: 5px 10px;  /* 进一步减小内边距 */
    }
}

/* 展开按钮样式 */
.expand-button {
    width: 100%;
    padding: 8px 16px;
    margin: 8px 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    color: #8792a2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.expand-button:hover {
    background: rgba(0, 0, 0, 0.02);
    color: #556cd6;
}

.expand-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.expand-button.expanded .expand-icon {
    transform: rotate(180deg);
}

/* 补充信息折叠样式 */
.model-info.collapsed {
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

/* 底部广告样式 */
.sticky-ad {
    position: relative;  /* 改为相对定位 */
    bottom: auto;
    left: auto;
    right: auto;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-height: 90px;  /* 改为90px以匹配广告高度 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;  /* 添加上边距 */
    padding: 10px 0;   /* 添加内边距 */
    overflow: hidden;  /* 防止广告内容溢出 */
}

/* 修改底部间距 */
body {
    margin-bottom: 20px;  /* 减小底部间距 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    body {
        margin-bottom: 16px;
    }
    
    .sticky-ad {
        transform: scale(0.8);  /* 在移动端稍微缩小广告 */
        transform-origin: center center;
        margin: 0 -50px;  /* 补偿缩放造成的空间 */
    }
}

/* 修改福利卡片样式 */
.bonus-card {
    background: linear-gradient(135deg, #4568dc 0%, #3944bc 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.bonus-tag {
    position: absolute;
    top: 12px;
    right: -32px;  /* 调整位置，确保完整显示 */
    background: #ff4d4f;
    color: white;
    padding: 4px 40px;
    font-size: 12px;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;  /* 防止文字换行 */
}

.bonus-card .model-name {
    color: white;
    padding-right: 0;
    margin: 0 0 24px 0;
    font-size: 18px;
    text-align: center;  /* 居中显示 */
}

.bonus-description {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.bonus-description p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.bonus-description a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
}

.bonus-description a:hover {
    color: white;
    border-bottom-color: white;
}

.bonus-button {
    width: 100%;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.bonus-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.bonus-button svg {
    width: 18px;
    height: 18px;
    margin-right: 4px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .bonus-card {
        padding: 20px;
    }
    
    .bonus-card .model-name {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .highlight-text {
        font-size: 14px;
    }
    
    .benefit-list {
        gap: 12px;
    }
    
    .benefit-text strong {
        font-size: 14px;
    }
    
    .benefit-text small {
        font-size: 12px;
    }
    
    .bonus-note {
        font-size: 13px;
        padding: 12px;
    }
    
    .bonus-button {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* 分享弹窗样式 */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.share-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    position: relative;
    animation: modalShow 0.3s ease-out;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e6ebf5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1a1f36;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    color: #8792a2;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 24px;
}

.invite-code {
    margin-bottom: 0;
}

.invite-code .label {
    display: block;
    font-size: 14px;
    color: #697386;
    margin-bottom: 8px;
}

.code-box {
    background: #f8fafd;
    border: 1px solid #e6ebf5;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.code {
    font-family: monospace;
    font-size: 16px;
    color: #556cd6;
    font-weight: 600;
    letter-spacing: 1px;
}

.copy-button {
    background: white;
    border: 1px solid #e6ebf5;
    border-radius: 6px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #556cd6;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-button:hover {
    background: #f8fafd;
    border-color: #556cd6;
}

.modal-tips,
.qrcode-placeholder {
    display: none;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
}

/* 删除旧的统计数据样式 */
.stats-container {
    display: none;
}

/* 添加实时案例数据卡片样式 */
.stats-card {
    background: linear-gradient(to right, #f8fafd, #fff);  /* 添加渐变背景 */
    border-radius: 12px;
    padding: 14px 24px;
    box-shadow: 0 2px 8px rgba(85, 108, 214, 0.08);
    margin-bottom: 28px;
    border: 1px solid rgba(85, 108, 214, 0.1);
    transition: transform 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(85, 108, 214, 0.12);
}

.realtime-stats {
    text-align: center;
    color: #1a1f36;
    font-size: 15px;
    line-height: 1.4;
}

.realtime-stats .number,
.realtime-stats .date {
    color: #556cd6;
    font-weight: 600;
    font-size: 16px;  /* 统一字号 */
    padding: 0 2px;   /* 统一间距 */
}

/* 修改硬件配置板块样式 */
.system-specs {
    background: white;
    border-radius: 16px;  /* 增大圆角 */
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 28px;
}

.system-specs h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1f36;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6ebf5;
}

/* 配置内容区域 */
.specs-content {
    display: flex;
    gap: 24px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .specs-content {
        flex-direction: column;
    }
    
    .detected-specs,
    .manual-specs {
        width: 100%;
    }
}

/* 实时案例数据卡片样式 */
.realtime-stats {
    text-align: center;
    color: #1a1f36;
    font-size: 15px;
    line-height: 1.4;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .realtime-stats {
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .stats-line {
        display: block;
    }
    
    .realtime-stats .number,
    .realtime-stats .date {
        font-size: 15px;  /* 移动端稍微调小字号 */
    }
}

/* 优化语言切换按钮样式 */
.language-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 2px;
    background: #ffffff;  /* 改为纯白背景 */
    padding: 4px;  /* 增加内边距 */
    border-radius: 10px;  /* 增大圆角 */
    border: 1px solid rgba(85, 108, 214, 0.15);  /* 调整边框颜色 */
    box-shadow: 0 2px 8px rgba(85, 108, 214, 0.08);  /* 添加阴影 */
    z-index: 100;
}

.lang-btn {
    position: relative;
    min-width: 48px;  /* 增加最小宽度 */
    padding: 8px 20px;  /* 增加内边距 */
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #8792a2;  /* 调整默认颜色 */
    font-size: 14px;
    font-weight: 600;  /* 加粗字体 */
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: #556cd6;
    background: rgba(85, 108, 214, 0.06);  /* 调整悬停背景色 */
}

.lang-btn.active {
    background: #556cd6;  /* 激活状态使用主色 */
    color: white;  /* 激活状态文字为白色 */
    box-shadow: 0 2px 6px rgba(85, 108, 214, 0.25);  /* 增加阴影 */
}

/* 移除下划线指示器 */
.lang-btn::after {
    display: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .language-switch {
        top: 8px;  /* 调整到更靠上的位置 */
        right: 8px;
        padding: 3px;
    }
    
    .lang-btn {
        min-width: 40px;
        padding: 6px 12px;  /* 稍微减小内边距 */
        font-size: 13px;
    }
}

/* 推荐配置部分的样式 */
.hardware-value {
    color: #97a3b6;  /* 使用更浅的灰色 */
    font-size: 12px;  /* 更小的字号 */
    line-height: 1.5;
    opacity: 0.8;  /* 降低不透明度 */
}
