/* 基础重置 */
/* 定义颜色 */
:root {
    --primary-color: #f18f96; /* 设计稿中的粉红色 */
    --secondary-color: #fdefe8; /* 浅粉色背景 */
}

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

body {
    font-family: "Quicksand", sans-serif;
    color: #333;
    font-weight: 500;
    line-height: 1.6;
    background-color: #fff;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo img {
    height: 50px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-btn {
    background-color: #deede9;
    border-radius: 37.5rem;
    color: #0c221c;
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6rem;
    padding: 10px 22px;
    text-decoration: none;
    text-transform: uppercase;
    border: 0;
    cursor: pointer;
}
.lang-btn:hover{
    background-color: #173f35;
    color: #fff;
    text-decoration: underline;
}

.phone-link {
    border-radius: 37.5rem;
    color: #0c221c;
    display: flex;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6rem;
    padding: 10px 22px;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid var(--secondary-color);
    gap: 4px;
    line-height: 24px;
}
.phone-link svg{
    width: 24px;
    height: 24px;
}

/* Hero Section */
.hero-section {
    background-color: var(--secondary-color); /* 浅粉色背景 */
    padding: 60px 0 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr .86fr;
    gap: 90px;
    align-items: end;
}

.hero-text h1 {
    font-size: 51px;
    line-height: 1.126;
    font-weight: 500;
    margin-bottom: 10px;
}

.hero-text h1 span {
    color: var(--primary-color);
}

.subtitle {
    font-size: 37px;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.description {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.461;
}
.description b{
    font-weight: 600;
}

/* Milestones */
.milestones {
    display: flex;
    gap: 15px;
}

.milestone-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    flex: 1;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.milestone-card h3 {
    font-size: 24px;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.milestone-card .amount {
    font-size: 38px;
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 10px;
    color: #444444;
}

.milestone-card p {
    font-size: 15px;
    color: #444444;
    line-height: 1.4;
}

.hero-image{
    padding: 30px 30px 12px 30px;
    background: white;
}
.hero-image img {
    display: block;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Generator Section */
.generator-section {
    padding: 80px 0;
    overflow: hidden;
}

.generator-card {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 76px 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
}
.generator-card .icon{
    position: absolute;;
    width: 85px;
    right: -130px;
    top: 0;
    animation: pulse 2s infinite ease-in-out;
    transform-origin: center;
}
@keyframes pulse {
    0% {
        transform: scale(.8);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(.8);
    }
}

.generator-card h2 {
    font-size: 40px;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.steps {
    list-style: none;
    margin-bottom: 30px;
    color: #333333;
    font-size: 25px;
}

.steps .pink{
    color: var(--primary-color)
}

.generator-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.generator-form input {
    padding: 13px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: none;
    font-size: 17px;
}
.generator-form input::placeholder {
    color: #000;
    opacity: .5;
}

.generate-btn {
    background: #f08e8e;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 500;
}

.result-area {
    margin-top: 30px;
    text-align: left;
    display: none;
}

.result-area label {
    font-size: 18px;
    font-weight: bold;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.link-display {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 4px;
    word-break: break-all;
    color: #888;
    border: 1px solid #eee;
    margin-bottom: 15px;
}

.copy-btn {
    width: 100%;
    background: #f08e8e;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    font-weight: 500;
}

.qr-area {
    margin-top: 30px;
    display: none;
}

.qr-area p {
    font-size: 17px;
    margin-bottom: 15px;
}

.qr-code img {
    width: 150px;
    margin: 0 auto;
}

.error-msg {
    color: #ef4444;
    font-size: 14px;
    margin-top: 12px;
    display: none;
}

/* Footer */
.footer {
    background: #0c221c;
    color: #fff;
    padding: 20px 0;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .header{
        padding: 15px 0;
    }
    .header-content{
        padding: 0 20px;
    }
    .phone-link{
        background-color: var(--primary-color);
        padding: 12px;
        border: 0;
    }
    .phone-link svg *{
        stroke: white!important;
    }
    .phone-link .txt{
        display: none;
    }
    .hero-section{
        padding-top: 30px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 0;
    }
    .hero-text h1{
        font-size: 30px;
    }
    .subtitle{
        font-size: 26px;
    }
    .description{
        font-size: 14px;
        margin: 0 auto 30px auto;
    }
    
    .milestones {
        gap: 2px;
        margin: 0 -10px
    }
    .milestone-card{
        padding: 5px;
        border-radius: 8px;
    }
    .milestone-card h3{
        font-size: 14px;
    }
    .milestone-card .amount{
        font-size: 20px;
    }
    .milestone-card p{
        font-size: 12px;
    }
    .hero-image{
        margin: 0 -20px;
        padding: 20px;
    }

    .generator-section{
        padding: 20px 0;
    }
    .generator-card{
        padding: 20px 20px;
        border-radius: 10px
    }
    .generator-card h2{
        font-size: 26px;
    }
    .steps{
        font-size: 16px;
    }
    .generator-form input{
        font-size: 14px;
        padding: 12px 10px;
    }
    .copy-btn,.generate-btn{
        font-size: 16px;
        padding: 15px 10px;
    }

    .footer-content{
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 0 10px;
    }
}