/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 服务信息公告栏 */
.announcement-bar {
    max-width: 978px;
    margin: 0 auto;
    background-color: #f7f7f7;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.announcement-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 20px;
    font-size: 14px;
}

.announcement-label {
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

.announcement-ticker {
    flex: 1;
    min-width: 0;
    height: 1.6em;
    overflow: hidden;
}

.announcement-track {
    display: flex;
    flex-direction: column;
}


.announcement-link {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: none;
    min-width: 0;
    height: 1.6em;
}

.announcement-date {
    color: #666;
    flex-shrink: 0;
}

.announcement-text {
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-more {
    color: #0071BC;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.announcement-more:hover {
    color: #40a9ff;
}

/* 主容器 */
.container {
    max-width: 978px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 30px 20px;
}

/* 左侧导航栏 */
.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    color: #666;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border-right: 3px solid #eee;
}
.nav-item:hover {
    background-color: #f5f5f5;
    color: #333;
    border-right: 3px solid #666;
}

.nav-item.active {
    color: #333;
    font-weight: 600;
    border-right: 3px solid #666;
}

.nav-bullet {
    width: 10px;
    height: 10px;
    background-color: transparent;
    flex-shrink: 0;
}

.nav-item.active .nav-bullet, .nav-item:hover .nav-bullet {
    background-color: #333;
}

/* 右侧内容区域 */
.main-content {
    flex: 1;
    min-width: 0;
    background-color: #fff;
    border-radius: 8px;
}

/* 顶部横幅 */
.hero-banner {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.hero-banner img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: #fff;
    padding-left: 40px;
}

.hero-icon{
    text-align: center;
    margin-bottom: 5px;
}

.hero-icon img{
    width: 25px;
    height:auto;
    display: inline-block;
    margin-bottom: 10px; 
}

.hero-icon svg {
    width: 100%;
    height: 100%;
}

.hero-title {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.hero-subtitles {
    display: flex;
    flex-direction: column;
}

.hero-subtitle {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.6;
}

/* 服务卡片网格 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    background-color: #f7f7f7;
    border-radius: 8px;
    padding: 36px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:stretch;
    text-align: center;
    transition: background-color 0.3s ease;
}

.service-card:hover {
    background-color: #f0f0f0;
}

.service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
}

.service-icon svg,
.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 2em;
}

.service-desc {
    display: flex;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    height: 3em;    
    align-items: center;
}

/* 延保服务·适用设备 */
.warranty-section {
    margin-top: 40px;
}

.warranty-title {
    font-size: 22px;
    font-weight: 500;
    color: #333;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.warranty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.warranty-card {
    display: flex;
    align-items: stretch;
    gap: 20px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.warranty-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #ddd;
}

.warranty-visual {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

.warranty-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.warranty-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.warranty-type {
    display: inline-block;
    font-size: 12px;
    color: #666;
    background-color: #f2f2f2;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.warranty-name {
    font-size: 17px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin-bottom: 16px;
}

.warranty-link {
    align-self: flex-end;
    margin-top: auto;
    font-size: 13px;
    color: #666;
    transition: color 0.3s ease;
}

.warranty-card:hover .warranty-link {
    color: #0071BC;
}
/* 联系我们区域 */
.contact-section {
    background-color: #f7f7f7;
    padding: 50px 20px;
    margin-top: 10px;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-title {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contact-title::before,
.contact-title::after {
    content: "/";
    color: #333;
    font-weight: 400;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.contact-item {
    flex: 1;
    text-align: center;
    padding: 0 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.contact-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background-color: #ddd;
}

.contact-subtitle {
    font-size: 17px;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
}

.contact-icon-wrap {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    color: #333;
}

.contact-icon-wrap svg {
    width: 100%;
    height: 100%;
}

.contact-info {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    word-break: break-all;
}

.contact-info.accent {
    color: #2a6f9c;
}

.contact-time {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.qr-code {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 4px;
    overflow: hidden;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}

.qr-desc {
    font-size: 12px;
    color: #999;
}

/* 响应式适配 */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar {
        width: 100%;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        border-top: 1px solid #eee;
    }

    .nav-item {
        padding: 16px;
        border-bottom: 1px solid #eee;
        justify-content: space-between;
        position: relative;
    }

    .nav-item::after {
        content: "";
        width: 16px;
        height: 16px;
        background: url("../images/arrow_right.svg") no-repeat center / contain;
        flex-shrink: 0;
    }

    .nav-item.active::after {
        background-image: url("../images/arrow_down.svg");
    }

    .nav-bullet {
        display: none;
    }

    .nav-text {
        font-size: 15px;
    }

    .main-content {
        width: 100%;
    }

    .contact-content {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .contact-item {
        flex: 1 1 33.33%;
        min-width: 0;
        background-color: #fbfbfb;
        border-radius: 8px;
        padding: 20px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }

    .contact-item:not(:last-child)::after {
        display: none;
    }

    .contact-subtitle {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .contact-icon-wrap {
        margin-bottom: 12px;
    }

    .contact-info {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .contact-time {
        font-size: 11px;
    }

    .qr-code {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
    }

    .qr-text,
    .qr-desc {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .announcement-content {
        gap: 8px;
        font-size: 13px;
        padding: 0 16px;
        flex-wrap: wrap;
    }

    .announcement-label {
        width: 100%;
    }

    .announcement-link {
        flex: none;
        gap: 12px;
        min-width: 0;
    }

    .announcement-text {
        max-width: 100%;
    }

    .announcement-more {
        flex-shrink: 0;
    }

    .container {
        padding: 0;
    }

    .hero-banner {
        margin-bottom: 80px;
        overflow: visible;
    }

    .hero-banner img {
        height: 220px;
        border-radius: 0;
    }

    .hero-overlay {
        padding-left: 20px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05));
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-subtitles {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background-color: #fff;
        color: #666;
        text-align: center;
        padding: 16px 0;
    }

    .hero-subtitle {
        font-size: 16px;
        opacity: 1;
    }

    .service-grid {
        gap: 12px;
        padding: 12px;
    }

    .service-card {
        padding: 24px 12px;
    }

    .service-icon {
        width: 32px;
        height: 32px;
    }

    .service-title {
        font-size: 15px;
    }

    .service-desc {
        font-size: 12px;
    }
    .warranty-section {
        margin: 24px 10px 0;
        padding: 10px;
        background-color: #f7f7f7;
        border-radius: 8px;
    }

    .warranty-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .warranty-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .warranty-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px;
    }

    .warranty-visual {
        display: none;
    }

    .warranty-body {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .warranty-type {
        order: -1;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .warranty-name {
        flex: 1;
        min-width: 0;
        font-size: 15px;
        margin-bottom: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .warranty-link {
        align-self: center;
        flex-shrink: 0;
        font-size: 18px;
        color: #333;
    }

    .warranty-link-text {
        display: none;
    }

    .contact-section {
        padding: 40px 16px;
    }

    .contact-title {
        font-size: 20px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .announcement-content {
        gap: 8px;
        font-size: 12px;
    }

    .hero-banner img {
        width: 100%;
        height: auto;
    }

    .service-grid {
        gap: 10px;
    }

    .service-card {
        padding: 20px 8px;
    }
    .hero-icon img {
        width: 25px;
    height: auto;
    display: inline-block;
    margin-bottom: 10px;
    }
}