/* 炫酷背景：动态粒子效果 */
body {
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    font-family: 'Orbitron', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 粒子效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 2%, transparent 10%);
    background-size: 20px 20px;
    animation: particleMove 20s linear infinite;
    z-index: -1;
}
@keyframes particleMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.aag-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: rgba(26, 26, 46, 0.9);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.aag-title {
    text-align: center;
    font-size: 2.5em;
    color: #3498db;
    text-shadow: 0 0 10px #3498db, 0 0 20px #2980b9;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
    from { text-shadow: 0 0 5px #3498db, 0 0 10px #2980b9; }
    to { text-shadow: 0 0 15px #3498db, 0 0 30px #2980b9; }
}
.aag-info {
    text-align: center;
    font-size: 1.2em;
    color: #bdc3c7;
    margin-bottom: 25px;
}
.aag-error {
    color: #e74c3c;
    text-align: center;
    padding: 15px;
    background: rgba(231, 76, 60, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
#aag-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
#aag-form input, #aag-form button {
    padding: 15px;
    border: 2px solid #3498db;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1em;
    transition: all 0.3s ease;
}
#aag-form input:focus, #aag-form button:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 10px #e74c3c;
    outline: none;
}
#aag-form button {
    background: linear-gradient(45deg, #3498db, #e74c3c);
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}
#aag-form button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
#aag-form button:hover::before {
    width: 300px;
    height: 300px;
}
#aag-form button:hover {
    background: linear-gradient(45deg, #e74c3c, #3498db);
}
#aag-loading {
    text-align: center;
    width: 60px;
    height: 60px;
    margin: 20px auto;
    border: 6px solid #3498db;
    border-top: 6px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#aag-result img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
    animation: fadeIn 0.5s ease;
}
#aag-payment {
    text-align: center;
}
.aag-payment-title {
    color: #e74c3c;
    text-shadow: 0 0 10px #e74c3c, 0 0 20px #c0392b;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}
.aag-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
#aag-payment button {
    padding: 15px 20px;
    margin: 5px;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
#aag-payment button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
#aag-payment button:hover::before {
    width: 200px;
    height: 200px;
}
#aag-payment button:hover {
    background: linear-gradient(45deg, #27ae60, #219653);
    box-shadow: 0 0 20px #2ecc71;
}
#aag-qr-prompt {
    color: #bdc3c7;
    margin: 20px 0;
    font-size: 1.1em;
}
#aag-qr img {
    max-width: 200px;
    margin: 20px auto;
    display: block;
    border: 2px solid #3498db;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
#aag-qr p {
    color: #bdc3c7;
    font-size: 0.95em;
    margin-top: 10px;
}
#aag-payment-info {
    color: #e74c3c;
    font-size: 1.1em;
    margin: 10px 0;
}

/* 响应式 */
@media (max-width: 600px) {
    .aag-container {
        margin: 20px;
        padding: 20px;
    }
    .aag-package-grid {
        grid-template-columns: 1fr;
    }
    #aag-payment button {
        width: 100%;
        margin: 10px 0;
    }
}