* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: #f5f6fa;
    color: #333333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
a {
    color: inherit;
    text-decoration: none;
}
.relatecontainer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 15px;
}
.relateheader {
    background: #ffffff;
    border-bottom: 1px solid #e1e8ed;
}
.relatetopbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.relatelogo img {
    max-height: 38px;
    max-width: 100%;
    object-fit: contain;
}
.relatenav {
    display: flex;
    align-items: center;
    gap: 15px;
}
.relatenavlink {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    padding: 18px 12px;
    transition: color 0.2s;
}
.relatenavlink:hover, .relatenavlink.active {
    color: #e74c3c;
}
.relatepanel {
    background: #34495e;
    padding: 40px 0;
    text-align: center;
}
.relatesearchbox {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}
.relatesearchinput {
    flex: 1;
    height: 42px;
    padding: 0 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;
}
.relatesearchbtn {
    width: 90px;
    height: 42px;
    background: #e74c3c;
    color: #ffffff;
    border: none;
    font-weight: 700;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}
.relatenotice {
    background: #ffffff;
    border-left: 4px solid #e74c3c;
    padding: 12px 18px;
    margin: 15px 0;
    border-radius: 4px;
    color: #555555;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.relatesectiontitle {
    font-size: 16px;
    font-weight: 700;
    color: #e74c3c;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e74c3c;
}
.relategrid6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}
.relategrid4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}
.relatecard {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    padding: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}
.relatecard:hover {
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231,76,60,0.1);
}
.relatecardimg {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 8px;
    display: block;
    background: #fafafa;
    border-radius: 4px;
}
.relatecardtitle {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}
.relateprice {
    color: #e74c3c;
    font-weight: 700;
}
.relatebadge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #e74c3c;
    color: #ffffff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
}
.relateautotag {
    font-size: 11px;
    background: #fdeae8;
    color: #e74c3c;
    padding: 1px 5px;
    border-radius: 3px;
}
.relatefooter {
    background: #1e252f;
    color: #888888;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
}
.relatefooterlinks {
    margin-bottom: 10px;
}
.relatefooterlinks a {
    color: #cccccc;
}
.relatecardbox {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    padding: 25px;
    margin-bottom: 20px;
}
.relateformgroup {
    margin-bottom: 15px;
}
.relatelabel {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333333;
}
.relateinput {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    outline: none;
}
.relatebtn {
    display: inline-block;
    width: 100%;
    height: 42px;
    line-height: 42px;
    text-align: center;
    background: #e74c3c;
    color: #ffffff;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.relatetabs {
    display: flex;
    border-bottom: 2px solid #eeeeee;
    margin-bottom: 20px;
}
.relatetabitem {
    padding: 10px 20px;
    font-weight: 600;
    color: #666666;
}
.relatetabitem.active {
    color: #e74c3c;
    border-bottom: 2px solid #e74c3c;
    margin-bottom: -2px;
}
@media (max-width: 992px) {
    .relategrid6 {
        grid-template-columns: repeat(3, 1fr);
    }
    .relategrid4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
