body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #f5f6f8;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.friendcontainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px;
    box-sizing: border-box;
}
.friendheader {
    background-color: #27ae60;
    border-bottom: 2px solid #1e7e4a;
    position: sticky;
    top: 0;
    z-index: 999;
}
.friendheader .friendinner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    height: 56px;
}
.friendlogo img {
    height: 24px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}
.friendnav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}
.friendnav li a {
    color: #e2f9eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: color 0.2s;
}
.friendnav li a:hover, .friendnav li a.friendactive {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 16px;
}
.friendnoticebar {
    background-color: #ffffff;
    border: 1px solid #e3e4e6;
    padding: 10px 15px;
    margin: 10px auto 20px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
}
.friendnoticebar::before {
    content: "公告";
    background-color: #27ae60;
    color: #fff;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 2px;
    margin-right: 10px;
}
.friendsectitle {
    font-size: 15px;
    font-weight: bold;
    color: #111;
    margin: 25px 0 15px;
    border-left: 3px solid #27ae60;
    padding-left: 10px;
    text-transform: uppercase;
}
.friendsubcatbar {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    padding: 12px 15px;
    border-radius: 4px 4px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
}
.friendsubcatlinks {
    display: flex;
    gap: 10px;
    font-size: 11px;
    font-weight: normal;
    overflow-x: auto;
    white-space: nowrap;
}
.friendsubcatlinks span {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 2px 6px;
    border-radius: 2px;
}
.friendgridone {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 20px;
    margin-bottom: 25px;
}
.friendoneleft, .friendoneright {
    background: #ffffff;
    border: 1px solid #e3e4e6;
    border-radius: 4px;
    padding: 15px;
}
.friendonegrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.friendcardone {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.2s;
}
.friendcardone:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.friendcardone img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.friendinfoone {
    overflow: hidden;
}
.friendtitleone {
    font-size: 13px;
    color: #333;
    font-weight: bold;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.friendpriceone {
    color: #27ae60;
    font-weight: bold;
}
.friendrankitem {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.friendrankitem:last-child {
    border-bottom: none;
}
.friendranknum {
    background: #27ae60;
    color: #fff;
    font-size: 11px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}
.friendranktext {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.friendgridtwo {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e3e4e6;
    border-top: none;
    padding: 15px;
    border-radius: 0 0 4px 4px;
    margin-bottom: 25px;
}
.friendcardtwo {
    text-decoration: none;
    text-align: center;
    display: block;
}
.friendcardtwo img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 6px;
}
.friendtitletwo {
    font-size: 11px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.friendpricetwo {
    color: #27ae60;
    font-weight: bold;
    font-size: 11px;
    margin-top: 4px;
}
.friendgridthree {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}
.friendthreecol {
    background: #ffffff;
    border: 1px solid #e3e4e6;
    border-radius: 4px;
    padding: 15px;
}
.friendthreeheader {
    font-size: 13px;
    font-weight: bold;
    color: #27ae60;
    border-bottom: 1px solid #e3e4e6;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.friendthreerow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.friendthreerow:last-child {
    border-bottom: none;
}
.friendthreerow img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 10px;
}
.friendthreename {
    font-size: 12px;
    color: #555;
    text-decoration: none;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.friendgridfour {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}
.friendgridfive {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e3e4e6;
    border-top: none;
    padding: 15px;
    border-radius: 0 0 4px 4px;
    margin-bottom: 25px;
}
.friendcardfive {
    text-decoration: none;
    text-align: center;
    display: block;
}
.friendcardfive img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 6px;
}
.friendtitlefive {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.friendpricefive {
    color: #27ae60;
    font-weight: bold;
    font-size: 11px;
    margin-top: 4px;
}
.frienddetailwrap {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
.friendcard {
    background: #ffffff;
    border: 1px solid #e3e4e6;
    border-radius: 4px;
    padding: 20px;
}
.friendprodtitle {
    font-size: 20px;
    font-weight: bold;
    color: #111;
    margin-bottom: 12px;
}
.friendmeta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
    border-bottom: 1px dashed #e3e4e6;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.friendfield {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.friendfield label {
    width: 100px;
    font-size: 13px;
    color: #555;
}
.friendfield input, .friendfield select {
    flex: 1;
    height: 38px;
    border: 1px solid #e3e4e6;
    border-radius: 4px;
    padding: 0 10px;
    outline: none;
    box-sizing: border-box;
}
.friendfield input:focus {
    border-color: #27ae60;
}
.friendbuybtn {
    width: 100%;
    height: 44px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.friendbuybtn:hover {
    background: #1e7e4a;
}
.friendfooter {
    background: #1a1a1a;
    border-top: 3px solid #27ae60;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}
.friendfooterlinks {
    margin-bottom: 12px;
}
.friendfooterlinks a {
    color: #bbb;
    text-decoration: none;
    font-size: 13px;
    margin: 0 10px;
}
.friendfooterlinks a:hover {
    color: #ffffff;
}
.friendcopyright {
    color: #777;
    font-size: 11px;
}
.friendorderbox {
    background: #ffffff;
    border: 1px solid #e3e4e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 12px;
}
.friendkami {
    color: #2fba2f;
    font-weight: bold;
}
@media (max-width: 768px) {
    .friendgridone { grid-template-columns: 1fr; }
    .friendgridtwo { grid-template-columns: repeat(3, 1fr); }
    .friendgridthree { grid-template-columns: 1fr; }
    .friendgridfive { grid-template-columns: repeat(3, 1fr); }
    .frienddetailwrap { grid-template-columns: 1fr; }
}