:root {
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --text-main: #2c3e50;
    --text-light: #95a5a6;
    --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background-image: var(--bg-gradient);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* 防止横向滚动 */
}

/* --- 导航栏 --- */
.navbar {
    padding: 20px 40px;
    background: transparent;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-dark) !important;
    display: flex;
    align-items: center;
}

.nav-btn {
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s;
}

.nav-btn:hover {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--primary-dark);
}

.navbar-logo-img {
    height: 40px; /* 控制 Logo 高度，根据需要调整 */
    width: auto; /* 宽度自动保持比例 */
    margin-right: 10px; /* Logo 和文字之间的间距 */
    object-fit: contain;
}

/* --- 中央内容区 --- */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    /* 手机端稍微往上提，避免键盘弹出遮挡 */
    margin-top: -40px;
    width: 100%;
}

.brand-logo-large {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: 0 10px 20px rgba(46, 204, 113, 0.2);
    animation: float 6s ease-in-out infinite;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.sub-title {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 300;
}

/* --- 搜索框组件 (核心优化部分) --- */
.search-wrapper {
    width: 100%;
    max-width: 680px;
    padding: 0 10px; /* 防止手机端贴边 */
}

.search-box {
    background: white;
    border-radius: 50px;
    /* 默认 PC 端内边距 */
    padding: 8px 8px 8px 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
}

.search-box:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.3);
}

.search-input {
    border: none;
    outline: none;
    flex-grow: 1;
    font-size: 1.1rem;
    color: var(--text-main);
    background: transparent;
    height: 50px;
    min-width: 0; /* Flex布局下防止溢出关键 */
}

.search-input::placeholder {
    color: #bdc3c7;
    font-weight: 300;
}

.search-btn-home {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 0 35px; /* 这里只设置左右padding */
    height: 50px; /* 强制高度与输入框一致 */
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
    white-space: nowrap; /* 防止文字换行 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn-home:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.search-btn-home:active {
    transform: scale(0.98);
}

/* --- 底部图标 --- */
.features {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    opacity: 0.8;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(46, 204, 113, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.feature-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}



@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* --- 手机端适配 (Max-width: 768px) --- */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    /* Logo 和标题缩小 */
    .brand-logo-large {
        font-size: 3.5rem;
        margin-bottom: 5px;
    }

    .main-title {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .sub-title {
        font-size: 0.9rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    /* 搜索框移动端深度优化 */
    .search-box {
        padding: 4px 4px 4px 15px; /* 减小内边距，给内容更多空间 */
    }

    .search-input {
        font-size: 16px; /* 关键：设置 16px 防止 iOS 输入时页面放大 */
        height: 48px; /* 保持舒适的触控高度 */
    }

    .search-btn-home {
        padding: 0 20px; /* 减小按钮左右边距 */
        height: 48px; /* 匹配输入框高度 */
        font-size: 1rem;
    }

    /* 特性图标间距缩小 */
    .features {
        gap: 15px;
        margin-top: 40px;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .feature-text {
        font-size: 0.75rem;
    }
}
