:root {
    --primary-color: #1d1d1f;
    --accent-color: #0071e3;
    --light-accent: #424245;
    --text-color: #1d1d1f;
    --light-text: #86868b;
    --background: #f5f5f7;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}



/* 头部样式 - 响应式间距 */
header {
    text-align: center;
    padding: 5rem 0 3rem;
    /* PC端更广阔的间距 */
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}

.header-content {
    width: max-content;
    max-width: calc(100vw - 2rem);
    margin: 0 auto 2rem;
    padding: 0;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.logo {
    width: 214px;
    height: 214px;
    margin-bottom: 0;
    background: transparent;
    border-radius: 22px;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.logo:hover {
    transform: scale(1.02);
}

.subtitle {
    font-size: clamp(2.45rem, 5vw, 3rem);
    color: #2f2f33;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.01em;
    width: 214px;
    display: block;
    white-space: nowrap;
    text-align: center;
    line-height: 1.12;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .header-content {
        width: min(214px, calc(100vw - 1.5rem));
    }

    .logo {
        width: 188px;
        height: 188px;
        border-radius: 20px;
    }

    .subtitle {
        width: 188px;
        font-size: clamp(2.2rem, 9vw, 2.65rem);
    }
}

/* 容器响应式间距 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem 5rem;
}

/* 功能卡片网格 - 响应式布局 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 1.5rem;
}

/* 卡片设计 */
.feature-card {
    background: var(--card-bg) !important;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #e6e6e8;
    border-top: 4px solid transparent;
    overflow: hidden;
    position: relative;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-top: 4px solid var(--accent-color);
    border-color: #dddddf;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h2,
.feature-card h3 {
    font-weight: 600;
    font-size: 1.5rem;
    color: #1d1d1f;
    position: relative;
    padding-bottom: 0.8rem;
    /* 减小底部内边距 */
    margin-bottom: 1rem;
    /* 减小底部外边距 */
}

.feature-card h2::after,
.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: #1d1d1f;
    border-radius: 2px;
}

/* 重写手机图片样式，使用更具体的选择器 */
.features .feature-card .phone-mockup {
    display: block;
    margin: 0.3rem auto 0.5rem auto !important;  /* 减小顶部间距 */
    padding: 0;
    width: auto;
    background: none;
}

.features .feature-card .phone-mockup img {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
    margin: 0 auto;
    background: none;
    box-shadow: none;
    filter: none;
}

/* PC端显示更大的图片 */
@media (min-width: 1200px) {
    .features .feature-card .phone-mockup img {
        max-width: 320px !important;
        /* PC端显示更大的图片 */
    }

    .features .feature-card .phone-mockup {
        margin: 1.5rem auto 2.5rem auto !important;
        /* PC端适当增加间距 */
    }
}

/* 保持其他样式不变 */
.features .feature-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.features .feature-card>*,
.features .feature-card>div>* {
    background: none !important;
    box-shadow: none !important;
    filter: none !important;
}

/* 确保应用截图也遵循同样规则 */
.app-screenshot {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

/* 图片本身的样式 */
/* 统一图片样式 - 以第一张智能衣物管理图片为基准 */
.feature-image {
    width: 100%;
    max-width: 190px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

/* 统一手机模型容器样式 */
.phone-mockup {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto 2rem !important;
    padding: 0;
}

.app-screenshot {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* PC端样式统一 */
@media (min-width: 1200px) {
    .features .feature-card .phone-mockup {
        margin: 1.5rem auto 2.5rem !important;
    }

    .features .feature-card .phone-mockup img {
        max-width: 190px !important;
        min-width: unset !important;
        width: 190px !important;
    }

    .feature-image {
        max-width: 190px;
        width: 190px;
    }
}

/* 移动端样式统一 */
@media (max-width: 767px) {
    .features .feature-card .phone-mockup img {
        max-width: 190px !important;
        width: 190px !important;
    }
}

.feature-card>.feature-image {
    max-width: 90%;
    /* 增大比例 */
    max-height: 500px;
    /* 显著增大高度 */
}

/* 调整卡片内部布局以适应更大的图片 */
.feature-card {
    padding: 2rem;
    gap: 1.5rem;
}


/* 平板设备 - 增大中等尺寸 */
@media (min-width: 769px) and (max-width: 1200px) {
    .phone-mockup {
        max-width: 320px;
        /* 增大到320px */
        width: 320px;
    }

    .phone-mockup img,
    .app-screenshot img {
        max-width: 100%;
        width: auto;
    }
}

/* 移动设备尺寸保持不变 */
@media (max-width: 768px) {
    .phone-mockup {
        max-width: 180px;
        width: 180px;
    }

    .phone-mockup img,
    .app-screenshot img {
        max-width: 100%;
        width: auto;
    }
}

/* 超小屏幕尺寸保持不变 */
@media (max-width: 380px) {
    .phone-mockup {
        max-width: 120px;
        width: 120px;
    }
}

/* 列表样式 */
.feature-card ul {
    list-style-type: none;
    padding-left: 0.5rem;
}

.feature-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
    color: #424245;
}

.feature-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
}

/* CTA 区域 */
.cta-section {
    text-align: center;
    margin: 5rem 0;
    padding: 3.5rem;
    background: #ffffff;
    border: 1px solid #e6e6e8;
    border-radius: 25px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1d1d1f;
}

.cta-section p {
    color: #424245;
}

.cta-button {
    background: #0071e3;
    color: #ffffff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1.5rem;
    box-shadow: none;
    display: block;
    margin: 0 auto;
}

.cta-button:hover {
    background: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 第一个按钮不需要顶部间距 */
.cta-section p+.cta-button {
    margin-top: 1.5rem;
}

/* 第二个按钮(英文按钮)需要更多间距 */
.cta-button+.cta-button {
    margin-top: 1rem;
}

/* 确保CTA区域内容有足够间距 */
.cta-section p {
    margin-bottom: 0.5rem;
}

/* 页脚 */
footer {
    background: #1d1d1f;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid #2d2d2f;
}

/* 全局响应式优化 - 同时兼顾PC端和移动端 */

/* PC端优化（大于1200px） */
@media (min-width: 1201px) {

    /* 头部样式 - PC端更广阔的间距 */
    header {
        padding: 5rem 0 3rem;
    }

    /* 容器宽度控制 */
    .container {
        max-width: 1400px;
        padding: 1.5rem 2rem 5rem;
    }

    /* 优化卡片网格布局 */
    .features {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 2.5rem;
        margin-top: 1.5rem;
    }

    /* 卡片内部优化 */
    .feature-card {
        padding: 2rem;
    }

    /* 确保PC端图片清晰且比例合适 */
    .phone-mockup {
        max-width: 260px;
        margin: 0 auto 1.5rem;
    }

    .app-screenshot {
        height: 300px;
    }

    .feature-image {
        width: 75%;
        max-height: 300px;
        transition: all 0.3s;
    }

    /* PC端特有的悬停效果 */
    .feature-card:hover .feature-image {
        transform: scale(1.05);
    }

    /* CTA区域PC端优化 */
    .cta-section {
        margin: 5rem 0;
        padding: 3.5rem;
    }

    .cta-title {
        font-size: 2.5rem;
    }
}

/* 平板设备断点 (768px - 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .feature-card {
        padding: 1.75rem;
    }

    .phone-mockup {
        max-width: 240px;
    }

    .app-screenshot {
        height: 220px;
    }

    .cta-title {
        font-size: 2.2rem;
    }
}

/* 移动设备断点 (小于 768px) - 保持之前的优化 */
@media (max-width: 768px) {
    header {
        padding: 3rem 0 2rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* 保持移动端图片尺寸足够大 */
    .phone-mockup {
        max-width: 280px;
        margin: 0.5rem auto 1rem;
    }

    .app-screenshot {
        min-height: 220px;
    }

    .feature-image {
        width: 95%;
    }
}

/* 中等移动设备和超小屏幕的优化保持不变 */



/* 处理图片容器的样式 */
.feature-card>div:has(.phone-mockup) {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* 确保任何图片的父容器也不带阴影 */
.phone-mockup,
.phone-mockup * {
    background: transparent !important;
    box-shadow: none !important;
}

/* 移动端基础样式 - 提高优先级 */
@media screen and (max-width: 768px) {

    .features .feature-card .phone-mockup,
    .features .feature-card .app-screenshot,
    .features .feature-card .feature-image,
    .features .feature-card .phone-mockup img,
    .features .feature-card .app-screenshot img {
        width: 320px !important;
        min-width: 320px !important;
        max-width: 320px !important;
        height: auto !important;
        margin: 1 auto 0.5rem !important;
    }

    .feature-card h3 {
        padding-bottom: 0.3rem !important;
        margin-bottom: 0.3rem !important;
    }

    .feature-card {
        padding: 1rem 0.5rem !important;
    }
}



/* 移除所有其他可能冲突的图片尺寸样式 */
.phone-mockup,
.app-screenshot,
.feature-image,
.phone-mockup img,
.app-screenshot img {
    max-width: none;
    min-width: none;
    width: auto;
}

/* PC端样式 */
@media screen and (min-width: 1200px) {
    .features .feature-card .phone-mockup {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 2rem auto 3rem;
        width: 100%;
        background: none;
    }

    .features .feature-card .phone-mockup img {
        display: block;
        width: 60% !important;
        /* 使用百分比宽度 */
        min-width: 300px !important;
        /* 最小宽度 */
        max-width: 600px !important;
        /* 最大宽度 */
        height: auto;
        background: none;
        box-shadow: none;
        filter: none;
    }
}

/* 通用样式 */
.features .feature-card>*,
.features .feature-card>div>* {
    background: none !important;
    box-shadow: none !important;
    filter: none !important;
}

/* 清除所有冲突的图片样式并统一显示 */
/* 基础卡片样式 */
.feature-card {
    padding: 1rem !important;
    gap: 0.8rem !important;
}

/* 统一所有卡片的图片容器样式 */
.feature-card .phone-mockup,
.feature-card .app-screenshot,
.feature-card .feature-image {
    width: 100% !important;
    max-width: 280px !important;
    /* 增大到280px */
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0.3rem auto 0.5rem !important;
    padding: 0 !important;
}

/* 统一所有图片样式 */
.feature-card .phone-mockup img,
.feature-card .app-screenshot img,
.feature-card .feature-image {
    width: 100% !important;
    height: auto !important;
    max-width: 280px !important;
    /* 增大到280px */
    object-fit: contain !important;
}

/* 移动端特别优化 */
@media (max-width: 768px) {

    .feature-card .phone-mockup,
    .feature-card .app-screenshot,
    .feature-card .feature-image,
    .feature-card .phone-mockup img,
    .feature-card .app-screenshot img {
        max-width: 280px !important;
        /* 移动端保持较大尺寸 */
    }
}

/* 统一列表样式 */
.feature-card li {
    margin-bottom: 0.5rem !important;
}

/* 平板端样式 */
@media screen and (min-width: 768px) and (max-width: 1199px) {

    .feature-image,
    .phone-mockup img,
    .app-screenshot img {
        max-width: 175px !important;
        /* 平板端中等尺寸 */
    }

    .phone-mockup,
    .app-screenshot {
        max-width: 175px !important;
        /* 平板端中等尺寸 */
    }
}

/* 统一容器样式 */
.phone-mockup,
.app-screenshot {
    width: 100% !important;
    max-width: 190px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 1rem auto 2rem !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

/* 移除所有固定宽度的媒体查询样式 */
@media screen {

    .features .feature-card .phone-mockup img,
    .feature-image,
    .app-screenshot img {
        width: 100% !important;
        max-width: 190px !important;
        height: auto !important;
    }
}
