/* 基本重置和全局样式 */
* {margin: 0;padding: 0;box-sizing: border-box;}
/* 设置根字体大小基准，1rem = 16px */
html {font-size: 16px;}
body {
    color: #FDECD4;
    text-align: center;
    overflow-x: hidden;
    /* min-height: 113vh; */
    font-size: 1rem; /* 16px */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
header, footer, main {
    width: 100%; 
    margin: 0 auto;
}
/* 语言选择器样式 */
.language-selector {
    position: fixed;
    top: 0.5rem; /* 20px */
    right: 1.25rem; /* 20px */
    z-index: 1000;
    display: flex;
    gap: 0.625rem; /* 10px */
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem; /* 8px */
    border-radius: 1.25rem; /* 20px */
    backdrop-filter: blur(0.625rem);
}

.lang-btn {
    background: transparent;
    color: #ccc;
    border: none;
    padding: 0.5rem 1rem; /* 8px 16px */
    border-radius: 0.9375rem; /* 15px */
    cursor: pointer;
    font-size: 0.875rem; /* 14px */
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.lang-btn.active {
    background: #d4af37;
    color: #000;
    font-weight: bold;
}

/* 头部样式 */
header {
    padding: 1.5rem 0;
    border-bottom: 0.1875rem solid #D9B487; /* 3px */
}
.logo{
    display: flex;
    align-items: center;
}
.logo img {
    max-width: 12.5rem; /* 200px */
    height: auto;
}
.Share img {
    max-width: 60%;
}

/* 主内容区域 */
main {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hero{
    background: url('../assets/images/home-banner-bg-t.webp');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    flex: 1;
}
.hero .container{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 110vh;
}
.hero h1 {
    margin-bottom: 10%;
    text-transform: uppercase;
    text-shadow: 0.3125rem 0.375rem 0.3125rem rgba(0, 0, 0, 0.5); /* 5px 6px 5px */
    position: relative;
    z-index: 2;
}
.hero strong.font-se-80 {
    line-height: 1;
}

.hero .hero-content{
    margin: 3.125rem auto 1.875rem; /* 50px auto 30px */
    position: relative;
    text-align: left;
    padding: 1.25rem; /* 20px */
    /* 设置背景盒子大小，避免渐变溢出 */
    background-clip: padding-box;
    background: rgba(0, 0, 0, 0.8);
}

.hero-content .more-btn {
    position: absolute;
    bottom: -1.5625rem; /* -25px */
    right: 0;
    transform: translateX(-50%);
}

.hero-content::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -0.25rem; /* -4px */
    left: -0.25rem; /* -4px */
    right: -0.25rem; /* -4px */
    bottom: -0.25rem; /* -4px */
    background: linear-gradient(45deg, #FEF3C9, #A67D59, #FEF3C9);
}

.hero p {
    color: white;
    font-size: 2.25rem; /* 36px */
    margin-bottom: 1.875rem; /* 30px */
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.875rem; /* 12px 30px */
    background: linear-gradient(45deg, #FEF3C9, #A67D59, #FEF3C9);
    color: #000;
    text-decoration: none;
    border-radius: 1.5625rem; /* 25px */
    font-weight: bold;
    font-size: 1rem; /* 16px */
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(60deg, #FEF3C9, #A67D59, #FEF3C9);
    box-shadow: 0 0.3125rem 0.9375rem rgba(212, 175, 55, 0.4); /* 0 5px 15px */
}

/* 信息区域样式 */
.info {
    background: url('../assets/images/home-banner-bg-b.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-align: center;
}
.info .container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 40vh;
}
.info h2 strong {
    background: linear-gradient(450deg, #FDECD4, #DCB98E, #FDECD4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
}

/* 订阅表单样式 */
.email-input {
    padding: 0.75rem 1.25rem; /* 12px 20px */
    border: 0.0625rem solid rgba(212, 175, 55, 0.3); /* 1px */
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 1.5625rem; /* 25px */
    font-size: 1rem; /* 16px */
    flex: 1;
    min-width: 15.625rem; /* 250px */
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* 页脚样式 */
footer {
    background: url('../assets/images/home-banner-bg-b.webp');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    text-align: center;
    font-size: 1rem;
    color: white;
}
footer .container{
    padding: 2.5rem 1.25rem; /* 40px 20px */
    border-top: 0.1875rem solid #D9B487; /* 3px */
}
footer a {
    font-size: 1rem;
    color: white;
    text-decoration: none;
}
footer a:hover {
    color: #DCB98E;
    text-decoration: underline;
}

/* 响应式设计 */
/* 1921px 以上 */
@media (min-width: 1921px) {
    .container{
        max-width: 1600px;
    }
    .hero strong.font-se-80 {
        font-size: 6rem; /* 80px */
    }
    .hero .font-se-40 {
        font-size: 5rem; 
    }
        /* 英语字体 */
    .hero .font-se-80.lang-text-en {
        font-size: 5rem;
    }
    .hero .font-se-40.lang-text-en {
        font-size: 4rem; 
    }
}
/* 1920px 以下 */
@media (max-width: 1920px) {
    .hero strong.font-se-80 {
        font-size: 5rem;
    }
    .hero strong.font-se-40 {
        font-size: 3.75rem; 
    }
    /* 英语字体 */
    .hero .font-se-80.lang-text-en {
        font-size: 4rem;
    }
    .hero .font-se-40.lang-text-en {
        font-size: 2.75rem; 
    }
}
/* 1600px 以下 */
@media (max-width: 1600px) {
    .hero strong.font-se-80.lang-text-en {
        font-size: 3rem;
    }
    .hero strong.font-se-40.lang-text-en {
        font-size: 2rem; 
    }
}
/* 768px 到 1024px 之间 */
@media (min-width: 768px) and (max-width: 1024px) {   
    .hero h1{
        line-height: 1.2;
    } 
    .hero .container{
        min-height: 70vh;
    }
    .hero strong.font-se-80 {
        font-size: 3.5rem; 
    }
    .hero strong.font-se-40 {
        font-size: 2.5rem; 
    }
    /* 英语字体 */
    .hero strong.font-se-80.lang-text-en {
        font-size: 2.5rem;
    }
    .hero strong.font-se-40.lang-text-en {
        font-size: 1.5rem;
    }
    .info h2 strong,.hero p{
        font-size: 1.625rem; /* 26px */
    }
    .cta {
        flex-direction: column;
        gap: 1.25rem; /* 20px */
        padding: 0 1.25rem; /* 0 20px */
    }
    
    .email-input {
        min-width: 100%;
        padding: 0.9375rem 1.25rem; /* 15px 20px */
        font-size: 1rem; /* 16px */
    }
    
    .btn {
        padding: 0.9375rem 1.875rem; /* 15px 30px */
        font-size: 1rem; /* 16px */
    }
    
    .language-selector {
        top: 0.625rem; /* 10px */
        right: 0.625rem; /* 10px */
    }
    
    .lang-btn {
        font-size: 0.75rem; /* 12px */
        padding: 0.375rem 0.75rem; /* 6px 12px */
    }
    
    header {
        padding: 3.75rem 1.25rem 1.25rem; /* 60px 20px 20px */
    }
    
    .logo img {
        max-width: 10rem; /* 160px */
    }
}

@media (max-width: 480px) {
    .container{
        padding: 0 0.625rem; /* 0 10px */
    }
    .hero .container{
        min-height: 60vh;
    }
    .hero{
        background: url('../assets/images/home-banner-iphone-bg-t.jpg');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
    .hero h1 {
        line-height: 1;
        letter-spacing: normal;
        padding: 0 0.3125rem; /* 0 5px */
    }
    .hero strong.font-se-80{
        font-size: 2rem;
    }
    .hero strong.font-se-40{
        font-size: 1.1rem;
    }
    .hero strong.font-se-80.lang-text-en {
        font-size: 1.1rem;
    }
    .hero strong.font-se-40.lang-text-en {
        font-size: 1rem;
    }    
    .hero p {
        font-size: 0.9375rem; /* 15px */
        padding: 0 0.9375rem; /* 0 15px */
    }
    .hero .hero-content{
        margin: 1.875rem auto 0.625rem; /* 30px auto 10px */
        padding: 0.625rem; /* 10px */
        max-width: 90%;
    }
    
    .info {
        background: url('../assets/images/home-banner-iphone-bg-b.jpg');
        background-size: cover;
        background-position: top center;
        background-repeat: no-repeat;
    }
    .info h2 strong{
        width: 100%;
        font-size: 1rem;
        padding: 0 0.3125rem; /* 0 5px */
        margin-bottom: 0;
    }   
    
    .info p {
        font-size: 0.9375rem; /* 15px */
        padding: 0;
    }
    
    .cta {
        padding: 0 0.9375rem; /* 0 15px */
    }
    
    .email-input {
        padding: 0.75rem 1.125rem; /* 12px 18px */
        font-size: 0.875rem; /* 14px */
    }
    
    .btn {
        padding: 0.75rem 1.5625rem; /* 12px 25px */
        font-size: 0.875rem; /* 14px */
    }
    
    .language-selector {
        top: 0.3125rem; /* 5px */
        right: 0.3125rem; /* 5px */
        gap: 0.3125rem; /* 5px */
    }
    
    .lang-btn {
        font-size: 0.6875rem; /* 11px */
        padding: 0.3125rem 0.625rem; /* 5px 10px */
    }
    
    footer {
        font-size: 0.8125rem; /* 13px */
    }
    footer .container{
        padding: 1rem 0.625rem; /* 10px 15px */
    }
    .logo img {
        max-width: 8.75rem; /* 140px */
    }
}
/* 页面加载动画 */
body {
    animation: pageLoad 0.5s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(1.25rem); /* 20px */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 语言切换的平滑过渡效果 */
.lang-text {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lang-text.fade-out {
    opacity: 0;
    transform: translateY(0.625rem); /* 10px */
}

.lang-text.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* 按钮的悬停和点击效果 */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.98);
}

/* 输入框的焦点效果 */
.email-input {
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 0.1875rem rgba(212, 175, 55, 0.2); /* 0 0 0 3px */
}

/* 语言选择器的过渡效果 */
.language-selector {
    transition: all 0.3s ease;
}

/* 页面元素的滚动动画 */
.hero, .info {
    opacity: 0;
    transform: translateY(1.875rem); /* 30px */
    animation: fadeUp 0.8s ease-out forwards;
}

.hero {
    animation-delay: 0.2s;
}

.info {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 分享功能样式 */
.Share {
    cursor: pointer;
    transition: all 0.3s ease;
}

.Share:hover {
    transform: scale(1.1);
}

/* 分享模态框 */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(0.3125rem);
}

.share-modal-content {
    position: relative;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 1.25rem;
    padding: 1.875rem;
    width: 90%;
    max-width: 37.5rem;
    max-height: 80vh;
    overflow-y: auto;
    border: 0.125rem solid #d4af37;
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.875rem;
    padding-bottom: 0.9375rem;
    border-bottom: 0.0625rem solid rgba(212, 175, 55, 0.3);
}

.share-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #d4af37;
    font-weight: bold;
}

.share-close-btn {
    background: transparent;
    color: #ccc;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.3125rem 0.625rem;
    border-radius: 0.3125rem;
    transition: all 0.3s ease;
}

.share-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.share-modal-body p {
    font-size: 1rem;
    color: #FDECD4;
    margin-bottom: 1.25rem;
    text-align: center;
}

.share-platforms {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
}

.share-platform-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    padding: 0.9375rem 1.25rem;
    border: none;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.share-x {
    background: #1DA1F2;
    color: #fff;
}

.share-x:hover {
    background: #0d95e8;
    transform: translateY(-0.125rem);
    box-shadow: 0 0.3125rem 0.9375rem rgba(29, 161, 242, 0.4);
}

.share-instagram {
    background: #E4405F;
    color: #fff;
}

.share-instagram:hover {
    background: #c83251;
    transform: translateY(-0.125rem);
    box-shadow: 0 0.3125rem 0.9375rem rgba(228, 64, 95, 0.4);
}

/* 分享反馈 */
.share-feedback {
    margin-top: 1.25rem;
    padding: 0.9375rem;
    border-radius: 0.625rem;
    text-align: center;
    font-size: 0.875rem;
    display: none;
}

.share-feedback.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 0.0625rem solid #4CAF50;
    display: block;
}

.share-feedback.error {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border: 0.0625rem solid #F44336;
    display: block;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .share-modal-content {
        padding: 1.25rem;
        width: 95%;
    }
    
    .share-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .share-platform-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}
