/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, system-ui, sans-serif;
}
ul, li, a, button, input, textarea {
    list-style: none;
    text-decoration: none;
    border: none;
    outline: none;
    background: transparent;
}

/* 模块根容器 */
.module_review {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
.review-title {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    margin-bottom: 20px;
}

/* Tab标签栏 */
.tab-list-wrap {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}
.tab-btn {
    padding: 12px 16px;
    font-size: 14px;
    color: #767676;
    position: relative;
    cursor: pointer;
}
.tab-btn.active {
    color: #222;
    font-weight: 700;
}
.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #222;
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}

/* 总评分头部 */
.shop-review-header {
    margin-bottom: 24px;
}
.score-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.total-score {
    font-size: 48px;
    font-weight: bold;
    color: #222;
    line-height: 30px;
}
.star-group {
    display: flex;
    align-items: center;
}
.star {
    width: 26px;
    height: 26px;
}
.fill-star {
    fill: #ff6600;
}
.empty-star {
    fill: #e6e7eb;
}
.half-star-wrap {
    position: relative;
    width: 26px;
    height: 26px;
    overflow: hidden;
}
.half-star-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    overflow: hidden;
}
.score-desc {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-left: 4px;
}
.review-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #767676;
    margin: 8px 0 12px;
}
.real-buy-tag {
    color: #22891F;
    border-bottom: 1.5px solid #22891F;
    padding-bottom: 1px;
}
.sub-score-list {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}
.sub-score-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #373635;
}
.sub-score-item .score-num {
    font-size: 16px;
    font-weight: bold;
    color: #222;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.tag-list {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tag-item {
    padding: 6px 16px;
    height: 32px;
    line-height: 32px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    color: #222;
    cursor: pointer;
}
.tag-item.active {
    border: 2px solid #222;
    background: #f8f8f8;
    font-weight: 600;
}
.tag-drop-btn, .sort-drop {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}
.filter-title {
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0;
}
.filter-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

/* 语言提示 */
.lang-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #767676;
    margin: 16px 0;
}
.lang-switch {
    text-decoration: underline;
    cursor: pointer;
}

/* 评价列表 */
.product-review-list {
    margin-bottom: 20px;
}
.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #E8E8E8;
}
.review-user-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 200px;
    margin-bottom: 12px;
}
.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d64000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}
.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #222;
}
.user-country {
    font-size: 12px;
    color: #222;
    display: flex;
    align-items: center;
    gap: 4px;
}
.buy-tag {
    font-size: 12px;
    color: #22891F;
}
.repeat-buy-tag {
    font-size: 12px;
    background: #f4f4f4;
    padding: 2px 4px;
    border-radius: 2px;
    color: #444;
    width: fit-content;
}
.review-time {
    font-size: 12px;
    color: #767676;
    margin: 6px 0;
}
.review-content {
    font-size: 14px;
    color: #222;
    line-height: 18px;
    margin: 8px 0;
}
.review-more-operate {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #767676;
    cursor: pointer;
    margin-top: 12px;
}

/* 底部按钮 */
.load-more-btn, .add-review-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    border: 1px solid #222;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}
.add-review-btn {
    background: #222;
    color: #fff;
}
.load-more-btn:hover {
    background: #f4f4f4;
}

/* 弹窗遮罩 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.modal-mask.show {
    display: flex;
}
.modal-box {
    width: 420px;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
}
.modal-box h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #222;
}
.form-item {
    margin-bottom: 16px;
}
.form-item label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #222;
}
.form-item input, .form-item textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.form-item textarea {
    height: 100px;
    resize: none;
}
.modal-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.cancel-btn {
    flex: 1;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}
.submit-btn {
    flex: 1;
    height: 36px;
    background: #222;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, system-ui, sans-serif;
}
ul, li, a, button, input, textarea {
    list-style: none;
    text-decoration: none;
    border: none;
    outline: none;
    background: transparent;
}

/* 测试身份切换面板（测试专用，上线删除） */
.test-identity-panel {
    padding: 12px 20px;
    background: #f0f8ff;
    margin-bottom: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
}
.guest-tip {
    display: none;
    padding: 10px 16px;
    background: #fff3cd;
    color: #c68300;
    border-radius: 6px;
    text-align: center;
    margin-top: 20px;
}

.module_review {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
.review-title {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    margin-bottom: 20px;
}

.tab-list-wrap {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}
.tab-btn {
    padding: 12px 16px;
    font-size: 14px;
    color: #767676;
    position: relative;
    cursor: pointer;
}
.tab-btn.active {
    color: #222;
    font-weight: 700;
}
.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #222;
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}

.shop-review-header {
    margin-bottom: 24px;
}
.score-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.total-score {
    font-size: 48px;
    font-weight: bold;
    color: #222;
    line-height: 30px;
}
.star-group {
    display: flex;
    align-items: center;
}
.star {
    width: 26px;
    height: 26px;
}
.fill-star {
    fill: #ff6600;
}
.empty-star {
    fill: #e6e7eb;
}
.half-star-wrap {
    position: relative;
    width: 26px;
    height: 26px;
    overflow: hidden;
}
.half-star-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    overflow: hidden;
}
.score-desc {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-left: 4px;
}
.review-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #767676;
    margin: 8px 0 12px;
}
.real-buy-tag {
    color: #22891F;
    border-bottom: 1.5px solid #22891F;
    padding-bottom: 1px;
}
.sub-score-list {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}
.sub-score-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #373635;
}
.sub-score-item .score-num {
    font-size: 16px;
    font-weight: bold;
    color: #222;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.tag-list {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tag-item {
    padding: 6px 16px;
    height: 32px;
    line-height: 32px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    color: #222;
    cursor: pointer;
}
.tag-item.active {
    border: 2px solid #222;
    background: #f8f8f8;
    font-weight: 600;
}
.tag-drop-btn, .sort-drop {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}
.filter-title {
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0;
}
.filter-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.lang-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #767676;
    margin: 16px 0;
}
.lang-switch {
    text-decoration: underline;
    cursor: pointer;
}

.product-review-list {
    margin-bottom: 20px;
}
.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #E8E8E8;
}
.review-user-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 200px;
    margin-bottom: 12px;
}
.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d64000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}
.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #222;
}
.user-country {
    font-size: 12px;
    color: #222;
    display: flex;
    align-items: center;
    gap: 4px;
}
.buy-tag {
    font-size: 12px;
    color: #22891F;
}
.repeat-buy-tag {
    font-size: 12px;
    background: #f4f4f4;
    padding: 2px 4px;
    border-radius: 2px;
    color: #444;
    width: fit-content;
}
.review-time {
    font-size: 12px;
    color: #767676;
    margin: 6px 0;
}
.review-content {
    font-size: 14px;
    color: #222;
    line-height: 18px;
    margin: 8px 0;
}
.review-more-operate {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #767676;
    cursor: pointer;
    margin-top: 12px;
}

.load-more-btn, .add-review-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    border: 1px solid #222;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}
.add-review-btn {
    background: #222;
    color: #fff;
}
.load-more-btn:hover {
    background: #f4f4f4;
}

.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.modal-mask.show {
    display: flex;
}
.modal-box {
    width: 420px;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
}
.modal-box h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #222;
}
.form-item {
    margin-bottom: 16px;
}
.form-item label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #222;
}
.form-item input, .form-item textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.form-item textarea {
    height: 100px;
    resize: none;
}
.modal-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.cancel-btn {
    flex: 1;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}
.submit-btn {
    flex: 1;
    height: 36px;
    background: #222;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}