:root {
    --primary-color: #0d6efd;
    --hero-gradient: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

.main-content {
    padding-top: 76px;
    min-height: calc(100vh - 200px);
}

.site-logo {
    height: 36px;
    width: auto;
}

/* 顶部导航 - 白色背景 */
.site-navbar {
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.site-navbar .navbar-brand {
    color: #212529;
    font-weight: 600;
}

.site-navbar .navbar-brand:hover {
    color: var(--primary-color);
}

.site-navbar .nav-link {
    color: #495057;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    color: var(--primary-color);
}

.site-navbar .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero */
.hero-section {
    background: var(--hero-gradient);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.hero-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Section */
.section-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #6c757d;
    margin-bottom: 2.5rem;
}

/* Product cards */
.product-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-card .card-img-top {
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    background: #f0f4f8;
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-specs {
    font-size: 0.875rem;
    color: #6c757d;
}

.product-specs span {
    display: inline-block;
    margin-right: 12px;
}

/* Features */
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Team */
.team-card {
    text-align: center;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem 1.5rem;
    height: 100%;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    background: #e9ecef;
}

.team-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--hero-gradient);
    color: #fff;
    font-size: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* About */
.about-content {
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1rem;
}

/* Contact */
.contact-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.contact-card-dark {
    background: #212529;
    color: #fff;
}

.contact-card-dark .contact-item i {
    color: #fff;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.contact-value {
    color: #fff;
}

.contact-value a {
    color: #fff;
    text-decoration: none;
}

.contact-value a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Product detail */
.spec-table th {
    width: 120px;
    background: #f8f9fa;
}

/* Footer */
.site-footer .footer-contact {
    color: #fff;
    word-break: break-word;
}

.site-footer .footer-contact-hint {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer .footer-desc {
    color: rgba(255, 255, 255, 0.75);
    word-break: break-word;
}

.site-footer .footer-links li {
    margin-bottom: 0.5rem;
}

.site-footer .footer-link {
    color: #fff;
    text-decoration: none;
}

.site-footer .footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* 页脚底部版权 + 备案 */
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.site-footer .footer-copyright {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.footer-beian-wrap {
    padding: 0 0.5rem;
}

.footer-beian {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-beian-item {
    display: inline-flex;
    align-items: center;
}

.footer-beian-link {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-beian-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-beian-psb {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-beian-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.85;
}

.about-page-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
}

.about-page-subtitle p {
    margin-bottom: 0;
}

.hero-title p,
.hero-subtitle p {
    margin-bottom: 0;
}

.footer-desc p {
    margin-bottom: 0.5rem;
}

.team-bio p:last-child {
    margin-bottom: 0;
}

/* Page header */
.page-header {
    background: #f8f9fa;
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 64px;
    }

    /* 导航栏 */
    .site-navbar .navbar-brand {
        max-width: calc(100% - 56px);
    }

    .site-navbar .navbar-brand span {
        font-size: 0.95rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        max-width: 100%;
    }

    .site-logo {
        height: 32px;
        flex-shrink: 0;
    }

    .site-navbar .nav-link {
        padding: 0.65rem 0.5rem !important;
    }

    .site-navbar .navbar-collapse {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    /* Hero */
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section {
        padding: 48px 0 40px;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        margin: 0 !important;
    }

    /* 页面标题区 */
    .page-header {
        padding: 2rem 0 1.25rem;
        margin-bottom: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header .breadcrumb {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }

    .section-subtitle {
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }

    /* 产品规格 */
    .product-specs span {
        display: block;
        margin-right: 0;
        margin-bottom: 0.25rem;
    }

    .product-card .price {
        font-size: 1.25rem;
    }

    /* 产品详情表格 */
    .spec-table {
        font-size: 0.9rem;
    }

    .spec-table th {
        width: 90px;
    }

    /* 关于我们 */
    .about-content {
        font-size: 0.95rem;
    }

    .about-section-row.flex-lg-row-reverse > [class*="col-"]:first-child {
        order: 0;
    }

    /* 联系卡片 */
    .contact-card .card-body {
        padding: 1.25rem !important;
    }

    .contact-item i {
        font-size: 1.25rem;
    }

    /* 团队 */
    .team-card {
        padding: 1.5rem 1rem;
    }

    /* 页脚 */
    .site-footer {
        padding-top: 2.5rem !important;
        padding-bottom: 2rem !important;
    }

    .site-footer h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-beian {
        flex-direction: column;
        gap: 0.4rem;
    }

    .footer-beian-link,
    .footer-beian-psb {
        word-break: break-all;
        justify-content: center;
        text-align: center;
    }

    .footer-copyright {
        font-size: 0.75rem;
        word-break: break-word;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.25rem;
    }
}

@media (max-width: 576px) {
    .site-navbar .navbar-brand span {
        max-width: 160px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }
}
