/* Guide Page Styles */
@import url('common.css');

.guide-hero {
    background: 
        linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(168, 85, 247, 0.9) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="hexagons" x="0" y="0" width="60" height="52" patternUnits="userSpaceOnUse"><polygon points="30,2 52,15 52,37 30,50 8,37 8,15" fill="none" stroke="rgba(255,255,255,0.15)" stroke-width="1.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23hexagons)"/></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="50" cy="50" r="30" fill="rgba(255,255,255,0.08)"/><circle cx="150" cy="150" r="40" fill="rgba(255,255,255,0.05)"/><circle cx="150" cy="50" r="20" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="150" r="25" fill="rgba(255,255,255,0.06)"/></svg>'),
        radial-gradient(circle at 15% 85%, rgba(236, 72, 153, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.4) 0%, transparent 60%);
    background-size: cover, 60px 52px, 200px 200px, 800px 800px, 800px 800px;
    background-position: center, center, center, left bottom, right top;
    color: var(--white);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.guide-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="10" y="10" width="15" height="15" fill="rgba(255,255,255,0.1)" rx="2"/><rect x="75" y="25" width="10" height="10" fill="rgba(255,255,255,0.08)" rx="1"/><rect x="30" y="70" width="12" height="12" fill="rgba(255,255,255,0.12)" rx="1.5"/><rect x="85" y="80" width="8" height="8" fill="rgba(255,255,255,0.06)" rx="1"/><rect x="5" y="50" width="6" height="6" fill="rgba(255,255,255,0.1)" rx="0.5"/><rect x="60" y="15" width="9" height="9" fill="rgba(255,255,255,0.09)" rx="1"/></svg>'),
        linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
    background-size: 120px 120px, 300% 300%;
    animation: floatElements 12s ease-in-out infinite, shimmerWave 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatElements {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-15px) translateX(10px); }
    50% { transform: translateY(-5px) translateX(-5px); }
    75% { transform: translateY(-20px) translateX(15px); }
}

@keyframes shimmerWave {
    0%, 100% { background-position: 0 0, -300% -300%; }
    50% { background-position: 0 0, 300% 300%; }
}

.back-link {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    opacity: 0.95;
    transition: all 0.4s ease;
    padding: 12px 24px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    font-weight: 600;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.back-link::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 ease;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-8px) translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.back-link:hover::before {
    left: 100%;
}

.back-link i {
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-3px);
}

.guide-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    animation: badgeGlow 3s ease-in-out infinite;
}

.guide-category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.guide-category-badge:hover::before {
    left: 100%;
}

@keyframes badgeGlow {
    0%, 100% { 
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 30px rgba(255, 255, 255, 0.5);
    }
}

.guide-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.2;
    position: relative;
    text-shadow: 
        0 2px 20px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2);
    animation: titleGlow 4s ease-in-out infinite;
}

.guide-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.8) 20%, 
        rgba(255,255,255,1) 50%, 
        rgba(255,255,255,0.8) 80%, 
        transparent
    );
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: underlineGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 
            0 2px 20px rgba(0, 0, 0, 0.3),
            0 0 40px rgba(255, 255, 255, 0.2);
    }
    50% { 
        text-shadow: 
            0 2px 20px rgba(0, 0, 0, 0.3),
            0 0 60px rgba(255, 255, 255, 0.4);
    }
}

@keyframes underlineGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
        opacity: 0.8;
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
        opacity: 1;
    }
}

.guide-hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><g stroke="rgba(255,255,255,0.2)" stroke-width="2" fill="none"><circle cx="100" cy="100" r="80"/><circle cx="100" cy="100" r="60"/><circle cx="100" cy="100" r="40"/><circle cx="100" cy="100" r="20"/><line x1="20" y1="100" x2="180" y2="100"/><line x1="100" y1="20" x2="100" y2="180"/><line x1="41.4" y1="41.4" x2="158.6" y2="158.6"/><line x1="158.6" y1="41.4" x2="41.4" y2="158.6"/></g></svg>'),
        radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    background-size: 100% 100%, 100% 100%;
    border-radius: 50%;
    animation: rotateComplex 25s linear infinite, scaleBreath 8s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.6;
}

/* 添加左侧装饰元素 */
.guide-hero .container::before {
    content: '';
    position: absolute;
    top: 30%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><g stroke="rgba(255,255,255,0.15)" stroke-width="1.5" fill="none"><polygon points="75,15 135,135 15,135"/><polygon points="75,30 120,120 30,120"/><polygon points="75,45 105,105 45,105"/></g></svg>'),
        linear-gradient(45deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    background-size: 100% 100%, 100% 100%;
    animation: rotateReverse 30s linear infinite, floatSlow 10s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes rotateComplex {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    to { transform: rotate(360deg) scale(1); }
}

@keyframes rotateReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes scaleBreath {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-20px) translateX(15px); }
    66% { transform: translateY(10px) translateX(-10px); }
}

.guide-hero .container {
    position: relative;
    z-index: 2;
}

.guide-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0.9;
}

.guide-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-content {
    padding: 60px 0;
    background: var(--bg-light);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
}

.table-of-contents {
    position: sticky;
    top: 100px;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.table-of-contents h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents ul li {
    margin-bottom: 0.75rem;
}

.table-of-contents ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 0.5rem 0;
}

.table-of-contents ul li a:hover {
    color: var(--primary-color);
}

.article-body {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.article-body section {
    margin-bottom: 3rem;
}

.article-body h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.article-body h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
}

.article-body h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.article-body p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.article-body ul,
.article-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-body li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.article-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.article-body a:hover {
    text-decoration: underline;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.format-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.format-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.format-card p {
    font-size: 0.95rem;
    margin: 0;
}

.tip-box {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    border-left: 4px solid var(--primary-color);
}

.tip-box i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.tip-box h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tip-box p {
    margin: 0;
    color: var(--text-medium);
}

.guide-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.share-section h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-accent);
}

.share-btn i {
    color: var(--white);
}

@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .table-of-contents {
        position: static;
        margin-bottom: 2rem;
    }

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

    .article-body {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .guide-title {
        font-size: 2rem;
    }

    .guide-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-body {
        padding: 1.5rem;
    }

    .article-body h2 {
        font-size: 1.75rem;
    }

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

/* Recommended Tools Section */
.recommended-tools {
    background: var(--bg-light);
    padding: 80px 0;
}

.recommended-tools h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.recommended-tools > .container > p {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.recommended-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 968px) {
    .recommended-tools .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.recommended-tools .tool-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
}

.recommended-tools .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.recommended-tools .tool-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow);
}

.recommended-tools .tool-icon i {
    font-size: 2rem;
    color: var(--white);
}

.recommended-tools .tool-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.recommended-tools .tool-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.recommended-tools .tool-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.recommended-tools .tool-link:hover {
    gap: 12px;
}

/* Related Articles Section */
.related-articles {
    background: var(--white);
    padding: 80px 0;
}

.related-articles h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.related-articles > .container > p {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.related-articles .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.related-articles .article-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.related-articles .article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.related-articles .article-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.related-articles .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-articles .article-card:hover .article-image img {
    transform: scale(1.1);
}

.related-articles .article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.related-articles .article-content {
    padding: 2rem;
}

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

.related-articles .article-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.related-articles .article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.related-articles .article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.related-articles .article-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.related-articles .article-link:hover {
    gap: 12px;
}

/* Format Comparison Styles */
.format-comparison {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.format-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.format-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.format-item p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.format-item p strong {
    color: var(--text-dark);
}

/* Enhanced Guide Meta */
.guide-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0.9;
}

.guide-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .recommended-tools .tools-grid,
    .related-articles .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .recommended-tools h2,
    .related-articles h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .recommended-tools,
    .related-articles {
        padding: 60px 0;
    }

    .recommended-tools .tools-grid,
    .related-articles .articles-grid {
        grid-template-columns: 1fr;
    }

    .guide-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .related-articles .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}