@import url('http://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
}

.sakura-bg {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 25%, #fbcfe8 50%, #f9a8d4 75%, #f472b6 100%);
}

.sakura-gradient {
    background: linear-gradient(45deg, #f472b6 0%, #ec4899 25%, #db2777 50%, #be185d 75%, #9d174d 100%);
    background-size: 400% 400%;
    animation: sakuraShift 8s ease-in-out infinite;
}

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

.floating-sakura {
    animation: floatSakura 6s ease-in-out infinite;
    font-size: 1.5rem;
}

@keyframes floatSakura {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); opacity: 0.7; }
    33% { transform: translateY(-25px) rotate(10deg) scale(1.1); opacity: 1; }
    66% { transform: translateY(-35px) rotate(-10deg) scale(0.9); opacity: 0.5; }
}

.sakura-button {
    background: linear-gradient(45deg, #f472b6, #ec4899);
    animation: sakuraGlow 2.5s ease-in-out infinite alternate;
}

@keyframes sakuraGlow {
    from { box-shadow: 0 0 20px rgba(244, 114, 182, 0.4); }
    to { box-shadow: 0 0 30px rgba(244, 114, 182, 0.8); }
}

.live-badge {
    position: relative;
}

.live-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ef4444, #f87171, #ef4444);
    border-radius: 50%;
    animation: sakuraPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes sakuraPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.sakura-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(244, 114, 182, 0.1);
}

.sakura-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(244, 114, 182, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sakura-card:hover::after {
    opacity: 1;
}

.sakura-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(244, 114, 182, 0.15);
    border-color: rgba(244, 114, 182, 0.3);
}

.category-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.category-card::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;
}

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

.category-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.number-counter {
    font-variant-numeric: tabular-nums;
    font-family: 'Inter', sans-serif;
}

.review-card {
    transition: all 0.4s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f472b6, #ec4899, #f472b6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 1.5rem 1.5rem 0 0;
}

.review-card:hover::before {
    transform: scaleX(1);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(244, 114, 182, 0.15);
}

.viewer-badge {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.category-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.interaction-btn {
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
}

.interaction-btn:hover {
    background-color: rgba(244, 114, 182, 0.1);
    color: #f472b6;
}

.interaction-btn.active {
    background: linear-gradient(45deg, #f472b6, #ec4899);
    color: white;
}

.sakura-ornament {
    position: relative;
}

.sakura-ornament::before {
    content: '🌸';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 1.2rem;
    opacity: 0.6;
}

.sakura-ornament::after {
    content: '🌺';
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 1.2rem;
    opacity: 0.6;
}

.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.sakura-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #f472b6, transparent);
    margin: 2rem 0;
}

.skill-level {
    background: linear-gradient(45deg, #f472b6, #ec4899);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.trending-badge {
    background: linear-gradient(45deg, #ec4899, #db2777);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
}

.sakura-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f472b6' fill-opacity='0.05'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm0 0c0 11.046 8.954 20 20 20s20-8.954 20-20-8.954-20-20-20-20 8.954-20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.sakura-frame {
    border: 3px solid;
    border-image: linear-gradient(45deg, #f472b6, #ec4899, #f472b6, #ec4899) 1;
    border-radius: 0.5rem;
}

.live-duration {
    background: rgba(244, 114, 182, 0.2);
    color: #ec4899;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
}

.sakura-text-shadow {
    text-shadow: 2px 2px 4px rgba(244, 114, 182, 0.4);
}

.category-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(45deg, #f472b6, #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.anchor-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.anchor-stats > div {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sakura-highlight {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.1), rgba(236, 72, 153, 0.1));
    border-left: 4px solid #f472b6;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
}

.show-popularity {
    background: linear-gradient(45deg, #ec4899, #db2777);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.community-badge {
    background: linear-gradient(45deg, #f472b6, #ec4899);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.sakura-section-title {
    position: relative;
    display: inline-block;
}

.sakura-section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, #f472b6, #ec4899);
}

.filter-btn {
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

.filter-btn.active {
    background: linear-gradient(45deg, #f472b6, #ec4899);
    color: white;
}

.filter-btn:not(.active) {
    background: #f3f4f6;
    color: #6b7280;
}

.filter-btn:not(.active):hover {
    background: #e5e7eb;
    color: #374151;
}

.faq-item {
    border-bottom: 1px solid #f3f4f6;
    padding: 1.5rem 0;
}

.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #f472b6;
}

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

.faq-answer.active {
    max-height: 200px;
    padding-top: 1rem;
}

.feedback-form {
    background: linear-gradient(145deg, #ffffff, #f9fafb);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(244, 114, 182, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #ffffff;
    color: #374151;
}

.form-input:focus {
    outline: none;
    border-color: #f472b6;
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.rating-stars {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.rating-star {
    font-size: 1.5rem;
    color: #e5e7eb;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-star:hover,
.rating-star.active {
    color: #ec4899;
}

/* Logo链接样式 */
nav a[href="/"] {
    transition: all 0.3s ease;
}

nav a[href="/"]:hover {
    transform: scale(1.05);
}

nav a[href="/"]:hover .sakura-gradient {
    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sakura-bg {
        padding: 3rem 0;
    }
    
    .floating-sakura {
        display: none;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .sakura-card {
        margin-bottom: 1.5rem;
    }
}

/* 动画性能优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .review-card {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .community-post {
        background: #1f2937;
        color: #f9fafb;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .sakura-gradient {
        background: #f472b6;
    }
    
    .live-badge {
        background: #dc2626;
    }
}

/* 打印样式 */
@media print {
    .floating-sakura,
    .live-badge,
    nav,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}