/**
 * Coloring Print Design System
 * 统一样式文件 - 所有页面共用
 * 配合 Tailwind CSS 使用
 */

/* ==================== Missing Tailwind Color Classes ==================== */
/* Text Colors */
.text-orange-300 { color: #fdba74 !important; }
.text-orange-400 { color: #fb923c !important; }
.text-pink-300 { color: #f9a8d4 !important; }
.text-pink-400 { color: #f472b6 !important; }
.text-amber-300 { color: #fcd34d !important; }
.text-amber-400 { color: #fbbf24 !important; }
.text-fuchsia-400 { color: #e879f9 !important; }
.text-green-400 { color: #4ade80 !important; }
.text-sky-400 { color: #38bdf8 !important; }
/* Background Colors */
.bg-orange-500\/20 { background-color: rgba(249, 115, 22, 0.2) !important; }
.bg-pink-500\/20 { background-color: rgba(236, 72, 153, 0.2) !important; }
.bg-amber-500\/20 { background-color: rgba(245, 158, 11, 0.2) !important; }
.bg-fuchsia-500\/20 { background-color: rgba(217, 70, 239, 0.2) !important; }
.bg-green-500\/20 { background-color: rgba(34, 197, 94, 0.2) !important; }
/* Border Colors */
.border-orange-500\/30 { border-color: rgba(249, 115, 22, 0.3) !important; }
.border-pink-500\/30 { border-color: rgba(236, 72, 153, 0.3) !important; }
.border-amber-500\/30 { border-color: rgba(245, 158, 11, 0.3) !important; }
.border-fuchsia-400\/30 { border-color: rgba(232, 121, 249, 0.3) !important; }
.border-green-400\/30 { border-color: rgba(74, 222, 128, 0.3) !important; }
.border-pink-400\/30 { border-color: rgba(244, 114, 182, 0.3) !important; }

/* ==================== Reset & Base ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', system-ui, sans-serif; 
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==================== Custom Scrollbar ==================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); }
::-webkit-scrollbar-thumb { background: rgba(253, 145, 105, 0.5); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(253, 145, 105, 0.7); }

/* ==================== Glass Morphism ==================== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==================== Lucide Icon Color Fix ==================== */
/* Lucide icons - force color inheritance */
[data-lucide],
.lucide,
svg.lucide {
    color: inherit;
    stroke: currentColor !important;
}
/* Force specific colors for Lucide icons */
.text-orange-400 > svg, svg.text-orange-400, .text-orange-400.lucide { stroke: #fb923c !important; color: #fb923c !important; }
.text-pink-400 > svg, svg.text-pink-400, .text-pink-400.lucide { stroke: #f472b6 !important; color: #f472b6 !important; }
.text-fuchsia-400 > svg, svg.text-fuchsia-400, .text-fuchsia-400.lucide { stroke: #e879f9 !important; color: #e879f9 !important; }
.text-orange-300 > svg, svg.text-orange-300, .text-orange-300.lucide { stroke: #fdba74 !important; color: #fdba74 !important; }
.text-pink-300 > svg, svg.text-pink-300, .text-pink-300.lucide { stroke: #f9a8d4 !important; color: #f9a8d4 !important; }
.text-amber-300 > svg, svg.text-amber-300, .text-amber-300.lucide { stroke: #fcd34d !important; color: #fcd34d !important; }
.text-amber-400 > svg, svg.text-amber-400, .text-amber-400.lucide { stroke: #fbbf24 !important; color: #fbbf24 !important; }
.text-green-400 > svg, svg.text-green-400, .text-green-400.lucide { stroke: #4ade80 !important; color: #4ade80 !important; }
.text-sky-400 > svg, svg.text-sky-400, .text-sky-400.lucide { stroke: #38bdf8 !important; color: #38bdf8 !important; }
.text-white > svg, svg.text-white, .text-white.lucide { stroke: #ffffff !important; color: #ffffff !important; }
.text-gray-600 > svg, svg.text-gray-600, .text-gray-600.lucide { stroke: #4b5563 !important; color: #4b5563 !important; }
/* Parent div with text color class */
div.text-orange-400 svg { stroke: #fb923c !important; }

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== Gradient Text ==================== */
.gradient-text {
    background: linear-gradient(to right, #FD9169, #0B95E3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
    padding-bottom: 0.1em;
    display: inline-block;
}
/* Section title gradient - keeps block display */
.gradient-text-block {
    background: linear-gradient(to right, #FD9169, #0B95E3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
    padding-bottom: 0.1em;
    display: block;
}
.gradient-text-logo {
    background: linear-gradient(to right, #FD9169, #0B95E3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-alt {
    background: linear-gradient(to right, #0B95E3, #FD9169);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== Gradient Buttons ==================== */
.btn-gradient {
    background: linear-gradient(to right, #FD9169, #0B95E3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-gradient:hover {
    background: linear-gradient(to right, #E57A4D, #0A7EC5);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(253, 145, 105, 0.3);
}
.btn-gradient:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Secondary button */
.btn-secondary {
    background: transparent;
    border: 1px solid rgba(253, 145, 105, 0.5);
    color: #FD9169;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-secondary:hover {
    background: rgba(253, 145, 105, 0.1);
    border-color: #FD9169;
}

/* ==================== Card Styles ==================== */
.card-hover { transition: all 0.3s ease; }
.card-hover:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* ==================== Floating Animations ==================== */
@keyframes floatA {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes floatB {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes floatC {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes floatD {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes buttonFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        box-shadow: 0 4px 20px rgba(253, 145, 105, 0.2); 
    }
    50% { 
        transform: translateY(-8px) scale(1.02); 
        box-shadow: 0 12px 30px rgba(253, 145, 105, 0.4); 
    }
}

.hero-float {
    animation: float 4s ease-in-out infinite;
}
.hero-float-slow {
    animation: floatSlow 5s ease-in-out infinite;
}
.hero-buttons-float {
    animation: floatSlow 4.5s ease-in-out infinite;
}
.btn-explore-float {
    animation: buttonFloat 3s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-explore-float:hover {
    animation-play-state: paused;
}

/* Floating card animation - pseudo-random via prime-number nth-child */
.floating-card {
    animation: floatA 4s ease-in-out infinite;
    will-change: transform;
}

/* Different keyframes (mod 4) */
.floating-card:nth-child(4n+1) { animation-name: floatA; }
.floating-card:nth-child(4n+2) { animation-name: floatB; }
.floating-card:nth-child(4n+3) { animation-name: floatC; }
.floating-card:nth-child(4n)   { animation-name: floatD; }

/* Different durations (mod 7) */
.floating-card:nth-child(7n+1) { animation-duration: 3.8s; }
.floating-card:nth-child(7n+2) { animation-duration: 4.6s; }
.floating-card:nth-child(7n+3) { animation-duration: 5.2s; }
.floating-card:nth-child(7n+4) { animation-duration: 3.4s; }
.floating-card:nth-child(7n+5) { animation-duration: 4.1s; }
.floating-card:nth-child(7n+6) { animation-duration: 5.7s; }
.floating-card:nth-child(7n)   { animation-duration: 4.9s; }

/* Different delays (mod 11) */
.floating-card:nth-child(11n+1)  { animation-delay: 0s; }
.floating-card:nth-child(11n+2)  { animation-delay: 0.7s; }
.floating-card:nth-child(11n+3)  { animation-delay: 1.8s; }
.floating-card:nth-child(11n+4)  { animation-delay: 0.3s; }
.floating-card:nth-child(11n+5)  { animation-delay: 2.4s; }
.floating-card:nth-child(11n+6)  { animation-delay: 1.1s; }
.floating-card:nth-child(11n+7)  { animation-delay: 3.2s; }
.floating-card:nth-child(11n+8)  { animation-delay: 0.5s; }
.floating-card:nth-child(11n+9)  { animation-delay: 2.8s; }
.floating-card:nth-child(11n+10) { animation-delay: 1.5s; }
.floating-card:nth-child(11n)    { animation-delay: 2.1s; }

/* Section title floating animation */
.section-title-float {
    animation: floatSlow 6s ease-in-out infinite;
}
.section-subtitle-float {
    animation: floatSlow 6s ease-in-out infinite;
    animation-delay: 0.3s;
}

/* ==================== Three.js Canvas ==================== */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==================== Comparison Slider ==================== */
.comparison-container {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(253, 145, 105, 0.3);
    background: #1e1b4b;
    user-select: none;
    -webkit-user-select: none;
}
.comparison-container.fluid {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
}
.comparison-after, .comparison-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.comparison-before { clip-path: inset(0 50% 0 0); }
.comparison-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(135deg, #FD9169, #0B95E3);
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 10;
}
.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #FD9169, #0B95E3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(253, 145, 105, 0.4);
}

/* ==================== Inspiration Grid ==================== */
.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.inspiration-card {
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.inspiration-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.inspiration-card:hover img { transform: scale(1.1); }
.inspiration-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 12px;
}
.inspiration-card:hover .inspiration-overlay { opacity: 1; }

/* ==================== Loading States ==================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #FD9169;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.loading-spinner.sm {
    width: 24px;
    height: 24px;
    border-width: 2px;
}

/* Progress bar */
.progress-bar-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #FD9169, #0B95E3);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ==================== Breadcrumb ==================== */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(156, 163, 175, 1);
}
.breadcrumb-nav a {
    color: rgba(156, 163, 175, 1);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-nav a:hover {
    color: #fff;
}
.breadcrumb-nav .breadcrumb-current {
    color: #FD9169;
}

/* ==================== Upload Area ==================== */
.upload-area {
    border: 2px dashed rgba(253, 145, 105, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.upload-area:hover,
.upload-area.drag-over {
    border-color: rgba(253, 145, 105, 0.6);
    background: rgba(253, 145, 105, 0.1);
}

/* ==================== Style Options ==================== */
.style-option {
    cursor: pointer;
    transition: all 0.3s ease;
}
.style-option.active {
    border-color: #FD9169;
    background: rgba(253, 145, 105, 0.2);
    box-shadow: 0 0 0 2px #FD9169;
}

/* ==================== Badge ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: inherit;
}
.badge-purple {
    background: rgba(253, 145, 105, 0.2);
    color: #FD9169;
    border: 1px solid rgba(253, 145, 105, 0.3);
}
.badge-pink {
    background: rgba(11, 149, 227, 0.2);
    color: #0B95E3;
    border: 1px solid rgba(11, 149, 227, 0.3);
}
.badge-violet {
    background: rgba(101, 40, 141, 0.2);
    color: #65288D;
    border: 1px solid rgba(101, 40, 141, 0.3);
}
.badge-green {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ==================== Pagination ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.pagination .page-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #d1d5db;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pagination .page-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.pagination .page-btn.active {
    background: linear-gradient(to right, #FD9169, #0B95E3);
    color: #fff;
}
.pagination .page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==================== Mobile Menu ==================== */
.mobile-menu { display: none; }
.mobile-menu.active { display: block; }

/* ==================== Form Inputs ==================== */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.input-field:focus {
    outline: none;
    border-color: #FD9169;
    background: rgba(255, 255, 255, 0.08);
}
.input-field::placeholder {
    color: rgba(156, 163, 175, 0.6);
}

/* Textarea */
.textarea-field {
    resize: vertical;
    min-height: 120px;
}

/* ==================== Masonry Grid ==================== */
.masonry-grid {
    columns: 5;
    column-gap: 16px;
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
}

/* ==================== Responsive Breakpoints ==================== */
@media (max-width: 1280px) {
    .masonry-grid { columns: 4; }
}
@media (max-width: 1024px) {
    .inspiration-grid { grid-template-columns: repeat(4, 1fr); }
    .masonry-grid { columns: 3; }
}
@media (max-width: 768px) {
    .comparison-container {
        width: 280px;
        height: 280px;
    }
    .inspiration-grid { grid-template-columns: repeat(2, 1fr); }
    .masonry-grid { columns: 2; }
    .audience-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .faq-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
    .inspiration-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 8px; 
    }
    .masonry-grid { columns: 2; column-gap: 8px; }
    .masonry-item { margin-bottom: 8px; }
}

/* ==================== Login Page Specific ==================== */
.login-container {
    width: 100%;
    max-width: 440px;
}
.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(253, 145, 105, 0.2);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
}
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}
.login-logo img {
    width: 56px;
    height: 56px;
}
.login-logo span {
    font-size: 1.75rem;
    font-weight: 700;
}
.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}
.login-subtitle {
    color: rgba(156, 163, 175, 1);
    margin-bottom: 32px;
}
.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: rgba(156, 163, 175, 0.5);
    font-size: 0.875rem;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}
.google-btn {
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
}
.google-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.google-btn svg {
    width: 20px;
    height: 20px;
}
.login-terms {
    margin-top: 24px;
    font-size: 0.75rem;
    color: rgba(156, 163, 175, 0.6);
}
.login-terms a {
    color: #FD9169;
    text-decoration: none;
}
.login-terms a:hover {
    text-decoration: underline;
}

/* ==================== Legal Pages (Terms, Privacy, FAQs, Cookies) ==================== */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}
.legal-header {
    text-align: center;
    margin-bottom: 48px;
}
.legal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.legal-subtitle {
    color: rgba(156, 163, 175, 1);
}
.legal-content {
    color: rgba(209, 213, 219, 1);
    line-height: 1.8;
}
.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 32px 0 16px;
}
.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 24px 0 12px;
}
.legal-content p {
    margin-bottom: 16px;
}
.legal-content ul, .legal-content ol {
    margin: 16px 0;
    padding-left: 24px;
}
.legal-content li {
    margin-bottom: 8px;
}
.legal-content a {
    color: #FD9169;
    text-decoration: none;
}
.legal-content a:hover {
    text-decoration: underline;
}

/* FAQ Accordion */
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    color: #fff;
    font-weight: 500;
    transition: background 0.3s ease;
}
.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}
.faq-answer {
    padding: 0 24px 20px;
    color: rgba(209, 213, 219, 1);
    display: none;
}
.faq-item.active .faq-answer {
    display: block;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ==================== Settings Page ==================== */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}
.settings-header {
    margin-bottom: 32px;
}
.settings-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}
.settings-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.settings-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.settings-row:last-child {
    border-bottom: none;
}
.settings-label {
    color: rgba(209, 213, 219, 1);
}
.settings-value {
    color: #fff;
    font-weight: 500;
}
