/* ===== 全局基础样式 ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #fff5f7;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #555;
    padding-bottom: env(safe-area-inset-bottom);
    overflow-x: hidden;
}

/* ===== 响应式布局容器 ===== */
.container {
    width: 100%;
    padding: 15px;
    max-width: 100%;
    margin: 0 auto;
}

/* ===== 恋爱主题标题 ===== */
.love-title {
    text-align: center;
    margin: 20px 0 25px;
    position: relative;
}

.love-title h1 {
    color: #ff6b8b;
    font-size: 1.8rem;
    font-weight: 600;
    display: inline-block;
    padding: 0 20px 10px;
    position: relative;
}

.love-title h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ffb6c1, #ff6b8b, #ffb6c1);
    border-radius: 3px;
}

/* ===== 恋爱风格卡片 ===== */
.love-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.1);
    border: 1px solid rgba(255, 182, 193, 0.3);
    overflow: hidden;
    transition: all 0.25s ease;
    position: relative;
}

.love-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #ff6b8b, #ff8e9e);
}

.love-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 105, 180, 0.15);
}

/* ===== 卡片内容 ===== */
.card-content {
    padding: 18px;
    text-align: center;
}

.card-title {
    font-size: 1.2rem;
    color: #ff6b8b;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    word-break: break-word;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.card-title a:hover {
    color: #ff4785;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===== 卡片元信息 ===== */
.card-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
    gap: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
}

.icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    fill: #ff6b8b;
}

/* ===== 空状态提示 ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    margin: 20px 0;
    background: rgba(255, 107, 136, 0.05);
    border-radius: 12px;
    border: 2px dashed rgba(255, 182, 193, 0.4);
}

.empty-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    fill: #ff6b8b;
    opacity: 0.7;
}

.empty-title {
    font-size: 1.2rem;
    color: #ff4785;
    margin-bottom: 8px;
}

/* ===== 响应式调整 ===== */
@media (min-width: 400px) {
    .container {
        padding: 20px;
    }
    
    .love-title h1 {
        font-size: 2rem;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-meta {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 700px;
        padding: 25px;
    }
    
    .love-card {
        margin-bottom: 20px;
    }
}

/* ===== 移动端特殊优化 ===== */
@media (max-width: 400px) {
    .love-title h1 {
        font-size: 1.6rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
}

/* ===== 安全区域适配 ===== */
@supports (padding: max(0px)) {
    body {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
}