:root {
    --primary-color: #2c3e50;
    --accent-color: #e67e22;
    --light-accent: #f39c12;
    --text-color: #333;
    --light-text: #666;
    --background: #e6eaef;
    --card-bg: #fff --shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(150deg, #e6eaef 0%, #dfe6f0 100%);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* 语言切换按钮 - 根据设备位置调整 */
.language-switch {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 100;
}

.language-switch button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #2c3e50;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.language-switch button:hover {
    background: #2c3e50;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 头部样式 - 响应式间距 */
header {
    text-align: center;
    padding: 5rem 0 3rem;
    /* PC端更广阔的间距 */
    position: relative;
    overflow: hidden;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.logo {
    width: 200px;
    height: auto;
    margin-bottom: 0.5rem;
    background: transparent;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-5px);
}

.subtitle {
    font-size: 1.3rem;
    color: var(--light-text);
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    max-width: 600px;
    margin: 0 auto;
    color: #4a5568;
}

/* 容器响应式间距 */
.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: #fff !important;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    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 15px 35px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #e67e22;
}

.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 h3 {
    font-weight: 600;
    font-size: 1.5rem;
    color: #2d3748;
    position: relative;
    padding-bottom: 0.8rem;
    /* 减小底部内边距 */
    margin-bottom: 1rem;
    /* 减小底部外边距 */
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: #e67e22;
    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;
}

.feature-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e67e22;
}

/* CTA 区域 */
.cta-section {
    text-align: center;
    margin: 5rem 0;
    padding: 3.5rem;
    background: var(--background);
    border-radius: 25px;
    box-shadow: var(--shadow);
    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: var(--primary-color);
}

.cta-button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1.5rem;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
    display: block;
    margin: 0 auto;
}

.cta-button:hover {
    background: var(--light-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4);
}

/* 第一个按钮不需要顶部间距 */
.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: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* 全局响应式优化 - 同时兼顾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%;
    }
}

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

/* 添加显示/隐藏语言元素的样式 */
[lang="zh"],
[lang="en"] {
    display: none;
}

[lang].active {
    display: block;
}

/* 处理图片容器的样式 */
.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;
    }
}