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

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fad0c4 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #ff6b81 0%, #ff8e9e 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(255, 107, 129, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

header h1 i {
    color: #fff;
    animation: heartbeat 1.5s infinite ease-in-out;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

header p {
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.welcome h2 {
    color: #424242;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.warning {
    margin-top: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-left: 4px solid #757575;
    color: #616161;
    border-radius: 5px;
}

.warning p {
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.warning i {
    margin-right: 8px;
}

.customization h3 {
    color: #424242;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #424242;
}

.form-group label i {
    margin-right: 8px;
    color: #616161;
}

.form-group textarea,
.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #f9f9f9;
}

.form-group textarea:focus,
.form-group input:focus,
.form-group select:focus {
    border-color: #757575;
    box-shadow: 0 0 0 3px rgba(117, 117, 117, 0.2);
    outline: none;
    background-color: white;
}

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

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.generate-link-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b81 0%, #ff8e9e 100%);
    color: white;
}

.generate-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #ff6b81 0%, #ff8e9e 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-header .close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-header .close:hover {
    color: #f1f1f1;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin-bottom: 15px;
    color: #424242;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    border-radius: 0 0 15px 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b81 0%, #ff8e9e 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 129, 0.3);
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #424242;
}

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

.generate-link-btn i {
    margin-right: 8px;
}

.link-result {
    margin-top: 25px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    border-left: 4px solid #424242;
}

.link-result.hidden {
    display: none;
}

.link-result p {
    margin-bottom: 15px;
    color: #424242;
    font-weight: 500;
}

.link-result i {
    margin-right: 8px;
}

.link-container {
    display: flex;
    margin-bottom: 15px;
}

.link-container input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 5px 0 0 5px;
    font-size: 0.9rem;
    background-color: white;
}

.copy-btn {
    padding: 12px 20px;
    background-color: #616161;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background-color: #424242;
}

.link-tip {
    font-size: 0.9rem;
    color: #757575;
    font-style: italic;
}

.tips h3 {
    color: #424242;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.tips ul {
    list-style-type: none;
    padding-left: 0;
}

.tips li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.tips li i {
    position: absolute;
    left: 0;
    color: #616161;
    font-size: 0.9rem;
    top: 5px;
}

/* 弹窗样式 */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.popup {
    position: absolute;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 129, 0.9) 0%, rgba(255, 142, 158, 0.9) 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 129, 0.4);
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 300px;
    pointer-events: auto;
    cursor: pointer;
    transform: translate(-50%, -50%);
    animation: popupAppear 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.popup:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 129, 0.5);
}

.popup.closing {
    animation: popupDisappear 0.3s ease-out forwards;
}

@keyframes popupAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(-5deg);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

@keyframes popupDisappear {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(5deg);
    }
}

/* 响应式设计 */
@media (min-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    header h1 {
        font-size: 2.2rem;
    }
    
    .container {
        padding: 15px;
    }
    
    section {
        padding: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
}