/* Custom Styles for 飞米粒心理咨询 */

:root {
    --primary-color: #3B82F6;
    --secondary-color: #8B5CF6;
    --accent-color: #EC4899;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --dark-color: #1F2937;
    --light-color: #F3F4F6;
}

/* Typography */
body {
    font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 600;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav-link {
    @apply text-gray-600 hover:text-blue-600 px-5 py-2 text-sm font-medium transition-all duration-300 relative;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    @apply text-blue-600;
    transform: translateY(-1px);
}

.nav-link.active {
    @apply text-blue-600 font-semibold;
}

.nav-link.active::after {
    width: 100%;
    height: 3px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.mobile-nav-link {
    @apply text-gray-600 hover:text-blue-600 block px-4 py-3 text-base font-medium transition-all duration-300;
    position: relative;
    border-radius: 8px;
    margin: 2px 0;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-50%);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-nav-link:hover::after {
    height: 70%;
}

.mobile-nav-link:hover {
    @apply text-blue-600 bg-blue-50;
    transform: translateX(4px);
}

.mobile-nav-link.active {
    @apply text-blue-600 bg-blue-50 font-semibold;
}

.mobile-nav-link.active::after {
    height: 80%;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Service Cards */
.service-card {
    @apply bg-white rounded-xl shadow-lg overflow-hidden transform hover:scale-105 transition-all duration-300 border-2 border-gray-100;
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Buttons */
.btn-primary {
    @apply bg-gradient-to-r from-blue-600 to-purple-600 text-white px-6 py-3 rounded-lg font-semibold hover:shadow-lg transform hover:scale-105 transition duration-300;
}

.btn-secondary {
    @apply bg-white text-blue-600 border-2 border-blue-600 px-6 py-3 rounded-lg font-semibold hover:bg-blue-50 transition duration-300;
}

.btn-outline {
    @apply border-2 border-white text-white px-6 py-3 rounded-lg font-semibold hover:bg-white hover:text-blue-600 transition duration-300;
}

/* Form Styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition duration-300;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition duration-300 resize-none;
}

.form-select {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition duration-300;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.slide-in {
    animation: slideIn 0.6s ease-out forwards;
}

/* Hero Section */
.hero-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Progress Bars */
.progress-bar {
    @apply w-full bg-gray-200 rounded-full h-2;
}

.progress-fill {
    @apply bg-gradient-to-r from-blue-600 to-purple-600 h-2 rounded-full transition-all duration-1000 ease-out;
}

/* Testimonial Cards */
.testimonial-card {
    @apply bg-white p-6 rounded-xl shadow-lg transform hover:scale-105 transition duration-300;
}

/* Team Cards */
.team-card {
    @apply bg-white rounded-xl shadow-lg overflow-hidden transform hover:scale-105 transition duration-300;
}

.team-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Assessment Cards */
.assessment-card {
    @apply bg-white p-6 rounded-xl shadow-lg border-l-4 border-blue-600 hover:shadow-xl transition duration-300;
}

/* Booking Form */
.booking-form {
    @apply bg-white p-8 rounded-2xl shadow-xl;
}

/* Contact Info */
.contact-info-card {
    @apply bg-white p-6 rounded-xl shadow-lg transform hover:scale-105 transition duration-300;
}

/* Feature Cards */
.feature-card {
    @apply bg-gradient-to-br from-blue-50 to-purple-50 p-8 rounded-2xl text-center transform hover:scale-105 transition duration-300;
}

/* Loading Animation */
.loading {
    @apply inline-block animate-spin rounded-full h-4 w-4 border-b-2 border-white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.box-shadow {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Mobile Menu Animation */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Hover Effects */
.card-hover {
    @apply transition-all duration-300 hover:shadow-2xl hover:-translate-y-1;
}

/* Badge Styles */
.badge {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-medium;
}

.badge-primary {
    @apply bg-blue-100 text-blue-800;
}

.badge-secondary {
    @apply bg-purple-100 text-purple-800;
}

.badge-success {
    @apply bg-green-100 text-green-800;
}

.badge-warning {
    @apply bg-yellow-100 text-yellow-800;
}

.badge-danger {
    @apply bg-red-100 text-red-800;
}

/* Timeline Styles */
.timeline {
    @apply relative;
}

.timeline::before {
    content: '';
    @apply absolute left-1/2 top-0 bottom-0 w-0.5 bg-gradient-to-b from-blue-600 to-purple-600 transform -translate-x-1/2;
}

.timeline-item {
    @apply relative flex items-center mb-8;
}

.timeline-item:nth-child(odd) {
    @apply justify-end;
}

.timeline-content {
    @apply bg-white p-6 rounded-xl shadow-lg w-5/12;
}

.timeline-item:nth-child(odd) .timeline-content {
    @apply mr-8;
}

.timeline-item:nth-child(even) .timeline-content {
    @apply ml-8;
}

.timeline-dot {
    @apply absolute left-1/2 w-4 h-4 bg-blue-600 rounded-full border-4 border-white shadow-lg transform -translate-x-1/2;
}

/* Pricing Cards */
.pricing-card {
    @apply bg-white rounded-xl shadow-lg overflow-hidden transform hover:scale-105 transition duration-300;
}

.pricing-card.featured {
    @apply ring-2 ring-blue-600 transform scale-105;
}

.pricing-header {
    @apply bg-gradient-to-r from-blue-600 to-purple-600 text-white p-6 text-center;
}

.pricing-price {
    @apply text-4xl font-bold mb-2;
}

.pricing-features {
    @apply p-6;
}

/* FAQ Styles */
.faq-item {
    @apply bg-white rounded-xl shadow-lg mb-4 overflow-hidden;
}

.faq-question {
    @apply w-full text-left p-6 font-semibold flex justify-between items-center hover:bg-gray-50 transition duration-300;
}

.faq-answer {
    @apply p-6 border-t border-gray-200 text-gray-600;
}

/* Blog Cards */
.blog-card {
    @apply bg-white rounded-xl shadow-lg overflow-hidden transform hover:scale-105 transition duration-300;
}

.blog-image {
    @apply w-full h-48 object-cover;
}

.blog-content {
    @apply p-6;
}

.blog-meta {
    @apply flex items-center text-gray-500 text-sm mb-3;
}

/* Statistics Cards */
.stat-card {
    @apply bg-white p-6 rounded-xl shadow-lg text-center transform hover:scale-105 transition duration-300;
}

.stat-number {
    @apply text-3xl font-bold text-gradient mb-2;
}

/* Contact Form Styles */
.contact-form {
    @apply bg-white p-8 rounded-2xl shadow-xl;
}

.form-group {
    @apply mb-6;
}

.form-label {
    @apply block text-gray-700 font-semibold mb-2;
}

/* Success/Error Messages */
.alert {
    @apply p-4 rounded-lg mb-4;
}

.alert-success {
    @apply bg-green-100 border border-green-400 text-green-700;
}

.alert-error {
    @apply bg-red-100 border border-red-400 text-red-700;
}

.alert-info {
    @apply bg-blue-100 border border-blue-400 text-blue-700;
}

/* Responsive Grid */
.grid-responsive {
    @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6;
}

/* Image Hover Effects */
.img-hover {
    @apply transform hover:scale-110 transition duration-300;
}

/* Social Media Icons */
.social-icon {
    @apply w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center hover:bg-blue-600 hover:text-white transition duration-300;
}

/* Search Box */
.search-box {
    @apply relative;
}

.search-input {
    @apply w-full pl-10 pr-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent;
}

.search-icon {
    @apply absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400;
}

/* Pagination */
.pagination {
    @apply flex justify-center space-x-2;
}

.pagination-btn {
    @apply px-4 py-2 border border-gray-300 rounded-lg hover:bg-blue-600 hover:text-white transition duration-300;
}

.pagination-btn.active {
    @apply bg-blue-600 text-white border-blue-600;
}

/* Breadcrumb */
.breadcrumb {
    @apply flex items-center space-x-2 text-sm;
}

.breadcrumb-item {
    @apply text-gray-600 hover:text-blue-600 transition duration-300;
}

.breadcrumb-separator {
    @apply text-gray-400;
}

/* Tags */
.tag {
    @apply inline-block bg-blue-100 text-blue-800 px-3 py-1 rounded-full text-sm mr-2 mb-2;
}

/* Modal Styles */
.modal {
    @apply fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50;
}

.modal-content {
    @apply bg-white rounded-xl p-8 max-w-md w-full mx-4;
}

.modal-header {
    @apply flex justify-between items-center mb-6;
}

.modal-title {
    @apply text-2xl font-bold;
}

.modal-close {
    @apply text-gray-500 hover:text-gray-700;
}

/* Loading Spinner */
.spinner {
    @apply border-4 border-gray-200 border-t-blue-600 rounded-full w-8 h-8 animate-spin;
}

/* Tooltips */
.tooltip {
    @apply relative;
}

.tooltip-text {
    @apply absolute bottom-full left-1/2 transform -translate-x-1/2 bg-gray-800 text-white text-sm px-2 py-1 rounded opacity-0 pointer-events-none transition duration-300;
}

.tooltip:hover .tooltip-text {
    @apply opacity-100;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }
}