/* ============================================
   孝颐安 · 自定义样式表
   所有页面共用
   ============================================ */

/* ===== 品牌色彩 ===== */
:root {
    --primary-dark: #0f1a24;
    --primary-mid: #1a2a3a;
    --primary-light: #2c4a5a;
    --accent: #e8a838;
    --accent-hover: #d4952a;
    --accent-light: #fef5e6;
    --text-mid: #4a4a5a;
    --text-light: #7a7a8a;
    --border-light: #e9edf2;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.10);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ===== 全局重置 ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    padding-top: 0;
}

a {
    transition: all 0.3s ease;
}
a:hover {
    text-decoration: none;
}

/* ===== 顶部工具栏 ===== */
.topbar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1031;
}
.topbar a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}
.topbar a:hover {
    color: var(--accent);
    text-decoration: none;
}
.topbar i {
    margin-right: 6px;
}

/* ===== 导航栏（其他页面：纯色不透明） ===== */
.navbar-default {
    background: var(--primary-mid);
    padding: 14px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}
.navbar-brand {
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 1px;
    color: #fff !important;
}
.navbar-brand span {
    color: var(--accent);
}
.navbar-brand small {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.7;
    margin-left: 6px;
}
.navbar-default .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    padding: 8px 18px !important;
    transition: all 0.3s ease;
}
.navbar-default .navbar-nav .nav-link:hover,
.navbar-default .navbar-nav .nav-link.active {
    color: var(--accent);
}
.navbar-default .navbar-nav .nav-link.active {
    position: relative;
}
.navbar-default .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 18px;
    width: calc(100% - 36px);
    height: 2.5px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===== 按钮 ===== */
.btn-accent {
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 168, 56, 0.3);
}
.btn-accent-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-accent-outline:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-2px);
}
.btn-sm {
    padding: 6px 18px;
    font-size: 13px;
}
.btn-lg {
    padding: 14px 40px;
    font-size: 18px;
}

/* ===== 通用区块 ===== */
.section {
    padding: 70px 0;
}
.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}
.section-sub {
    color: var(--text-mid);
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto 40px;
}
.text-accent {
    color: var(--accent) !important;
}
.bg-light-gray {
    background: #f4f7fa;
}

/* ===== 页面横幅 ===== */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    right: -10%;
    top: -30%;
    width: 50%;
    height: 160%;
    background: radial-gradient(circle at 70% 40%, rgba(232, 168, 56, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.page-banner .container {
    position: relative;
    z-index: 2;
}
.page-banner h1 {
    font-size: 40px;
    font-weight: 700;
}
.page-banner p {
    opacity: 0.8;
    font-size: 18px;
}
.breadcrumb-custom {
    margin-top: 14px;
    font-size: 14px;
    opacity: 0.7;
}
.breadcrumb-custom a {
    color: var(--accent);
}
.breadcrumb-custom a:hover {
    opacity: 0.8;
}
.breadcrumb-custom span {
    margin: 0 8px;
}

/* ===== 产品卡片 ===== */
.product-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}
.product-card .icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}
.product-card h5 {
    font-size: 20px;
    font-weight: 700;
}
.product-card .tag {
    display: inline-block;
    background: #f4f7fa;
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-mid);
    margin: 6px 0 12px;
}
.product-card .feature-list {
    text-align: left;
    padding: 0;
    margin: 16px 0;
    font-size: 14px;
    list-style: none;
}
.product-card .feature-list li {
    padding: 4px 0;
    border-bottom: 1px solid var(--border-light);
}
.product-card .feature-list li:last-child {
    border-bottom: none;
}
.product-card .feature-list li i {
    color: var(--accent);
    margin-right: 10px;
    width: 18px;
}
.product-card .link {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}
.product-card .link:hover {
    color: var(--accent-hover);
}
.product-card .link i {
    transition: all 0.3s ease;
}
.product-card .link:hover i {
    transform: translateX(4px);
}

/* ===== 解决方案卡片 ===== */
.solution-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border-left: 6px solid var(--accent);
    transition: all 0.3s ease;
    height: 100%;
}
.solution-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.solution-card:nth-child(2n) {
    border-left-color: var(--primary-light);
}
.solution-card h5 {
    font-size: 22px;
    font-weight: 700;
}
.solution-card h5 i {
    color: var(--accent);
    margin-right: 10px;
}
.solution-card .meta {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-light);
}
.solution-card .meta i {
    color: var(--accent);
    margin-right: 6px;
}

/* ===== 技术展示 ===== */
.tech-wrap {
    background: #f4f7fa;
    border-radius: 20px;
    padding: 50px 40px;
}
.tech-steps {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.tech-steps .step {
    background: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    flex: 1;
    min-width: 80px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.tech-steps .step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.tech-steps .step i {
    font-size: 28px;
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}
.tech-tags span {
    background: var(--accent);
    color: #fff;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    margin: 4px;
}
.tech-stats {
    background: var(--primary-dark);
    color: #fff;
    padding: 36px 28px;
    border-radius: 20px;
    text-align: center;
}
.tech-stats .num {
    font-size: 44px;
    font-weight: 700;
    color: var(--accent);
}
.tech-stats .label {
    font-size: 14px;
    opacity: 0.7;
}
.tech-stats .divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    margin-top: 16px;
    font-size: 13px;
    opacity: 0.8;
}

/* ===== 关于我们 ===== */
.about-image {
    background: #f4f7fa;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 2px dashed var(--border-light);
    transition: all 0.3s ease;
}
.about-image:hover {
    border-color: var(--accent);
}
.about-image .icon {
    font-size: 72px;
    display: block;
    margin-bottom: 16px;
}
.about-values span {
    background: #f4f7fa;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin: 4px;
    transition: all 0.3s ease;
}
.about-values span:hover {
    background: var(--accent);
    color: #fff;
}
.about-values span i {
    color: var(--accent);
    margin-right: 8px;
}
.about-values span:hover i {
    color: #fff;
}

/* ===== 新闻列表 ===== */
.news-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
    transition: all 0.3s ease;
}
.news-item:hover {
    padding-left: 12px;
}
.news-item:last-child {
    border-bottom: none;
}
.news-date {
    text-align: center;
    min-width: 80px;
    margin-right: 20px;
}
.news-date .day {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.news-date .month {
    font-size: 14px;
    color: var(--text-light);
}
.news-content h5 {
    font-size: 18px;
    margin-bottom: 4px;
}
.news-content p {
    color: var(--text-mid);
    font-size: 14px;
    margin-bottom: 0;
}
.news-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
.news-link:hover {
    color: var(--accent-hover);
}
.news-link i {
    transition: all 0.3s ease;
}
.news-link:hover i {
    transform: translateX(4px);
}

/* ===== 产品展开卡片 ===== */
.product-detail-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
    overflow: hidden;
}
.product-detail-card .card-header-custom {
    padding: 20px 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}
.product-detail-card .card-header-custom:hover {
    background: #f8f9fa;
}
.product-detail-card .card-header-custom .icon {
    font-size: 40px;
}
.product-detail-card .card-header-custom .info h5 {
    font-size: 20px;
    margin-bottom: 0;
}
.product-detail-card .card-header-custom .info .tag {
    display: inline-block;
    background: #f4f7fa;
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-mid);
}
.product-detail-card .card-header-custom .info .brief {
    color: var(--text-mid);
    font-size: 14px;
}
.product-detail-card .card-header-custom .toggle-icon {
    transition: all 0.3s ease;
    margin-left: auto;
    color: var(--text-light);
}
.product-detail-card .card-header-custom .toggle-icon.open {
    transform: rotate(180deg);
}
.product-detail-card .card-body-custom {
    display: none;
    padding: 0 28px 28px;
    border-top: 1px solid var(--border-light);
}
.product-detail-card .card-body-custom.open {
    display: block;
}
.product-detail-card .card-body-custom .spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}
.product-detail-card .card-body-custom .spec-item {
    background: #f4f7fa;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
}
.product-detail-card .card-body-custom .spec-item .label {
    font-size: 12px;
    color: var(--text-light);
}
.product-detail-card .card-body-custom .spec-item .value {
    font-weight: 600;
    font-size: 16px;
}

/* ===== 解决方案页大卡片 ===== */
.solution-hero-card {
    display: flex;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 40px;
    margin-bottom: 30px;
    align-items: center;
    gap: 40px;
    transition: all 0.3s ease;
}
.solution-hero-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.solution-hero-card .visual {
    background: #f4f7fa;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    font-size: 64px;
    min-width: 150px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.solution-hero-card .text h5 {
    font-size: 24px;
    font-weight: 700;
}
.solution-hero-card .text h5 i {
    color: var(--accent);
    margin-right: 10px;
}
.solution-hero-card .text .meta span {
    background: #f4f7fa;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    margin: 4px 4px 0 0;
}

/* ===== 对比表格 ===== */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.compare-table th {
    background: var(--primary-dark);
    color: #fff;
    padding: 14px 20px;
    font-weight: 600;
}
.compare-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
}
.compare-table tr:last-child td {
    border-bottom: none;
}
.compare-table td i.fa-check {
    color: #22c55e;
}
.compare-table td i.fa-times {
    color: #ef4444;
}
.compare-table .highlight {
    background: var(--accent-light);
}
.compare-table tr:hover td {
    background: #f8f9fa;
}
.compare-table .highlight:hover td {
    background: #fef0d4;
}

/* ===== 技术流程 ===== */
.tech-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.tech-flow .step {
    background: #fff;
    padding: 24px 16px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.tech-flow .step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.tech-flow .step .icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-item .question {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}
.faq-item .question:hover {
    color: var(--accent);
}
.faq-item .question i {
    transition: all 0.3s ease;
}
.faq-item .question i.open {
    transform: rotate(180deg);
}
.faq-item .answer {
    display: none;
    padding-top: 12px;
    color: var(--text-mid);
    line-height: 1.8;
}
.faq-item .answer.open {
    display: block;
}

/* ===== 时间线 ===== */
.timeline {
    position: relative;
    padding-left: 40px;
    border-left: 3px solid var(--accent);
}
.timeline .event {
    margin-bottom: 30px;
    position: relative;
}
.timeline .event::before {
    content: '';
    position: absolute;
    left: -47px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}
.timeline .event .year {
    font-weight: 700;
    color: var(--accent);
    font-size: 20px;
}
.timeline .event .desc {
    color: var(--text-mid);
}

/* ===== 荣誉墙 ===== */
.honor-grid .item {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 24px 12px;
    text-align: center;
    transition: all 0.3s ease;
}
.honor-grid .item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.honor-grid .item .icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}
.honor-grid .item .name {
    font-weight: 600;
    font-size: 14px;
}

/* ===== 新闻侧边栏 ===== */
.news-sidebar .widget {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}
.news-sidebar .widget h5 {
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.news-sidebar .widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.news-sidebar .widget ul li:last-child {
    border-bottom: none;
}
.news-sidebar .widget ul li a:hover {
    color: var(--accent);
}
.news-sidebar .tag-cloud span {
    background: #f4f7fa;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 4px;
}
.news-sidebar .tag-cloud span:hover {
    background: var(--accent);
    color: #fff;
}

/* ===== 联系卡片 ===== */
.contact-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    height: 100%;
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.contact-card .icon {
    font-size: 32px;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}
.contact-card .copy-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.contact-card .copy-btn:hover {
    color: var(--accent-hover);
}

/* ===== 表单 ===== */
.contact-form .form-group label {
    font-weight: 500;
    font-size: 14px;
}
.contact-form .form-group .required {
    color: #ef4444;
}
.contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.15);
}
.contact-form .form-control.is-invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.contact-form .form-success {
    display: none;
    background: #dcfce7;
    color: #166534;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
}
.contact-form .form-error {
    display: none;
    color: #ef4444;
    font-size: 14px;
}

/* ===== 页脚 ===== */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 30px;
    margin-top: 40px;
}
footer .brand {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}
footer .brand span {
    color: var(--accent);
}
footer .brand small {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.7;
    margin-left: 6px;
}
footer .footer-text {
    max-width: 300px;
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
}
footer .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    transition: all 0.3s ease;
    margin-right: 8px;
}
footer .social a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}
footer h5 {
    color: #fff;
    font-weight: 600;
}
footer ul {
    list-style: none;
    padding: 0;
}
footer ul li {
    margin-bottom: 10px;
    font-size: 14px;
}
footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}
footer ul li a:hover {
    color: var(--accent);
    padding-left: 4px;
}
footer ul li i {
    width: 20px;
    color: var(--accent);
    margin-right: 6px;
}
footer .border-top {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .section-title {
        font-size: 30px;
    }
    .page-banner h1 {
        font-size: 32px;
    }
    .tech-flow {
        grid-template-columns: 1fr 1fr;
    }
    .solution-hero-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    .solution-hero-card .visual {
        min-width: auto;
        min-height: auto;
        font-size: 48px;
        padding: 20px;
        width: 100%;
    }
    .product-detail-card .card-body-custom .spec-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 26px;
    }
    .section-sub {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-banner {
        padding: 30px 0;
    }
    .page-banner h1 {
        font-size: 26px;
    }
    .page-banner p {
        font-size: 16px;
    }
    .news-item {
        flex-direction: column;
        text-align: center;
    }
    .news-date {
        margin-right: 0;
        margin-bottom: 8px;
    }
    .product-detail-card .card-header-custom {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 8px;
        padding: 16px 20px;
    }
    .product-detail-card .card-header-custom .toggle-icon {
        margin-left: 0;
    }
    .product-detail-card .card-body-custom {
        padding: 0 16px 20px;
    }
    .tech-flow {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .topbar .container .row {
        flex-direction: column;
        text-align: center;
    }
    .topbar .container .row .col-md-6 {
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .product-detail-card .card-body-custom .spec-grid {
        grid-template-columns: 1fr;
    }
    .compare-table {
        font-size: 13px;
    }
    .compare-table th,
    .compare-table td {
        padding: 10px 12px;
    }
    footer .footer-grid {
        grid-template-columns: 1fr;
    }
    .honor-grid .item {
        padding: 16px 8px;
    }
    .honor-grid .item .icon {
        font-size: 24px;
    }
    .honor-grid .item .name {
        font-size: 12px;
    }
    .solution-hero-card .visual {
        font-size: 36px;
        padding: 16px;
    }
    .solution-hero-card .text h5 {
        font-size: 20px;
    }
}