* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: #f5f7fa;
    padding: 10px;
    color: #333;
}

/* 百分比条形图样式 */
.recyclable-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0;
}
.recyclable-bar {
    flex: 1;
    height: 16px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 10px;
}
.recyclable-fill {
    height: 100%;
    background: #4cd964; /* 绿色，和你截图一致 */
    border-radius: 8px;
}
.recyclable-label {
    font-size: 14px;
    width: 60px;
}
.recyclable-percent {
    font-size: 14px;
    width: 40px;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.header {
    background: #e6e6e6;
    padding: 16px 20px;
    text-align: center;
}

.header h1 {
    font-size: 22px;
    color: #ff5722;
    font-weight: bold;
}

.header-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-top: 6px;
}

.top-info {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
    align-items: center;
}

.info-left {
    flex: 1;
    min-width: 280px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
}

.info-item {
    font-size: 15px;
    line-height: 1.6;
}

.info-item span {
    color: #666;
}

.info-item .val {
    color: #ff5722;
    font-weight: 500;
    margin-left: 6px;
}

.photo-box {
    width: 180px;
    height: 180px;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    overflow: hidden;
}

.photo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tab {
    flex: 1;
    min-width: 120px;
    padding: 14px 10px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background: none;
    color: #666;
}

.tab.active {
    color: #ff5722;
    font-weight: bold;
    border-bottom: 2px solid #ff5722;
}

.content {
    padding: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

/* 仅 Materials 页面的环形图一行4列 */
.materials-grid .circle-box {
    grid-column: span 1;
}

@media (min-width: 1200px) {
    .materials-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.card .label {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}

.card .value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    word-break: break-all;
}

.circle-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 6px solid #f0f0f0;
    border-top-color: #ff5722;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ff5722;
}

.welcome {
    padding: 60px 20px;
    text-align: center;
    font-size: 18px;
    color: #666;
}

@media (max-width: 600px) {
    .top-info {
        flex-direction: column;
        /* 手机端顶部信息左对齐 */
        align-items: flex-start;
        text-align: left;
    }

    .photo-box {
        width: 160px;
        height: 160px;
        /* 图片保持居中 */
        align-self: center;
    }

    .header h1 {
        font-size: 19px;
    }

    .info-left {
        grid-template-columns: 1fr;
        width: 100%;
    }
}