/* Travel Pillow Styles - Updated to match Bamboo Pillow Styles */

/* Hero Section Styles - Kept unique for Travel Pillow page */
.hero-travel {
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero-content {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-content .cta-button {
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    font-size: 2.8rem;
    color: #1e40af;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background-color: #f8fafc;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    position: relative;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumb li+li:before {
    content: "/";
    color: #cbd5e1; /* Matched */
    padding: 0 8px;
}

.breadcrumb li.active {
    color: #334155; /* Matched */
    font-weight: 500; /* Matched */
}

.breadcrumb a {
    color: #1e40af; /* Matched */
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #6ec1e4; /* Matched */
    text-decoration: underline;
}

/* Section Styles */
.section {
    padding: 60px 0;
}

.section-alt {
    background-color: #f8fafc;
    padding: 60px 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #1e40af; /* Matched */
    margin-bottom: 1rem;
    font-weight: 700; /* Matched */
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

/* Travel Pillow Types Section */
.pillow-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}
@media (max-width: 768px) {
    .pillow-types-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
}

.pillow-type-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); /* Matched */
    transition: transform 0.3s, box-shadow 0.3s; /* Matched */
}

.pillow-type-card:hover {
    transform: translateY(-8px); /* Matched */
    box-shadow: 0 12px 24px rgba(0,0,0,0.15); /* Matched */
}

.pillow-type-image {
    height: 200px;
    overflow: hidden;
}

.pillow-type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.pillow-type-content {
    padding: 20px;
}

.pillow-type-content h3 {
    font-size: 1.4rem;
    color: #1e40af; /* Matched */
    margin-bottom: 10px;
}

.pillow-type-content p {
    color: #64748b;
    margin-bottom: 15px;
}

.pillow-type-features {
    margin-top: 15px;
    list-style: none;
    padding: 0;
}

.pillow-type-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: #334155;
    list-style: none;
    font-size: 1rem;
    line-height: 1.7;
}

.pillow-type-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #1e40af;
    font-weight: bold;
    font-size: 1.1em;
}

/* Top Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pillow-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.pillow-card .badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #1e40af;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 10;
}

.pillow-card .badge.budget {
    background: linear-gradient(135deg, #10b981, #059669);
}

.pillow-card .badge.premium {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.pillow-image {
    height: auto !important;
    min-height: 0 !important;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 28px;
    padding-bottom: 16px;
}
.pillow-image img {
    width: 220px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.pillow-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 18px;
    margin-bottom: 8px;
    gap: 0.5rem;
}
.pillow-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-radius: 20px;
    margin: 0.25rem;
    min-width: 120px;
    text-align: center;
    border: 1px solid #1e40af;
    color: #1e40af;
    background: #fff;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}
.pillow-button.buy-button {
    background: #1e40af;
    color: #fff;
    border: 1px solid #1e40af;
}
.pillow-button:hover {
    background: #1e40af;
    color: #fff;
}
.pillow-button.buy-button:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
}
@media (max-width: 768px) {
    .pillow-image img {
        width: 90vw !important;
        max-width: 220px !important;
    }
    .pillow-actions {
        width: 100%;
    }
    .pillow-button {
        width: 90%;
        margin: 0.25rem auto;
        font-size: 1rem;
        min-width: 100px;
    }
}

.pillow-card .card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pillow-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #111827;
    line-height: 1.3;
}

.pillow-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    flex-grow: 1;
    margin-bottom: 1rem;
}

/* Comparison Table */
.comparison-section {
    padding: 60px 0;
    background-color: #f8fafc;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 30px;
    position: relative;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse; /* Use collapse for cleaner lines */
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); /* Matched */
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
    background-color: #1e40af; /* Matched */
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: #111827; /* Matched text color for feature column */
}

.comparison-table .excellent {
    color: #10b981;
    font-weight: 600;
}

.comparison-table .good {
    color: #0ea5e9;
    font-weight: 600;
}

.comparison-table .average {
    color: #f59e0b;
    font-weight: 600;
}

.comparison-table .poor {
    color: #ef4444;
    font-weight: 600;
}

/* === Comparison Table Action Buttons (复刻bamboo pillow页) === */
.comparison-table .pillow-button,
.comparison-table .pillow-button.buy-button {
  display: inline-block;
  font-size: 0.95rem;
  padding: 8px 16px;
  min-width: 90px;
  border-radius: 20px;
  margin: 0 6px 0 0;
  box-shadow: 0 2px 6px rgba(110,193,228,0.18);
  transition: all 0.3s;
  vertical-align: middle;
  white-space: nowrap;
}
.comparison-table .pillow-button:last-child,
.comparison-table .pillow-button.buy-button:last-child {
  margin-right: 0;
}
.comparison-table .pillow-button:hover,
.comparison-table .pillow-button.buy-button:hover {
  background-color: #5ba8d1;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(110,193,228,0.18);
}
@media (max-width: 768px) {
  .comparison-table .pillow-button,
  .comparison-table .pillow-button.buy-button {
    display: block;
    width: 90%;
    margin: 0.25rem auto;
    text-align: center;
  }
}

/* Detailed Reviews Section */
.reviews-section {
    padding: 80px 0;
}

.review-card {
    background-color: #ffffff; /* Matched */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); /* Matched */
    margin-bottom: 40px;
    border: 1px solid #e5e7eb; /* Matched border */
}

.review-header {
    background: #1e40af; /* Matched solid color */
    padding: 2rem; /* Matched padding */
    color: white;
    display: flex; /* Added for alignment */
    justify-content: space-between;
    align-items: center;
}

.review-header h3 {
    font-size: 1.8rem; /* Matched */
    margin: 0;
}

.review-subtitle {
    display: none; /* Removed subtitle for simpler header */
}

.review-content {
    padding: 2rem; /* Matched padding */
    display: flex;
    gap: 2rem; /* Matched gap */
}

.review-image {
    width: 40%;
    min-width: 300px;
    align-self: center; /* Center image */
}

.review-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.review-details {
    width: 60%;
}

.review-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.review-rating .stars {
    color: #f59e0b;
    font-size: 1.3rem;
    margin-right: 10px;
}

.review-rating .rating-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4b5563; /* Matched */
}

.review-features {
    margin-bottom: 20px;
}

.review-features h4 {
    font-size: 1.2rem;
    color: #1e40af; /* Matched */
    margin-bottom: 15px;
    border-bottom: 2px solid #e5e7eb; /* Matched */
    padding-bottom: 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-icon {
    color: #1e40af; /* Matched */
    font-size: 1.1rem;
    margin-top: 3px;
}

.feature-text {
    font-size: 0.95rem;
    color: #475569;
}

.review-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.review-pros,
.review-cons {
    background-color: #f9fafb; /* Matched */
    padding: 1.5rem; /* Matched */
    border-radius: 8px;
    border: 1px solid #e5e7eb; /* Matched */
}

.review-pros h4,
.review-cons h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700; /* Matched */
}

.review-pros h4 {
    color: #10b981;
}

.review-cons h4 {
    color: #ef4444;
}

.review-pros ul,
.review-cons ul {
    padding-left: 20px;
    margin: 0;
}

.review-pros li,
.review-cons li {
    margin-bottom: 8px;
    color: #475569;
}

.review-cta {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

/* New styles for the product rows layout */
.products-grid-rows {
    display: flex;
    flex-direction: column;
    gap: 36px;
    align-items: center;
}
.products-row {
    display: flex;
    justify-content: center;
    gap: 36px;
    width: 100%;
    align-items: stretch;
    max-width: 1100px;
}
.pillow-card {
    flex: 1 1 260px;
    max-width: 340px;
    min-width: 240px;
}
.products-row-2 {
    max-width: 1400px;
}


/* Buying Guide Section */
.buying-guide-section {
    padding: 70px 0;
    background-color: #f9fafb; /* Matched */
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.guide-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); /* Matched */
    transition: transform 0.3s; /* Matched */
}

.guide-card:hover {
    transform: translateY(-8px); /* Matched */
}

.guide-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6ec1e4, #1e40af); /* Matched */
}

.guide-icon img {
    height: 50px;
    width: auto;
}

.guide-content {
    padding: 20px;
}

.guide-content h3 {
    font-size: 1.3rem;
    color: #1e40af; /* Matched */
    margin-bottom: 15px;
}

.guide-content p {
    color: #475569;
    margin-bottom: 15px;
}

.guide-tips {
    margin-top: 15px;
}

.guide-tips li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #334155;
}

.guide-tips li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #1e40af; /* Matched */
    font-weight: bold;
}

/* FAQ Section */
.faq-section {
    padding: 70px 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 12px; /* Matched */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Matched */
    background-color: white;
    border: 1px solid #e5e7eb; /* Matched */
}

.faq-question {
    padding: 1.5rem; /* Matched */
    background-color: transparent; /* Matched */
    font-size: 1.2rem; /* Matched */
    font-weight: 600;
    color: #1e40af; /* Matched */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9fafb; /* Matched */
}

.faq-question:after {
    content: "+";
    font-size: 1.5rem;
    color: #1e40af; /* Matched */
    transition: transform 0.3s; /* Added transition */
}

.faq-item.active .faq-question:after {
    content: "−";
    transform: rotate(180deg); /* Added rotation */
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem; /* Matched padding */
    max-height: 1000px;
}

.faq-answer p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Conclusion Section */
.conclusion-section {
    padding: 70px 0;
    background-color: #f8fafc;
}

.conclusion-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.conclusion-container h2 {
    font-size: 2.2rem;
    color: #1e40af;
    margin-bottom: 1.5rem;
}

.conclusion-container p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Floating Price Nav */
.floating-price-nav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #6ec1e4, #1e40af);
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.floating-price-nav:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.5);
}

.floating-price-nav svg {
    width: 20px;
    height: 20px;
}

.floating-price-nav.visible {
    opacity: 1;
    transform: translateY(0);
}
.floating-price-nav .product-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff; /* Matched text color for floating nav */
}
.floating-price-nav .price {
    font-size: 1.2rem;
    color: #ffffff; /* Matched text color for floating nav */
}

/* New styles for comparison table responsiveness */
.table-outer-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.table-scroll-hint {
    display: none; /* Hidden on desktop */
}

/* === Comparison Table Wrapper (复刻 bamboo pillow 页) === */
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100vw;
    background: #fff;
    margin: 2rem 0;
    position: relative;
    padding-bottom: 10px;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
/* Scroll hint，可选 */
.table-scroll-hint {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #64748b;
    padding: 5px;
}
/* 让comparison-table至少950px宽，便于横向滚动 */
.comparison-table {
    min-width: 1200px; /* 扩充，确保 8 列完全显示 */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .review-content {
        flex-direction: column;
    }
    
    .review-image {
        width: 100%;
        min-width: auto;
    }
    
    .review-details {
        width: 100%;
    }

    .quick-picks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .pillow-types-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    /* Fix for product rows on mobile */
    .products-row {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        width: 100%; /* 新增，保证父容器宽度100% */
    }
    .pillow-card {
        min-width: 0; /* 新增，去除最小宽度限制 */
        max-width: 100%; /* 新增，去除最大宽度限制 */
        width: 100%; /* 新增，卡片宽度100% */
        box-sizing: border-box; /* 新增，防止padding溢出 */
        height: auto !important; /* 新增，确保高度自适应 */
        min-height: 0 !important; /* 新增，去除最小高度 */
    }
    .pillow-image {
        width: 100% !important; /* 新增，让图片高度自适应 */
        height: auto !important; /* 新增，让图片高度自适应 */
    }
    .pillow-actions {
        margin-top: 1rem; /* 新增，确保按钮有间距 */
        display: flex;
        flex-direction: row; /* 改为行布局，如果之前是列 */
        justify-content: space-between;
    }
    
    .review-pros-cons {
        grid-template-columns: 1fr;
    }
    
    .review-cta {
        flex-direction: column;
        align-items: stretch; /* Full-width buttons on mobile */
    }

    /* Table styles from bamboo page for mobile */
    .table-outer-container:after {
        content: "← Swipe →";
        position: absolute;
        bottom: 8px;
        right: 8px;
        background: rgba(12, 74, 110, 0.7);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        opacity: 0.8;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    .table-responsive:after {
        content: "← Swipe →";
        position: absolute;
        bottom: 8px;
        right: 8px;
        background: rgba(12, 74, 110, 0.7);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        opacity: 0.8;
    }
    
    .pillow-actions {
        flex-direction: column;
    }

    .toc-list {
        columns: 1;
    }

    .quick-picks-grid {
        grid-template-columns: 1fr;
    }

    /* 使比较表格横向滚动区域铺满全屏 */
    .table-responsive {
        width: 100vw !important;
        margin-left: calc(50% - 50vw) !important; /* 拉出 container padding */
        margin-right: calc(50% - 50vw) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-alt {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    
    .floating-price-nav {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 14px;
    }
} 

/*
==============================================
Quick Picks & Table of Contents Modules
==============================================
*/

.new-ux-modules {
    max-width: 1200px; /* Aligns with .section-container */
    margin: 40px auto; /* Combines margin-top/bottom and centers the block */
    padding: 0 20px; /* Matches horizontal padding of .section-container */
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Quick Picks Section */
#quick-picks {
    background-color: #f0f4ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 2rem;
}

.quick-picks-title {
    font-size: 1.8rem;
    color: #1e3a8a;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.quick-picks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.quick-pick-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-pick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.1);
}

.quick-pick-card h3 {
    font-size: 1.25rem;
    color: #1e40af;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.quick-pick-card .product-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: #334155;
}

.quick-pick-card .product-tagline {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0 0 1rem 0;
    min-height: 38px; /* Prevents layout shifts */
}

.quick-pick-card a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

/* Table of Contents Section */
#table-of-contents {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
}

.toc-title {
    font-size: 1.8rem;
    color: #1e3a8a;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid #dbeafe;
    padding-bottom: 0.75rem;
    font-weight: 700;
}

.toc-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    columns: 2;
    column-gap: 4rem;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list li a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
}

.toc-list li a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .new-ux-modules {
        margin-top: 20px;
        margin-bottom: 20px;
        gap: 20px;
        padding: 0 15px; /* Add padding for mobile */
    }

    #quick-picks, #table-of-contents {
        padding: 1.5rem;
    }

    .quick-picks-title, .toc-title {
        font-size: 1.5rem;
    }

    .toc-list {
        columns: 1;
    }

    .quick-picks-grid {
        grid-template-columns: 1fr;
    }
} 

/* 重新设计产品卡片布局，参考bamboo-memory-foam-pillow页面 */
.content-section#top-picks {
    padding: 60px 0;
}

.content-section#top-picks .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.content-section#top-picks .products-grid-rows {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 将pillow-card改为类似review-card的样式 */
.content-section#top-picks .pillow-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
}

.content-section#top-picks .pillow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.content-section#top-picks .card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #1e40af;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 10;
}

/* 重新设计图片区域 */
.content-section#top-picks .pillow-image {
    height: 220px;
    width: 100%;
    background-color: #f8fafc;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-section#top-picks .pillow-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

/* 重新设计内容区域 */
.content-section#top-picks .pillow-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.content-section#top-picks .pillow-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #111827;
    line-height: 1.3;
}

.content-section#top-picks .pillow-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.content-section#top-picks .pillow-rating .stars {
    color: #f59e0b;
    font-size: 1.3rem;
    margin-right: 10px;
}

.content-section#top-picks .pillow-rating .rating-number {
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
}

.content-section#top-picks .pillow-description {
    margin-bottom: 20px;
    flex-grow: 1;
}

.content-section#top-picks .pillow-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
}

/* 按钮样式 */
.content-section#top-picks .pillow-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: auto;
}

.content-section#top-picks .pillow-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-radius: 20px;
    margin: 0.25rem;
    min-width: 120px;
    text-align: center;
    border: 1px solid #1e40af;
    color: #1e40af;
    background: #fff;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.content-section#top-picks .pillow-button:hover {
    background: #1e40af;
    color: #fff;
}

.content-section#top-picks .pillow-button.buy-button {
    background: #1e40af;
    color: #fff;
    border: 1px solid #1e40af;
}

.content-section#top-picks .pillow-button.buy-button:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .content-section#top-picks .products-row {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }
    
    .content-section#top-picks .pillow-card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .content-section#top-picks .pillow-image {
        height: 180px;
    }
    
    .content-section#top-picks .pillow-info h3 {
        font-size: 1.2rem;
    }
    
    .content-section#top-picks .pillow-description p {
        font-size: 0.95rem;
    }
    
    .content-section#top-picks .pillow-actions {
        flex-wrap: wrap;
    }
    
    .content-section#top-picks .pillow-button {
        padding: 8px 16px;
        font-size: 0.9rem;
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .content-section#top-picks .pillow-image {
        height: 160px;
    }
    
    .content-section#top-picks .pillow-info {
        padding: 1rem;
    }
    
    .content-section#top-picks .pillow-info h3 {
        font-size: 1.1rem;
    }
    
    .content-section#top-picks .pillow-description p {
        font-size: 0.9rem;
    }
    
    .content-section#top-picks .pillow-button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* 覆盖HTML内联样式 */
@media (max-width: 700px) {
    .content-section#top-picks .products-grid-rows .pillow-card {
        min-height: auto !important;
        height: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 20px !important;
    }
    
    .content-section#top-picks .products-grid-rows .pillow-image {
        height: 160px !important;
        min-height: 0 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .content-section#top-picks .products-grid-rows .pillow-image img {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    .content-section#top-picks .products-grid-rows .pillow-info {
        padding: 1rem !important;
    }
    
    .content-section#top-picks .products-grid-rows .pillow-actions {
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: space-between !important;
    }
    
    .content-section#top-picks .products-grid-rows .pillow-button {
        flex: 1 1 45% !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }
} 

@media (max-width: 768px) {
    /* 确保懒加载图片在移动端立即可见 */
    .lazy-load {
        opacity: 1 !important;
    }
    /* 防止卡片被截断 */
    .pillow-card {
        height: auto !important;
        overflow: visible !important;
    }
    /* 优化 CTA 按钮尺寸与排版 */
    .pillow-actions {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .pillow-button {
        width: auto !important;   /* 取消 90% 宽度 */
        min-width: 90px !important; /* 更小的最小宽度 */
        padding: 0.45rem 0.9rem !important; /* 缩小内边距 */
        font-size: 0.9rem !important; /* 缩小字体 */
    }
} 