/* ========================================
   Kriegsman Homes Theme - Exact Match
   完全复刻 kriegsmanhomes.com
   ======================================== */

:root {
    --kr-primary: #0d6efd;
    --kr-warning: #ffc107;
    --kr-dark: #212529;
    --kr-light: #f8f9fa;
    --kr-info: #0dcaf0;
    --kr-success: #198754;
    --kr-danger: #dc3545;
}

/* ========================================
   Header-2: 深色粘性导航
   ======================================== */
#header-2 {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--kr-dark) !important;
}

#header-2 .navbar {
    padding: 0.75rem 0;
}

#header-2 .navbar-brand img {
    max-height: 60px;
    max-width: 100px;
    height: auto;
    width: auto;
}

#header-2 .nav-link {
    color: #fff !important;
    margin: 0 10px;
    transition: 0.3s;
    white-space: nowrap;
}

#header-2 .nav-link.active,
#header-2 .nav-link:hover {
    color: var(--kr-warning) !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 6px 10px;
}

#header-2 .btn-warning {
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.9rem;
}

#header-2 .btn-warning:hover {
    background-color: #e0a800;
    color: #fff;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.4);
}

/* ========================================
   Hero-2: 英雄区域
   ======================================== */
#hero-2 {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1d21 0%, #2c3e50 50%, #1a1d21 100%);
}

.hero-2-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.hero-2-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 3rem 1rem;
}

.hero-2-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-2-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-2-content .btn {
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
}

/* ========================================
   About-2: 关于我们
   ======================================== */
#about-2 {
    padding: 5rem 0;
    background: var(--kr-light);
}

.about-2-img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

.about-2-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--kr-dark);
    margin-bottom: 1.5rem;
}

.about-2-text h2 i {
    color: var(--kr-primary);
    margin-right: 0.5rem;
}

.about-2-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

/* ========================================
   Security-7: 安全特性
   ======================================== */
#security-7 {
    padding: 5rem 0;
    background: var(--kr-dark);
    color: #fff;
}

#security-7 h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#security-7 .lead {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

.security-7-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: 0.3s;
}

.security-7-step:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.security-7-step .step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.security-7-step h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.security-7-step p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ========================================
   Update-11: 版本更新记录
   ======================================== */
#update-11 {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2c3e50 0%, #1a1d21 100%);
}

#update-11 h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

#update-11 .lead {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

#update-11 .accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

#update-11 .accordion-button {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border: none;
}

#update-11 .accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--kr-warning);
    box-shadow: none;
}

#update-11 .accordion-button::after {
    filter: invert(1);
}

#update-11 .accordion-body {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 1.25rem;
}

#update-11 .accordion-body ul {
    margin: 0;
    padding-left: 1.25rem;
}

#update-11 .accordion-body ul li {
    margin-bottom: 0.5rem;
}

/* ========================================
   Mission-3: 品牌使命
   ======================================== */
#mission-3 {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1a1d21 0%, #2c3e50 100%);
}

.mission-3-img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: auto;
}

.mission-3-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

.mission-3-text h2 i {
    color: var(--kr-warning);
    margin-right: 0.5rem;
}

.mission-3-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.mission-3-text .mission-list {
    margin-top: 1.5rem;
}

.mission-3-text .mission-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.mission-3-text .mission-list li i {
    color: var(--kr-info);
    margin-right: 0.5rem;
    margin-top: 0.2rem;
}

/* ========================================
   News-3: 推荐热讯
   ======================================== */
#news-3 {
    padding: 5rem 0;
    background: #fff;
}

#news-3 h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--kr-dark);
    margin-bottom: 0.5rem;
}

#news-3 .lead {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

.news3-wrapper {
    display: grid;
    gap: 1.5rem;
}

.news3-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.news3-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.news3-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.news3-card:hover .news3-img-wrap img {
    transform: scale(1.05);
}

.news3-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news3-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--kr-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news3-content p {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.news3-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.news3-meta time {
    color: #adb5bd;
}

.news3-meta a {
    color: var(--kr-primary);
    text-decoration: none;
    font-weight: 600;
}

.news3-meta a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .news3-card {
        flex-direction: row;
    }
    
    .news3-img-wrap {
        width: 280px;
        height: auto;
        min-height: 200px;
        flex-shrink: 0;
    }
}

/* ========================================
   Footer-10: 页脚
   ======================================== */
#footer-10 {
    position: relative;
    padding: 4rem 0 2rem;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#footer-10::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

#footer-10 > * {
    position: relative;
    z-index: 2;
}

#footer-10 h6 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

#footer-10 h6 i {
    margin-right: 0.5rem;
}

#footer-10 ul {
    font-size: 0.875rem;
}

#footer-10 a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: 0.3s;
}

#footer-10 a:hover {
    color: #fff;
}

#footer-10 .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   响应式调整
   ======================================== */
@media (max-width: 991px) {
    .hero-2-content h1 {
        font-size: 2rem;
    }
    
    .hero-2-content p {
        font-size: 1rem;
    }
    
    #about-2,
    #security-7,
    #update-11,
    #mission-3,
    #news-3 {
        padding: 3rem 0;
    }
    
    .news3-img-wrap {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .hero-2-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-2-content p {
        font-size: 0.9rem;
    }
    
    .hero-2-content .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    #about-2 h2,
    #security-7 h2,
    #update-11 h2,
    #mission-3 h2,
    #news-3 h2 {
        font-size: 1.5rem;
    }
    
    .security-7-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .news3-card {
        flex-direction: column !important;
    }
    
    .news3-img-wrap {
        width: 100% !important;
        height: 180px;
    }
}
