/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    --secondary-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --bg-light: rgba(255, 255, 255, 0.9);
    --bg-transparent: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #e0f2fe 0%, #f0e6ff 25%, #ffe6f0 50%, #e6f3ff 75%, #f0f9ff 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-primary);
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

/* Removed gradient background for epilepsy-friendly design */

.logo:hover {
    color: #5a6c7d;
    transform: scale(1.02);
}

/* Removed gradient-shift animation for epilepsy-friendly design */

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 300;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
    background: #6b7f95;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(107, 127, 149, 0.2);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--bg-transparent);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-box {
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 150px;
    padding: 0.3rem;
}

.search-box::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
    color: #5a6c7d;
}

.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #7a8fa3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(122, 143, 163, 0.2);
}

.social-icon:hover {
    background: #6b7f95;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 127, 149, 0.3);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.hero-section {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: #5a6c7d;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 300;
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Articles Section */
.articles-section {
    margin-bottom: 3rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.article-card {
    background: var(--bg-light);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.article-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--secondary-gradient);
    position: relative;
    display: flex;
    align-items: flex-end;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.article-image-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 50%, transparent 100%);
    color: white;
    pointer-events: auto;
}

.article-content {
    padding: 2rem;
}

.article-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    background: rgba(122, 143, 163, 0.9);
    color: white;
    margin-bottom: 0.8rem;
    font-weight: 300;
    backdrop-filter: blur(5px);
}

.article-image-overlay .article-category {
    background: rgba(122, 143, 163, 0.95);
}

.article-title {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.article-image-overlay .article-title {
    color: white;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.6rem;
    pointer-events: none;
}

.article-title a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.article-title a:hover {
    color: #6b7f95;
}

.article-image-overlay .article-title a {
    z-index: 10;
    pointer-events: auto;
}

.article-image-overlay .article-title a:hover {
    color: #e8f0f5;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.article-image-overlay .article-excerpt {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Recommended Products */
.recommended-products {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.recommended-products h4 {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.products-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-item {
    flex: 1;
    min-width: 100px;
    padding: 0.8rem;
    background: var(--bg-transparent);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.product-item:hover {
    background: #8a9ba8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(138, 155, 168, 0.2);
}

.product-item-name {
    font-size: 0.85rem;
    font-weight: 300;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
}

.pagination-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 300;
    font-size: 0.95rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pagination-btn span {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.pagination-btn:hover {
    background: #7a8fa3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(122, 143, 163, 0.3);
    border-color: transparent;
}

.pagination-btn.active {
    color: white;
    background: #6b7f95;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(107, 127, 149, 0.3);
    transform: scale(1.05);
}

.pagination-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.pagination-btn:disabled,
.pagination-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn.pagination-ellipsis {
    background: transparent;
    border: none;
    cursor: default;
    box-shadow: none;
    min-width: auto;
    padding: 0 0.5rem;
    color: var(--text-secondary);
}

.pagination-btn.pagination-ellipsis:hover {
    transform: none;
    box-shadow: none;
}

.pagination-btn.pagination-ellipsis::before {
    display: none;
}

/* Navigation arrows styling */
.pagination-btn.pagination-nav {
    font-weight: 400;
    letter-spacing: 0.5px;
}

.pagination-btn.pagination-nav:hover {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

/* Article Page */
.article-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.article-page-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: #5a6c7d;
}

.article-page-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.article-hero-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 20px;
    margin: 2rem 0 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: block;
}

.article-inline-image {
    margin: 3rem 0;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.article-inline-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.article-inline-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

.article-body {
    background: var(--bg-light);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body img {
    width: 100%;
    border-radius: 15px;
    margin: 2rem 0;
}

/* Product Page */
.product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.product-detail {
    background: var(--bg-light);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-image {
    width: 100%;
    border-radius: 15px;
    background: var(--secondary-gradient);
    aspect-ratio: 1;
    object-fit: cover;
}

.product-info h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #5a6c7d;
}

.product-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Category Page */
.category-header {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.category-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #5a6c7d;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem 1rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #7a8fa3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background: #6b7f95;
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        width: 100%;
        flex-direction: column;
    }

    .nav-right {
        width: 100%;
        justify-content: space-between;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .article-page-title {
        font-size: 2rem;
    }

    .pagination {
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .pagination-btn {
        min-width: 40px;
        height: 40px;
        padding: 0 0.8rem;
        font-size: 0.85rem;
    }

    .pagination-btn.pagination-nav {
        font-size: 0.8rem;
        padding: 0 0.6rem;
    }

    .pagination-btn.pagination-nav span {
        display: none;
    }

    .pagination-btn.pagination-nav::after {
        content: attr(title);
        position: relative;
        z-index: 1;
    }

    .pagination-btn.pagination-nav[title="Previous page"]::after {
        content: '←';
    }

    .pagination-btn.pagination-nav[title="Next page"]::after {
        content: '→';
    }
}



/* ==================== 产品推荐模块 ==================== */
/* 由脚本自动添加 - 2026-02-13 */

.products-section {
  margin-top: 50px;
  padding: 40px 0;
  background: #f8f9fa;
  border-radius: 12px;
}

.products-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #333;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 0 20px;
}

.product-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #e9ecef;
}

.product-card-body {
  padding: 20px;
}

.product-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #333;
  line-height: 1.4;
}

.product-card p {
  font-size: 14px;
  color: #666;
  margin: 0 0 14px 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .price {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #e53935;
  margin-bottom: 14px;
}

.product-card .buy-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.2s;
}

.product-card .buy-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* 产品模块响应式 */
@media (max-width: 768px) {
  .products-section {
    margin-top: 30px;
    padding: 30px 0;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  
  .product-card img {
    height: 180px;
  }
}

/* ==================== 产品模块结束 ==================== */
