/* === Homepage Improvements - Trust Badges, How It Works, Calculator Categories === */

/* Trust Badges Section */
.trust-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-badge {
    text-align: center;
    padding: 1.5rem;
}

.trust-badge svg {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.trust-badge h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.trust-badge p {
    color: var(--light-text-color);
    font-size: 0.95rem;
    margin: 0;
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 0;
    background: var(--card-background);
}

.how-it-works-section .page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.how-it-works-section .page-header p {
    color: var(--light-text-color);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    position: relative;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--background-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

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

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(22, 163, 74, 0.3);
}

.step-icon {
    margin: 1.5rem 0 1rem;
    color: var(--accent-color);
}

.step-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.step-card p {
    color: var(--light-text-color);
    line-height: 1.6;
    margin: 0;
}

/* Calculator Categories */
.calculator-category {
    margin-bottom: 3rem;
}

.calculator-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-title svg {
    color: var(--accent-color);
}

/* Calculator Cards with Icons */
.calculator-card {
    position: relative;
    overflow: visible;
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto 1fr auto;
    gap: 0 1rem;
    align-items: start;
}

/* 图标在左上角 */
.calculator-card .card-icon {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, rgba(22, 163, 74, 0.15) 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.calculator-card .card-icon svg {
    width: 28px;
    height: 28px;
}

/* 标题在右侧，与图标同行 */
.calculator-card h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    display: flex;
    align-items: center;
    min-height: 48px;
}

/* 描述文字占据两列 */
.calculator-card p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* 按钮占据两列 */
.calculator-card .btn {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: auto;
}

/* 徽章保持绝对定位 */
.calculator-card .card-badge {
    grid-column: 1 / -1;
    grid-row: 1;
}

.calculator-card:hover .card-icon {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card Badges */
.card-badge {
    position: absolute;
    top: -20px;
    right: 10px;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.card-badge.popular {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
}

.card-badge.new {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
}

/* Blog Cards Enhanced */
.blog-card {
    padding: 0;
    overflow: hidden;
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    margin-bottom: 0;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--light-text-color);
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-date svg {
    flex-shrink: 0;
}

.blog-read-time {
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-content p {
    margin-bottom: 1.25rem;
}

/* Ensure blog card button sits at the bottom consistently */
.blog-content .btn {
    margin-top: auto;
}

/* Button Variants */
.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
}

.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* Page Header Enhanced */
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-header h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--light-text-color);
    margin: 0;
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
}

