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

body {
    font-family: Arial, "Microsoft YaHei", sans-serif;
    background: #f7f8fb;
    color: #1f2937;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #edf0f5;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    height: 66px;
    display: flex;
    align-items: center;
}

.logo {
    width: 190px;
}

.logo span {
    color: #ff5b22;
    font-size: 28px;
    font-weight: 800;
    font-style: italic;
}

.nav {
    flex: 1;
    display: flex;
    gap: 34px;
}

.nav a {
    color: #374151;
    font-weight: 600;
    padding: 24px 0;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: #ff5b22;
}

.nav a.active::after {
    content: "";
    width: 100%;
    height: 2px;
    background: #ff5b22;
    position: absolute;
    left: 0;
    bottom: 0;
}

.search-box form {
    width: 320px;
    height: 42px;
    display: flex;
    background: #f6f7fa;
    border: 1px solid #edf0f5;
    border-radius: 6px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0 14px;
    color: #666;
}

.search-box button {
    width: 70px;
    border: 0;
    background: #ff5b22;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* main */
.main {
    padding: 22px 0 42px;
}

.breadcrumb {
    color: #8b95a5;
    margin-bottom: 16px;
    font-size: 13px;
}

.breadcrumb a:hover {
    color: #ff5b22;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 24px;
}

.detail-card,
.side-card {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 8px;
}

/* top detail */
.detail-top {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 26px;
    padding: 20px;
}

.preview-big {
    height: 400px;
    border-radius: 6px;
    overflow: hidden;
    background: #eef1f5;
}

.preview-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-thumb {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    gap: 12px;
    align-items: center;
}

.arrow {
    height: 36px;
    border: 0;
    background: #f1f3f7;
    color: #6b7280;
    font-size: 24px;
    border-radius: 4px;
    cursor: pointer;
}

.thumb-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumb-list a {
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #eef1f5;
}

.thumb-list a.active {
    border-color: #ff5b22;
}

.thumb-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* product info */
.product-info h1 {
    font-size: 28px;
    line-height: 1.35;
    margin-bottom: 14px;
}

.label-row {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.label-row span {
    background: #eef5ff;
    color: #486a95;
    padding: 6px 13px;
    border-radius: 4px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0f5;
    margin-bottom: 18px;
}

.price-row em {
    color: #6b7280;
    font-style: normal;
}

.price-row strong {
    color: #ff5b22;
    font-size: 38px;
}

.price-row del {
    color: #9aa2af;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
    color: #6b7280;
    margin-bottom: 24px;
}

.info-grid p {
    display: flex;
}

.info-grid span {
    color: #7b8494;
}

.info-grid b {
    font-weight: 400;
    color: #374151;
}

.btn-row {
    display: grid;
    grid-template-columns: 170px 170px;
    gap: 20px;
    margin-bottom: 18px;
}

.buy-btn,
.demo-btn {
    height: 46px;
    line-height: 46px;
    text-align: center;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
}

.buy-btn {
    background: #ff5b22;
    color: #fff;
}

.demo-btn {
    border: 1px solid #ff5b22;
    color: #ff5b22;
}

.action-row {
    display: flex;
    gap: 14px;
}

.action-row a {
    width: 150px;
    height: 40px;
    border: 1px solid #edf0f5;
    border-radius: 4px;
    text-align: center;
    line-height: 40px;
    color: #6b7280;
}

.action-row a:hover {
    color: #ff5b22;
    border-color: #ffb399;
}

/* tabs content */
.article-content {
    margin-top: 18px;
    padding: 0 20px 28px;
}

.detail-tabs {
    height: 58px;
    border-bottom: 1px solid #edf0f5;
    display: flex;
    align-items: center;
    gap: 45px;
}

.detail-tabs a {
    height: 58px;
    line-height: 58px;
    font-size: 16px;
    font-weight: 700;
    color: #374151;
    position: relative;
}

.detail-tabs a.active,
.detail-tabs a:hover {
    color: #ff5b22;
}

.detail-tabs a.active::after {
    content: "";
    width: 100%;
    height: 2px;
    background: #ff5b22;
    position: absolute;
    left: 0;
    bottom: 0;
}

.article-body {
    padding-top: 22px;
}

.summary-text {
    color: #4b5563;
    line-height: 1.9;
    margin-bottom: 22px;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid #edf0f5;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 26px;
}

.feature-item {
    padding: 22px 18px;
    text-align: center;
    border-right: 1px solid #edf0f5;
}

.feature-item:last-child {
    border-right: 0;
}

.feature-item i {
    display: block;
    font-style: normal;
    font-size: 28px;
    margin-bottom: 10px;
}

.feature-item h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.feature-item p {
    color: #7b8494;
    font-size: 13px;
    line-height: 1.6;
}

.ad-banner {
    height: 130px;
    background: linear-gradient(90deg, #061b3d, #0d3264);
    border-radius: 4px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 70px;
    margin-bottom: 26px;
}

.ad-banner h2 {
    font-size: 30px;
    letter-spacing: 6px;
    margin-bottom: 12px;
}

.ad-banner p {
    color: #d5e4ff;
    font-size: 16px;
}

.banner-btn {
    width: 140px;
    height: 44px;
    line-height: 44px;
    background: #ff5b22;
    text-align: center;
    border-radius: 4px;
    font-weight: 700;
}

.content-text {
    line-height: 1.9;
    color: #374151;
}

.content-text img {
    max-width: 100%;
    height: auto;
    margin: 18px auto;
}

/* sidebar */
.side-card {
    padding: 18px;
    margin-bottom: 18px;
}

.side-card h3 {
    font-size: 18px;
    margin-bottom: 18px;
}

.author-box {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.author-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #121a2b;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    line-height: 54px;
    text-align: center;
}

.author-box h4 {
    font-size: 18px;
    margin-bottom: 6px;
}

.author-box p {
    color: #1abc9c;
    font-size: 13px;
}

.author-desc {
    color: #6b7280;
    margin-bottom: 16px;
}

.follow-btn {
    display: block;
    height: 38px;
    line-height: 36px;
    border: 1px solid #ff9f7a;
    color: #ff5b22;
    text-align: center;
    border-radius: 4px;
}

.recommend-item {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.recommend-img {
    height: 62px;
    border-radius: 4px;
    overflow: hidden;
    background: #eef1f5;
}

.recommend-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-item h4 {
    font-size: 14px;
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
}

.recommend-item h4 a:hover {
    color: #ff5b22;
}

.recommend-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.recommend-meta strong {
    color: #ff5b22;
    font-size: 16px;
}

.recommend-meta span {
    color: #9aa2af;
    font-size: 12px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 14px;
}

.service-item {
    display: flex;
    gap: 10px;
}

.service-item i {
    font-style: normal;
    width: 34px;
    height: 34px;
    background: #eef5ff;
    border-radius: 50%;
    text-align: center;
    line-height: 34px;
}

.service-item h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.service-item p {
    color: #9aa2af;
    font-size: 12px;
}

/* footer */
.footer {
    background: #fff;
    border-top: 1px solid #edf0f5;
    padding: 24px 0;
    text-align: center;
    color: #7b8494;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 14px;
}

.footer-links a:hover {
    color: #ff5b22;
}

/* mobile */
@media (max-width: 1200px) {
    .container {
        width: 94%;
    }

    .detail-top {
        grid-template-columns: 480px 1fr;
    }
}

@media (max-width: 900px) {
    .header-inner {
        height: auto;
        padding: 14px 0;
        flex-wrap: wrap;
    }

    .logo {
        width: 100%;
        margin-bottom: 12px;
    }

    .nav {
        width: 100%;
        overflow-x: auto;
        gap: 20px;
        margin-bottom: 12px;
    }

    .search-box,
    .search-box form {
        width: 100%;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-top {
        grid-template-columns: 1fr;
    }

    .preview-big {
        height: 240px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .btn-row {
        grid-template-columns: 1fr;
    }

    .feature-row {
        grid-template-columns: 1fr;
    }

    .feature-item {
        border-right: 0;
        border-bottom: 1px solid #edf0f5;
    }

    .feature-item:last-child {
        border-bottom: 0;
    }

    .ad-banner {
        height: auto;
        padding: 28px;
        display: block;
    }

    .ad-banner h2 {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .banner-btn {
        margin-top: 18px;
        display: block;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}