/* ===== 首页专用样式 ===== */
body {
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 18vh;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 80px;
    color: var(--text-primary);
    letter-spacing: 1px;
    width: 100%;
}

/* 搜索框容器 - 相对定位 */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-bottom: 100px;
}

/* 搜索框 */
.search-box {
    width: 100%;
    padding: 18px 28px;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 40px;
    outline: none;
    background: var(--white);
    color: var(--text-primary);
    transition: all 0.2s;
    box-sizing: border-box;
    padding-right: 60px;  /* 给右边按钮留空间 */
}

.search-box:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(128,128,128,0.15);
}

.search-box::placeholder {
    color: var(--text-light);
}

/* 搜索按钮 - 放在搜索框里面右边 */
.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 40px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.search-btn:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
}

.all-posts-btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    margin-top: 30px;
}

.all-posts-btn:hover {
    background: var(--hover-bg);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.footer {
    margin-top: 120px;
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}