/* Import main index.css for shared styles including footer */
@import url('index.css');

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.guide-card i {
    font-size: 1.2rem !important;
    color: #667eea !important;
    margin-bottom: 0px !important;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;

}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-menu-overlay {
    display: none;
}

.mobile-menu-close {
    display: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Guides Hero */
.guides-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
    text-align: center;
}

.guides-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.guides-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Guides Content */
.guides-content {
    padding: 4rem 0;
    background: var(--bg-light);
}

.guides-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: var(--white);
    color: var(--text-dark);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: transparent;
}

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

.guide-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.guide-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Icon-based guide cards */
.guide-icon {
    font-size: 4.5rem;
    color: var(--white);
    opacity: 0.95;
    transition: all 0.3s ease;
}

.guide-card:hover .guide-icon {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
}

/* Category-specific gradient backgrounds for icon cards */
.guide-card[data-category="body-composition"] .guide-image:has(.guide-icon) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.guide-card[data-category="metabolism"] .guide-image:has(.guide-icon) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.guide-card[data-category="cardiovascular"] .guide-image:has(.guide-icon) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.guide-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

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

.guide-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.guide-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex: 1;
}

.guide-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.guide-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.guide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.guide-link:hover {
    gap: 0.75rem;
}

/* CTA Section */
.guides-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.guides-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.guides-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: #1a202c;
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav.active .mobile-menu-close {
        display: block;
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 1rem 2rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .guides-hero h1 {
        font-size: 2rem;
    }

    .guides-hero p {
        font-size: 1rem;
    }

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

    .guides-categories {
        flex-direction: column;
    }

    .category-btn {
        justify-content: center;
    }

    .guides-cta h2 {
        font-size: 1.75rem;
    }
}

/* ================================
   Guide Article Banner - Modern Redesign
   ================================ */

.guide-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

/* 背景装饰元素 */
.guide-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.guide-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.guide-banner .banner-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.guide-banner .banner-content {
    padding-right: 1rem;
}

/* 分类徽章 - 重新设计 */
.guide-category {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.guide-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
}

.guide-category i {
    font-size: 1.125rem;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

/* 标题 - 更大更突出 */
.guide-banner .banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 描述文字 - 更清晰 */
.guide-banner .banner-description {
    font-size: 1.375rem;
    color: #4a5568;
    margin-bottom: 3rem;
    line-height: 1.75;
    max-width: 95%;
    font-weight: 400;
}

/* 特性列表 - 卡片式设计 */
.guide-banner .banner-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

.guide-banner .feature-item {
    display: flex;
    align-items: center;
    gap: 1.125rem;
    padding: 1.125rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.guide-banner .feature-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

.guide-banner .feature-item i {
    color: #10b981;
    font-size: 1.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

.guide-banner .feature-item span {
    color: var(--text-dark);
    font-size: 1.0625rem;
    line-height: 1.5;
    font-weight: 500;
}

/* 按钮组 - 现代化设计 */
.guide-banner .banner-cta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.guide-banner .btn-primary,
.guide-banner .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.0625rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.guide-banner .btn-primary {
    background: #2563eb;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.guide-banner .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.guide-banner .btn-primary:hover::before {
    left: 100%;
}

.guide-banner .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.45);
}

.guide-banner .btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.guide-banner .btn-secondary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

/* 右侧图片区域 - 增强视觉效果 */
.guide-banner .banner-visual {
    position: relative;
}

.guide-banner .visual-wrapper {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.16);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* 多层装饰圆圈 */
.guide-banner .visual-wrapper::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.guide-banner .visual-wrapper::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -25%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulse 4s ease-in-out infinite 2s;
}

.guide-banner .banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 32px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    filter: brightness(1.08) contrast(1.1) saturate(1.05);
}

.guide-banner .visual-wrapper:hover .banner-image {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(1.12) contrast(1.15) saturate(1.1);
}

/* 浮动徽章 - 重新设计 */
.guide-banner .visual-decoration {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    z-index: 2;
}

.guide-banner .floating-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    padding: 1.125rem 1.75rem;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: floatBadge 3.5s ease-in-out infinite;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(-2deg);
    }

    75% {
        transform: translateY(-12px) rotate(2deg);
    }
}

.guide-banner .floating-badge i {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.4));
}

.guide-banner .floating-badge span {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .guide-banner {
        padding: 5rem 0 4rem;
    }

    .guide-banner .banner-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .guide-banner .banner-content {
        padding-right: 0;
        text-align: center;
    }

    .guide-banner .banner-title {
        font-size: 2.75rem;
    }

    .guide-banner .banner-description {
        max-width: 100%;
    }

    .guide-banner .banner-features {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .guide-banner .feature-item:hover {
        transform: translateX(0) scale(1.02);
    }

    .guide-banner .banner-cta {
        justify-content: center;
    }

    .guide-banner .visual-decoration {
        top: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 640px) {
    .guide-banner {
        padding: 4rem 0 3rem;
       
    }

    .guide-banner .banner-grid {
        gap: 3rem;
    }

    .guide-banner .banner-title {
        font-size: 2.25rem;
    }

    .guide-banner .banner-description {
        font-size: 1.125rem;
    }

    .guide-banner .banner-features {
        gap: 0.875rem;
    }

    .guide-banner .feature-item {
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
    }

    .guide-banner .feature-item i {
        font-size: 1.375rem;
    }

    .guide-banner .banner-cta {
        flex-direction: column;
        width: 100%;
    }

    .guide-banner .btn-primary,
    .guide-banner .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 1.125rem 2rem;
        font-size: 1rem;
    }

    .guide-category {
        font-size: 0.8125rem;
        padding: 0.625rem 1.5rem;
    }

    .guide-banner .floating-badge {
        padding: 0.875rem 1.25rem;
    }

    .guide-banner .floating-badge i {
        font-size: 1.5rem;
    }

    .guide-banner .floating-badge span {
        font-size: 0.9375rem;
    }
}