/* 恋爱关系分析页面样式 */

.relationship-hero {
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 50%, #ff6b9d 100%);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.relationship-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"><defs><pattern id="roses" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="12.5" cy="12.5" r="4" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23roses)"/></svg>');
    animation: rotatePattern 20s linear infinite;
}

.relationship-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
}

/* 分析介绍区域 */
.analysis-intro {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff0f5 100%);
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    color: #dc143c;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.intro-content p {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.analysis-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.1);
    border: 2px solid rgba(220, 20, 60, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature h3 {
    color: #dc143c;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* 关系分析牌阵选择 */
.relationship-reading {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c1810 0%, #8b4513 50%, #2c1810 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.relationship-reading::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"><defs><pattern id="mystical" x="0" y="0" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M15,5 L18,12 L25,10 L20,17 L27,19 L20,22 L25,29 L18,27 L15,34 L12,27 L5,29 L10,22 L3,19 L10,17 L5,10 L12,12 Z" fill="rgba(255,182,193,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23mystical)"/></svg>');
    animation: mysticalGlow 15s ease-in-out infinite;
}

.reading-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.reading-header h2 {
    color: #ffb6c1;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.reading-header p {
    color: #f0c0c0;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.spread-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.spread-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 182, 193, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.spread-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 157, 0.2);
    border-color: rgba(255, 182, 193, 0.4);
}

.spread-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.spread-card h3 {
    color: #ffb6c1;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.spread-card p {
    color: #f0c0c0;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.spread-details {
    color: #dda0dd;
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-style: italic;
}

.choose-spread-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff85a1 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

.choose-spread-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.4);
}

/* 占卜过程 */
.reading-process {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.reading-process::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"><defs><pattern id="cosmic" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="5" cy="5" r="0.5" fill="rgba(255,255,255,0.2)"/><circle cx="15" cy="15" r="0.5" fill="rgba(255,255,255,0.15)"/></pattern></defs><rect width="100" height="100" fill="url(%23cosmic)"/></svg>');
    animation: cosmicTwinkle 8s ease-in-out infinite;
}

.process-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.process-header h2 {
    color: #87ceeb;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    width: 100%;
    max-width: 500px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d 0%, #87ceeb 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

.process-header p {
    color: #b0c4de;
    font-size: 1.2rem;
}

/* 塔罗牌阵显示 */
.tarot-spread {
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
}

.spread-layout-current {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.spread-layout-deep {
    display: grid;
    grid-template-areas: 
        ". card1 ."
        "card2 card3 card4"
        "card5 card6 card7";
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.spread-layout-challenge {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.tarot-card {
    width: 120px;
    height: 200px;
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 50%, #8b0000 100%);
    border-radius: 12px;
    border: 3px solid #ffd700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.tarot-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.3);
}

.tarot-card.flipped {
    background: white;
    color: #333;
}

/* 分析结果 */
.analysis-result {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 182, 193, 0.3);
    position: relative;
    z-index: 2;
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
}

.result-header h3 {
    color: #dc143c;
    font-size: 2.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.result-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.result-section {
    background: linear-gradient(135deg, #fff0f5 0%, #fff8fa 100%);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #dc143c;
}

.result-section h4 {
    color: #dc143c;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* 关系现状指标 */
.status-indicators {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 15px;
}

.indicator-label {
    min-width: 100px;
    color: #333;
    font-weight: 500;
}

.indicator-bar {
    flex: 1;
    height: 12px;
    background: rgba(220, 20, 60, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.indicator-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d, #c44569);
    border-radius: 10px;
    transition: width 2s ease-in-out;
}

.indicator-value {
    min-width: 50px;
    color: #dc143c;
    font-weight: bold;
    text-align: right;
}

/* 详细解读 */
.interpretation {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
}

.interpretation .card-meaning {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(220, 20, 60, 0.2);
}

.interpretation .card-meaning h5 {
    color: #dc143c;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* 建议列表 */
.advice-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.advice-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #ff6b9d;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.1);
}

.advice-item h5 {
    color: #dc143c;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.advice-item p {
    color: #666;
    line-height: 1.6;
}

/* 未来展望 */
.future-outlook {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(220, 20, 60, 0.2);
}

.future-timeline {
    position: relative;
    padding-left: 30px;
}

.future-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ff6b9d, #dc143c);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: #dc143c;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.3);
}

/* 结果操作按钮 */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.result-actions button {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-result-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.new-reading-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.share-result-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.result-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 用户反馈 */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff0f5 100%);
}

.testimonials h2 {
    text-align: center;
    color: #dc143c;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.1);
    border: 2px solid rgba(255, 182, 193, 0.2);
    text-align: center;
}

.testimonial-stars {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.testimonial p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    color: #dc143c;
    font-weight: 600;
}

/* 动画效果 */
@keyframes rotatePattern {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes mysticalGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes cosmicTwinkle {
    0%, 100% { opacity: 0.4; }
    25% { opacity: 0.8; }
    75% { opacity: 0.6; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .relationship-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .analysis-features {
        grid-template-columns: 1fr;
    }
    
    .spread-options {
        grid-template-columns: 1fr;
    }
    
    .spread-layout-current {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .spread-layout-deep,
    .spread-layout-challenge {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tarot-card {
        width: 100px;
        height: 160px;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .analysis-result {
        padding: 25px;
        margin: 0 15px;
    }
}

/* Prevent layout jumping when showing results */
.reading-process, .analysis-result {
    min-height: 400px;
    transition: all 0.3s ease;
}

.analysis-result {
    min-height: 800px;
}

/* Card image display fix */
.tarot-card-image {
    font-size: 4rem;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Progress indicators smooth animation */
.indicator-fill {
    transition: width 2s ease-in-out;
    background: linear-gradient(90deg, #ff6b9d, #c44569);
    border-radius: 10px;
}

/* Stable card layout */
.card-position {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-placeholder {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.card-placeholder:hover {
    border-color: #ff6b9d;
    transform: scale(1.02);
}

.card-placeholder.selected {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    border-color: #e84393;
    animation: cardGlow 2s ease-in-out infinite alternate;
}

@keyframes cardGlow {
    0% { 
        box-shadow: 0 5px 15px rgba(232, 67, 147, 0.3); 
        transform: scale(1.02);
    }
    100% { 
        box-shadow: 0 5px 25px rgba(232, 67, 147, 0.6); 
        transform: scale(1.05);
    }
}

/* Smooth show/hide animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
} 