.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e4e8;
}

.page-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-header p {
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
}

.demo-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 24px;
    background-color: #4a6fa5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background-color: #3a5a80;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #e74c3c;
}

.btn-secondary:hover {
    background-color: #c0392b;
}

.btn-tertiary {
    background-color: #2ecc71;
}

.btn-tertiary:hover {
    background-color: #27ae60;
}

.customize-form {
    max-width: 800px;
    margin: 0 auto 40px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.customize-form h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* 弹窗样式 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
}

.popup-container {
    background-color: white;
    border-radius: 12px;
    /*overflow: hidden;*/
    width: 100%;
    max-width: 1600px;
    height: 800px; /* 固定高度 */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.popup-overlay.active .popup-container {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    background: url("../img/close.png") no-repeat 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    color: #333;
    transition: all 0.2s ease;
    background-position: center;
    border: 2px solid #fff;
}

.popup-close:hover {
    transform: scale(1.1);
}

/* 弹窗外底部关闭按钮 */
.popup-bottom-close {
    position: absolute;
    right: -100px;
    top: 0;
    /*bottom: 60px;*/
    /*left: 50%;*/
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: url("../img/close.png") no-repeat 100%;
    /*background-color: rgba(255, 255, 255, 0.9);*/
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.popup-bottom-close:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.popup-bottom-close-title{
    position: absolute;
    top: 11px;
    right: 5px;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    /*background-color: rgba(255, 255, 255, 0.9);*/
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    color: #333;
    transition: all 0.3s ease;
}


.popup-hero {
    position: relative;
    height: 200px; /* 固定标题区域高度 */
    background-image: url('https://images.unsplash.com/photo-1528543606781-2f6e6857f318?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    flex-shrink: 0; /* 防止标题区域被压缩 */
}

.popup-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1));
}

.popup-title {
    position: absolute;
    bottom: 20px;
    left: 30px;
    color: white;
    z-index: 2;
    max-width: 70%;
}

.popup-title h2 {
    font-size: 28px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.popup-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.popup-content-wrapper {
    flex: 1; /* 内容区域填充剩余空间 */
    overflow: hidden; /* 隐藏内容区域滚动条 */
    display: flex;
    flex-direction: column;
}

.popup-content {
    padding: 10px 30px;
    overflow-y: auto; /* 内容区域内部可滚动 */
}

.popup-content-wrapper h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    padding: 5px 30px;
}

.popup-left p {
    margin-bottom: 18px;
    line-height: 25px;
    color: #555;
    text-align: justify;
}

.popup-right h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.tips-list {
    list-style-type: none;
}

.tips-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: flex-start;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tip-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    background-color: #4a6fa5;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-text {
    flex: 1;
    color: #555;
}

.popup-footer {
    padding: 15px 30px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: center;
    color: #777;
    font-size: 14px;
    flex-shrink: 0; /* 防止页脚被压缩 */
}

/* 响应式设计 */
@media (max-width: 900px) {
    .popup-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .popup-title h2 {
        font-size: 24px;
    }

    .popup-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .popup-container {
        height: 600px; /* 移动端调整高度 */
    }

    .popup-hero {
        height: 160px;
    }

    .popup-title {
        left: 20px;
        bottom: 15px;
    }

    .popup-title h2 {
        font-size: 20px;
    }

    .popup-content,
    .popup-footer {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .demo-controls {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .popup-container {
        height: 550px; /* 小屏幕进一步调整高度 */
    }

    .popup-hero {
        height: 140px;
    }

    .popup-title h2 {
        font-size: 18px;
    }

    .popup-subtitle {
        font-size: 14px;
    }

    .popup-content,
    .popup-footer {
        padding: 15px;
    }

    .popup-left h3,
    .popup-right h3 {
        font-size: 18px;
    }
}

.popup-counter {
    position: absolute;
    top: 15px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #4a6fa5;
    font-weight: 600;
    z-index: 10;
}

.instructions {
    max-width: 800px;
    margin: 0 auto 40px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.instructions h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.instructions ul {
    padding-left: 20px;
    color: #555;
}

.instructions li {
    margin-bottom: 10px;
}

.popup-instances {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.popup-instance {
    background-color: #f0f7ff;
    border-left: 4px solid #4a6fa5;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.popup-instance h4 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.height-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.height-btn {
    padding: 8px 16px;
    background-color: #8e44ad;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.height-btn:hover {
    background-color: #732d91;
}
.popup-content-title{
    background-color: #EFEFEF;
    position: relative;
    padding: 10px;
    text-align: center;
}
.popup-content-title span{
    font-weight: bold;
}
