:root {
    /* Palette updated to Pink/Magenta theme */
    --primary-color: #e91e63; 
    --primary-hover: #c2185b;
    --primary-light: #fce4ec; /* Very light pink for backgrounds */
    --accent-color: #f97316; /* Orange for badges/highlights */
    
    --text-dark: #1e293b; /* Slate 800 */
    --text-gray: #64748b; /* Slate 500 */
    
    --bg-body: #fff5f8; /* Light Pinkish background */
    --bg-white: #ffffff;
    --bg-footer: #1a0910; /* Very Dark Deep Pink/Black */
    
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    
    --shadow-card: 0 10px 30px -5px rgba(233, 30, 99, 0.05);
    --shadow-hover: 0 20px 40px -5px rgba(233, 30, 99, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f8fafc;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }

/* Header / Navbar */
header {
    padding: 20px 0;
    background: white; /* Transparent to blend with hero gradient */
    position: relative;
    z-index: 4000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 5px 0;
}

.logo-svg {
    /* 增加一个非常淡的投影，让切割感更立体 */
    filter: drop-shadow(0 2px 4px rgba(233, 30, 99, 0.05));
}

.nav-links {
    display: flex;
    gap: 40px;
    font-size: 15px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 30px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
    margin-right: 16px;
}

.nav-links a {
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.lang-selector-wrapper {
    position: relative;
    z-index: 5000;
}

.lang-selector {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-dark);
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    user-select: none;
}

.lang-selector:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.lang-selector .fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.lang-selector-wrapper.active .lang-selector .fa-chevron-down {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 160px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 5001;
    padding: 4px 0;
    margin: 0;
    list-style: none;
}

.lang-selector-wrapper.active .lang-dropdown {
    max-height: 800px;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
}

.lang-dropdown li {
    margin: 0;
    padding: 0;
}

.lang-dropdown .lang-option {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lang-dropdown .lang-option:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.lang-dropdown .lang-option.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: 30px 0 80px;
    text-align: center;
    position: relative;
    background-color: white;
}

.badge {
    display: inline-flex;
    align-items: center;
    background-color: #fff7ed; /* Light Orange bg */
    border: 1px solid #ffedd5;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(249, 115, 22, 0.1);
}

.badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 8px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(90deg, var(--text-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
    width: fit-content;
    margin: 0 auto 24px; /* 确保在容器中居中并换行 */
}

.hero p {
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 24px;
    max-width: 800px; /* 增加最大宽度以支持单行显示 */
    margin-left: auto;
    margin-right: auto;
}

/* Hero Tool Panel (Mimicking the reference card style) */
.tool-panel {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 10px;
    box-shadow: 0 20px 10px -10px rgba(59, 130, 246, 0.10);
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
}

/* Decorative elements behind tool panel */
.tool-panel::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.search-container {
    background: white;
    border-radius: 20px;
    padding: 10px;
    display: flex;
    align-items: center;
    border: 2px solid var(--primary-color); /* 与移动端一致的强力边框 */
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.05);
}

.search-container:focus-within {
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.12);
    transform: translateY(-2px);
}

.search-icon {
    padding-left: 20px;
    color: var(--primary-color);
    font-size: 20px;
}

.search-input {
    flex: 1;
    border: none;
    padding: 8px 16px;
    font-size: 18px;
    outline: none;
    color: var(--text-dark);
    background: transparent;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Social Icons Row (like reference) */
.hero-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.hero-social-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-size: 18px;
    transition: transform 0.2s;
}

.hero-social-icon:hover {
    transform: translateY(-3px);
    color: var(--primary-color);
}

.hero-footer-text {
    margin-top: 20px;
    font-size: 13px;
    color: #94a3b8;
}

.hero-footer-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Description Section - Beautified */
.description {
    padding: 80px 0;
    text-align: center;
    background-color: #f8fafc;
    position: relative;
}

.description .container {
    max-width: 1000px;
}

.description p {
    color: var(--text-gray);
    font-size: 17px;
    margin-bottom: 24px;
    line-height: 1.9;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* How to Download Section - Imaginative Version */
.how-to {
    padding: 80px 0;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.how-to-container {
    position: relative;
    z-index: 2;
}

/* Unified Section Header Styling */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 8px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1px;
    position: relative;
    padding-bottom: 25px;
}

/* Decorative gradient line under title */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
}

/* 3D Grid Setup */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    perspective: 1200px; /* Essential for 3D */
}

.step-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    padding: 60px 40px;
    border-radius: 40px;
    border: 1px solid #fce4ec; /* 更加明显的常态边框 */
    text-align: center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card:hover {
    transform: translateY(-20px) rotateX(10deg) rotateY(-5deg);
    box-shadow: 0 40px 80px rgba(59, 130, 246, 0.15);
    border-color: var(--primary-color);
    background: white;
}

.step-icon-wrapper {
    position: relative;
    margin-bottom: 40px;
    transform: translateZ(50px); /* Makes the icon pop out */
}

.step-icon-visual {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: var(--primary-color);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.5s ease;
}

.step-card:hover .step-icon-visual {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 25px 45px rgba(59, 130, 246, 0.35);
    transform: scale(1.1) rotate(8deg);
}

.step-number-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 44px;
    height: 44px;
    background: var(--text-dark);
    color: white;
    font-size: 18px;
    font-weight: 800;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.5s;
}

.step-card:hover .step-number-badge {
    background: var(--accent-color);
    transform: scale(1.2) rotate(15deg);
}

.step-content {
    transform: translateZ(30px); /* Text also pops slightly */
}

.step-content h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-dark);
    background: linear-gradient(90deg, var(--text-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-content p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 260px;
}

/* Animated Progress Flow Line (Desktop) */
@media (min-width: 992px) {
    .steps-grid::before {
        content: '';
        position: absolute;
        top: 45%;
        left: 10%;
        right: 10%;
        height: 4px;
        background: repeating-linear-gradient(90deg, 
            #e2e8f0, #e2e8f0 10px, 
            transparent 10px, transparent 20px);
        z-index: -1;
        opacity: 0.6;
        animation: flowLine 20s linear infinite;
    }
}

@keyframes flowLine {
    from { background-position: 0 0; }
    to { background-position: 400px 0; }
}

@media (max-width: 991px) {
    .steps-grid { grid-template-columns: 1fr; gap: 40px; }
    .step-card { max-width: 400px; margin: 0 auto; }
}

/* Features Section - Imaginative Bento Style */
.features {
    padding: 80px 0;
    background-color: #f8fafc;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.feature-card {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 40px;
    border: 1px solid #e2e8f0; /* 回归标准浅灰色边框 */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05); /* 换成极淡的黑色投影 */
}

/* Staggered effect for cards */
.feature-card:nth-child(even) {
    margin-top: 40px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 30px;
    transition: all 0.5s;
    position: relative;
    z-index: 2;
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* 换成标准阴影 */
}

.feature-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1); /* 悬停也使用中性阴影 */
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
    transition: color 0.3s;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* Response for small screens */
@media (max-width: 991px) {
    .features-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .feature-card:nth-child(even) { margin-top: 0; }
}

/* CTA Section - Simple & Clean Version */
.cta-section {
    padding: 80px 0;
    position: relative;
    margin: 40px 0;
    border-radius: 40px;
    background-color: #ffffff;
    color: var(--text-dark);
    text-align: center;
    border: 1px solid #e2e8f0; /* 回归标准浅灰色边框 */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04); /* 使用中性阴影 */
}

.cta-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
}

.cta-icon-top {
    width: 64px;
    height: 64px;
    background: #f8fafc; /* 使用更中性的背景 */
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 24px;
    border: 1px solid #e2e8f0;
}

.cta-section h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--text-dark);
}

.cta-section p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 32px;
    font-size: 17px;
    line-height: 1.6;
}

.cta-btn {
    background: var(--primary-color);
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.cta-btn:hover {
    background: var(--primary-hover);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: #f8fafc;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius-md);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.08);
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
}

.faq-icon {
    color: #94a3b8;
    font-size: 14px;
    transition: all 0.3s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
}

.faq-item.active .faq-icon {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-gray);
    font-size: 15px;
    display: none;
    line-height: 1.7;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    display: block;
    border-top-color: #f1f5f9;
    padding-top: 20px;
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

/* Footer */
footer {
    padding: 60px 0 30px;
    background: var(--bg-footer);
    color: #94a3b8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.footer-brand h3 i {
    color: var(--primary-color);
}

.footer-brand p {
    font-size: 14px;
    margin-bottom: 30px;
    max-width: 280px;
    line-height: 1.7;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-col h4 {
    padding-left: 2rem;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: white;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #64748b;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero h1 { font-size: 42px; }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 16px 16px;
    padding: 20px 24px;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.mobile-nav.active {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .container { padding: 0 10px; } /* 进一步减小容器边距 */
    .nav-links { display: none; } 
    .mobile-menu-toggle { display: flex; }
    .header-right { gap: 12px; }
    .hero { padding: 40px 0 50px; }
    .hero h1 { font-size: 26px; letter-spacing: -1px; } /* 稍微调小字号防止溢出 */
    .hero p { font-size: 16px; }
    .description { padding: 40px 0; }
    .description p { font-size: 15px; }
    .how-to { padding: 40px 0; }
    .features { padding: 40px 0; }
    .cta-section { padding: 40px 0; margin: 20px 0; border-radius: 0; }
    .cta-section h2 { font-size: 24px; }
    .cta-section p { font-size: 15px; }
    .faq { padding: 40px 0; }
    .section-header { margin-bottom: 40px; }
    .steps-grid { gap: 30px; }
    .step-card { padding: 40px 30px; }
    .features-grid { gap: 24px; }
    .feature-card { padding: 40px 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .tool-panel { padding: 0; background: transparent; box-shadow: none; border: none; width: 100%; }
    .tool-panel::before { display: none; }
    .search-container { 
        flex-direction: column; 
        padding: 12px; 
        gap: 12px; 
        background: white; 
        box-shadow: 0 10px 25px rgba(233, 30, 99, 0.08);
        border: 1px solid #fce4ec;
        border-radius: 24px;
        width: 100%;
    }
    .search-btn { 
        width: 100%; 
        justify-content: center; 
        padding: 18px; 
        border-radius: 16px; 
        font-size: 16px; 
        font-weight: 800;
    }
    .search-icon { display: none; }
    .search-input { 
        text-align: left; 
        padding: 18px 18px 18px 18px; 
        width: 100%; 
        font-size: 15px; 
        background: #ffffff;
        border: 2px solid var(--primary-color); 
        border-radius: 16px;
        margin-bottom: 4px;
        box-shadow: none;
        animation: none;
    }
    .section-title { font-size: 28px; }
    .mobile-nav { 
        display: flex; 
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 0;
    }
    .mobile-nav a { font-size: 15px; }
    header {
        padding: 15px 0;
    }
}

/* Bootstrap compatibility */
.navbar {
    background: transparent !important;
    box-shadow: none !important;
}

.btn-download {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
}

.form-control {
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 18px 24px;
    font-size: 18px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25);
}

/* Loading and result styles */
#loading_img {
    margin: 20px auto;
}

#result-wait {
    margin-top: 30px;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e2e8f0;
    margin-top: 20px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

#result {
    margin-top: 30px;
}

#captchaContainer {
    margin-top: 20px;
}

/* Modal styles */
.modal-content {
    border-radius: var(--border-radius-md);
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

/* 修复关闭按钮样式 */
.btn-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1050;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
    background-color: transparent;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
    cursor: pointer;
    width: 1em;
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    opacity: 1;
}

.btn-close:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
    opacity: 1;
}

/* 关闭按钮的 X 图标 */
.btn-close::before {
    content: "×";
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
}

.btn-close:hover::before {
    color: #000;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
}

.btn-success {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-success:hover {
    background: var(--primary-hover);
}

/* Search form and clear button styles */
#result #download-app div:first-of-type {
    display: flex;
    justify-content: center;
    align-items: center;
}
.ifly-card .ifly-text .ifly-btn{
    width: 90% !important;
}
#search-form {
    position: relative;
    z-index: 1000;
}
#search-form #suggestion-list {
    position: absolute;
    z-index: 3000 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    background: #fff;
    border: 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
#search-form #suggestion-list table {
    width: 100%;
}
#search-form #suggestion-list td {
    padding: 10px 16px;
    cursor: pointer;
}
#search-form #clear-btn{
    position: absolute;
    right: 200px; /* 位于按钮左侧，考虑按钮宽度(padding 14px 36px + 文字)约140px + 间距40px */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-gray);
    z-index: 10;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#search-form #clear-btn:hover {
    color: var(--primary-color);
    background: rgba(233, 30, 99, 0.1);
}
/* 移动端响应式调整 - 在移动端，clear-btn 应该放在 input 内部右侧 */
@media (max-width: 768px) {
    /* 移动端 search-container 需要相对定位，作为 clear-btn 的定位参考 */
    .search-container {
        position: relative;
    }
    /* 移动端输入框需要右侧padding以避免与clear-btn重叠 */
    .search-input {
        padding-right: 50px !important;
    }
    /* clear-btn 定位在 input 内部右侧 */
    /* right 计算：search-container padding(12px) + input border(2px) + 内部间距(10px) = 24px */
    /* top 计算：search-container padding(12px) + input padding-top(18px) + input 高度的一半(约18px) - 按钮高度的一半(14px) = 约34px */
    #search-form #clear-btn {
        right: 24px;
        top: 34px;
        transform: none;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        width: 28px;
        height: 28px;
        z-index: 15;
    }
    #search-form #suggestion-list {
        top: calc(100% + 2px) !important;
        border-radius: 16px;
    }
}
#result #download-app{
    background-color: unset!important;
}

/* 表格内的按钮优化 - 更小的尺寸 */
#result .table .btn,
#result .table .btn-success {
    padding: 8px 18px;
    line-height: 1.4;
}

#result .table .btn svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}
#pills-tab .active{
    background-color: #e91e63;
    color: #fff;
}

/* 优化 download-app 显示 */
#download-app {
    padding-bottom: 10px !important;
}

#download-app .row {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

#download-app .col-md-6 {
    text-align: center !important;
}

#download-app .col-md-6 h2 {
    text-align: start !important;
    margin-bottom: 0px !important;
}

#download-app .col-md-6 p {
    text-align: start !important;
    margin-bottom: 0 !important;
}
.search-info>a{
    display: block;
    font-size: 13px;
    font-weight: 500;
    height: 43px;
    line-height: 19px;
    overflow: hidden;
    padding-top: 5px;
    text-align: left;
    text-decoration: none;
    text-overflow: ellipsis
}
.modal-dialog{
    top:200px;
}