.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ========== 按钮通用样式（暖调替换） ========== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, #e69a88, #e87a6f); /* 暖调渐变替换紫色 */
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #e87a6f, #f0b888); /* 暖调渐变 */
    box-shadow: 0 0 15px rgba(230, 154, 136, 0.6); /* 暖调发光 */
}

.btn-secondary {
    background: rgba(240, 232, 216, 0.6); /* 奶油木色半透 */
    color: #584830; /* 深木纹文字 */
    border: 1px solid rgba(230, 154, 136, 0.4); /* 浅杏色边框 */
}

.btn-secondary:hover {
    background: rgba(240, 232, 216, 0.8); /* 奶油木色加深 */
    border-color: #e87a6f; /* 珊瑚红边框 */
}

.btn-success {
    background: linear-gradient(90deg, #e87a6f, #f0b888); /* 暖调渐变 */
    color: #fff;
}

.btn-success:hover {
    background: linear-gradient(90deg, #f0b888, #e69a88); /* 暖调渐变 */
    box-shadow: 0 0 15px rgba(240, 184, 136, 0.6); /* 暖调发光 */
}

/* ========== 主要布局样式（暖调替换） ========== */
.main-layout {
    width: 1200px;
    margin: 0 auto;
    padding: 25px 15px;
    position: relative;
    z-index: 2;
}

.content-card {
    background: #f0e8d8; /* 奶油木色背景替换黑色 */
    border: 1px solid rgba(230, 154, 136, 0.4); /* 浅杏色边框 */
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(168, 136, 96, 0.15); /* 暖调轻阴影 */
    position: relative;
    width: 100%;
}

.content-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e69a88, #e87a6f, #f0b888); /* 暖调渐变 */
    border-radius: 8px 8px 0 0;
}

.content-card a {
    color: #e87a6f; /* 珊瑚红链接 */
}

.content-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(230, 154, 136, 0.3); /* 浅杏色分隔线 */
}

.content-title {
    color: #e87a6f; /* 珊瑚红标题 */
    font-size: 28px;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(230, 154, 136, 0.6); /* 暖调发光 */
}

.content-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 14px;
    color: #7a6953; /* 浅木纹文字 */
    flex-wrap: wrap; /* 移动端适配 */
}

.content-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.content-meta span::before {
    color: #e69a88; /* 浅杏色图标 */
    font-size: 14px;
}

.content-type::before { content: "🗺️"; }
.content-update::before { content: "📅"; }
.content-author::before { content: "✍️"; }

.content-body {
    font-size: 16px;
    color: #584830; /* 深木纹文字 */
    line-height: 1.8; /* 提升可读性 */
}

.content-section {
    margin-bottom: 30px;
}

.section-title {
    color: #e87a6f; /* 珊瑚红小标题 */
    font-size: 22px;
    margin: 25px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: "★";
    color: #e69a88; /* 浅杏色星星 */
    font-size: 18px;
}

.content-body p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.content-body ul {
    margin: 15px 0 15px 30px;
    list-style: disc;
}

.content-body li {
    margin-bottom: 8px;
}

.content-body strong {
    color: #e87a6f; /* 珊瑚红强调 */
    text-shadow: 0 0 5px rgba(230, 154, 136, 0.4); /* 暖调发光 */
}

/* ========== 下一篇/相关推荐模块（暖调替换） ========== */
.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(230, 154, 136, 0.3); /* 浅杏色分隔线 */
}

.related-title {
    color: #e87a6f; /* 珊瑚红标题 */
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-title::before {
    content: "🔗";
    font-size: 18px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.related-item {
    background: rgba(248, 245, 239, 0.8); /* 浅米色半透 */
    border: 1px solid rgba(230, 154, 136, 0.2); /* 浅杏色边框 */
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.related-item:hover {
    box-shadow: 0 6px 20px rgba(168, 136, 96, 0.2); /* 暖调阴影 */
    transform: translateY(-3px);
    border-color: rgba(230, 154, 136, 0.6); /* 浅杏色边框加深 */
}

.related-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e69a88, #e87a6f, #f0b888); /* 暖调渐变 */
    border-radius: 8px 8px 0 0;
}

.related-item a {
    text-decoration: none;
    color: #e87a6f; /* 珊瑚红链接 */
}

.related-item-title {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-item-desc {
    font-size: 14px;
    color: #7a6953; /* 浅木纹文字 */
    line-height: 1.6;
}

/* ========== 算档器专属样式（暖调替换） ========== */
.calculator-container {
    width: 100%;
    margin: 0 auto;
}

.calculator-header {
    text-align: center;
    margin-bottom: 30px;
}

.calculator-header h1 {
    color: #e87a6f; /* 珊瑚红标题 */
    font-size: 28px;
    text-shadow: 0 0 10px rgba(230, 154, 136, 0.6); /* 暖调发光 */
    margin-bottom: 10px;
}

.calculator-header .calculator-desc {
    color: #7a6953; /* 浅木纹文字 */
    font-size: 16px;
}

.calculator-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e87a6f; /* 珊瑚红标签 */
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    background: rgba(248, 245, 239, 0.8); /* 浅米色半透 */
    border: 1px solid rgba(230, 154, 136, 0.4); /* 浅杏色边框 */
    border-radius: 6px;
    color: #584830; /* 深木纹文字 */
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #e87a6f; /* 珊瑚红边框 */
    box-shadow: 0 0 8px rgba(230, 154, 136, 0.4); /* 暖调发光 */
}

.attributes-group, .add-points-group {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(248, 245, 239, 0.6); /* 浅米色半透 */
    border-radius: 8px;
    border: 1px solid rgba(230, 154, 136, 0.2); /* 浅杏色边框 */
}

.attributes-group h3, .add-points-group h3 {
    color: #e87a6f; /* 珊瑚红标题 */
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.attributes-group h3::before, .add-points-group h3::before {
    content: "★";
    color: #e69a88; /* 浅杏色星星 */
    font-size: 16px;
}

.attr-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.result-container {
    margin-top: 30px;
    padding: 25px;
    background: rgba(248, 245, 239, 0.8); /* 浅米色半透 */
    border-radius: 8px;
    border: 1px solid rgba(230, 154, 136, 0.4); /* 浅杏色边框 */
}

.result-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(230, 154, 136, 0.3); /* 浅杏色分隔线 */
}

.result-header h3 {
    color: #e87a6f; /* 珊瑚红标题 */
    font-size: 22px;
    text-align: center;
    text-shadow: 0 0 8px rgba(230, 154, 136, 0.5); /* 暖调发光 */
}

.result-header p {
    text-align: center;
    color: #7a6953; /* 浅木纹文字 */
    margin-top: 8px;
}

.result-table {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid rgba(230, 154, 136, 0.3); /* 浅杏色边框 */
}

.table th {
    background: linear-gradient(90deg, rgba(230, 154, 136, 0.2), rgba(232, 122, 111, 0.2)); /* 暖调渐变 */
    color: #584830; /* 深木纹文字 */
    font-weight: normal;
}

.table td {
    background: rgba(248, 245, 239, 0.6); /* 浅米色半透 */
    color: #584830; /* 深木纹文字 */
}

.total-grade {
    text-align: center;
    font-size: 18px;
    color: #584830; /* 深木纹文字 */
    padding: 15px;
    background: rgba(230, 154, 136, 0.1); /* 浅杏色背景 */
    border-radius: 6px;
    border: 1px solid rgba(230, 154, 136, 0.3); /* 浅杏色边框 */
}

.total-grade span {
    color: #e87a6f; /* 珊瑚红强调 */
    font-weight: bold;
    text-shadow: 0 0 5px rgba(230, 154, 136, 0.4); /* 暖调发光 */
}

/* ========== 响应式适配（保留原有逻辑） ========== */
@media (max-width: 1200px) {
    .main-layout {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .attr-row {
        grid-template-columns: 1fr 1fr;
    }
    .calculator-header h1 {
        font-size: 24px;
    }
    .content-title {
        font-size: 24px;
    }
    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .attr-row {
        grid-template-columns: 1fr;
    }
    .btn-group {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
    .content-card {
        padding: 20px 15px;
    }
}

/* 宠物名称下拉选择（暖调替换） */
.pet-select-wrap {
    position: relative;
}
.pet-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(240, 232, 216, 0.95); /* 奶油木色半透 */
    border: 1px solid rgba(230, 154, 136, 0.4); /* 浅杏色边框 */
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}
.pet-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    color: #584830; /* 深木纹文字 */
}
.pet-dropdown-item:hover {
    background: rgba(230, 154, 136, 0.2); /* 浅杏色背景 */
}

/* 调档概率表格（保留布局，暖调配色） */
.prob-table {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}
.prob-table .table th,
.prob-table .table td {
    padding: 10px;
    min-width: 60px;
}
.prob-table .table th[rowspan] {
    vertical-align: middle;
}

/* 总掉档概率提示（暖调替换） */
.total-grade {
    background: rgba(232, 122, 111, 0.1); /* 珊瑚红半透 */
    border: 1px solid rgba(232, 122, 111, 0.3); /* 珊瑚红边框 */
}
.total-grade p {
    color: #e87a6f; /* 珊瑚红文字 */
    font-weight: bold;
    font-size: 20px;
}

/* 宠物下拉框优化（暖调替换） */
.pet-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    color: #584830; /* 深木纹文字 */
}
.pet-dropdown-item:hover {
    background: rgba(230, 154, 136, 0.2); /* 浅杏色背景 */
}
.pet-dropdown-item.active {
    background: rgba(230, 154, 136, 0.3); /* 浅杏色背景加深 */
}
/* 计算结果高亮（暖调替换） */
.table td.highlight {
    color: #f0b888; /* 浅橙色高亮 */
    font-weight: bold;
}
/* 错误提示（暖调替换） */
.error-tip {
    color: #e87a6f; /* 珊瑚红错误提示 */
    font-size: 14px;
    margin-top: 5px;
    display: none;
}