:root {
    --primary: #4caf50; /* Material Green 500 */
    --primary-glow: rgba(76, 175, 80, 0.4);
    --secondary: #81c784; /* Material Green 300 */
    --accent: #2e7d32;
}

.findroid-theme {
    --bg-base: #f8fafc;
    font-family: 'Inter', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}



@media (prefers-color-scheme: dark) {
    .findroid-theme {
        --bg-base: #020617;
    }
}

.back-to-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s ease;
    opacity: 0.8;
}

.back-to-home:hover {
    color: var(--primary);
    opacity: 1;
}

.back-to-home svg {
    stroke-width: 3; /* 匹配语言切换器的箭头粗细 */
}

.hero-section {
    padding: 8rem 0 4rem;
}

.hero-text h1 {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.cta-actions {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.findroid-theme header {
    padding: 0 !important;
}

.coming-soon-badge {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.btn-disabled {
    background: var(--text-muted);
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.flow-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.flow-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--border-glass);
}

@media (max-width: 768px) {
    .flow-step:not(:last-child)::after {
        content: '↓';
        right: 50%;
        bottom: -1rem;
        top: auto;
        transform: translateX(50%);
    }
}

.scenario-card {
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: var(--bg-glass);
    border-radius: 0 16px 16px 0;
}

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

.faq-item {
    margin-bottom: 2.5rem;
}

.faq-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

/* Nav specific */
.nav-left a:hover {
    color: var(--primary) !important;
}

/* Carousel Styles - Aligned with MakersPreview */
.hero-mockup {
    z-index: 1;
    position: relative;
    padding: 2rem 2rem 6rem;
}

.hero-mockup .carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    overflow: visible !important; /* Critical: allow buttons to be visible outside */
    background: transparent !important;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border: 1px solid var(--border-glass);
    background: var(--bg-surface);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1) !important;
}

.screenshot-item {
    flex: 0 0 100%;
    aspect-ratio: 8 / 5; /* Precisely match image ratio 1280:800 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0; /* Let wrapper handle radius */
    box-shadow: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: var(--primary);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev { left: -28px; }
.carousel-btn-next { right: -28px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background: var(--border-glass);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    width: 32px;
    background: var(--primary);
}

@media (max-width: 768px) {
    .carousel-btn { width: 44px; height: 44px; }
    .carousel-btn-prev { left: 10px; }
    .carousel-btn-next { right: 10px; }
    .carousel-btn-prev, .carousel-btn-next {
        transform: translateY(-50%);
    }
    .hero-mockup { padding: 2rem 1rem 4rem; }
    .hero-section { padding-top: 10rem; }
    .app-icon-large { width: 120px; height: 120px; }
    .hero-text h1 { font-size: 2.5rem; }
}

/* Optimization for extremely narrow screens */
@media (max-width: 480px) {
    .carousel-btn { 
        width: 36px; 
        height: 36px;
        background: rgba(255, 255, 255, 0.9); /* Increase visibility on small screens */
    }
    .carousel-btn svg { width: 18px; height: 18px; }
    .carousel-btn-prev { left: 5px; }
    .carousel-btn-next { right: 5px; }
    .carousel-dots { margin-top: 1.5rem; gap: 8px; }
    .carousel-dot { width: 8px; height: 8px; }
    .carousel-dot.active { width: 24px; }
}

/* App Store Button Styles */
.btn-view-appstore {
    display: inline-flex;
    align-items: center;
    background: var(--secondary); /* 使用较浅的绿色作为初始状态 */
    color: white !important;
    padding: 6px 14px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: background 0.3s ease;
    box-shadow: 0 4px 10px var(--primary-glow);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.btn-view-appstore:hover {
    background: var(--primary); /* 悬停时加深 */
}

.btn-view-appstore:active {
    background: var(--accent); /* 点击时最深 */
}

/* Language Selector Styles */
.hero-top-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 1001;
    position: relative;
    top: auto;
    right: auto;
}

.guide-dropdown {
    position: relative;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.guide-current, .region-current {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
    color: var(--text-muted);
}

.guide-current:hover, .region-current:hover {
    background: none !important;
    color: var(--primary);
}

.region-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: max-content;
    max-height: 500px; /* 调大高度以容纳所有语种 */
    overflow-y: auto;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

/* Custom Scrollbar for Long Language List */
.region-options::-webkit-scrollbar {
    width: 4px;
}

.region-options::-webkit-scrollbar-track {
    background: transparent;
}

.region-options::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

@media (prefers-color-scheme: dark) {
    .region-options::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.1);
    }
}

.region-dropdown.open .region-options,
.guide-dropdown.open .guide-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.region-option, .guide-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem; /* 稍微缩小间距使列表更紧凑 */
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.region-option:hover, .guide-option:hover {
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary);
}

.region-option.active {
    color: var(--primary);
    font-weight: 600;
}

