:root {
  --primary-color: #2962ff;
  --secondary-color: #00c853;
  --danger-color: #d50000;
  --background-color: #f5f7fa;
  --card-background: #ffffff;
  --text-color: #1a237e;
  --border-radius: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 32px rgba(0,0,0,0.12);
  --gradient-primary: linear-gradient(135deg, #2962ff, #1565c0);
  --gradient-secondary: linear-gradient(135deg, #424242, #212121);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
}

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

h1 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
    letter-spacing: -0.5px;
}

.warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.warning h3 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.instructions {
    background: var(--card-background);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.instructions ol {
    padding-left: 1.5rem;
}

.instructions li {
    margin-bottom: 0.8rem;
    position: relative;
}

.form-container {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 500;
}

.page-wrapper {
    min-height: 100vh;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
}

.card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.warning-card {
    background: linear-gradient(135deg, #fff5e6 0%, #fff9f0 100%);
    border-left: 5px solid #ff9800;
}

.instruction-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f9ff 100%);
    border-left: 5px solid var(--primary-color);
}

.form-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    padding: 2.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

input {
    width: 100%;
    padding: 1rem 1.2rem;
    padding-right: 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.9);
}

input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(41, 98, 255, 0.1);
    background: #ffffff;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9e9e9e;
    font-size: 1.2rem;
}

.button-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

button, .contact-link {
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

button[type="submit"] {
    background: var(--gradient-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(41, 98, 255, 0.3);
}

.contact-link {
    background: var(--gradient-secondary);
    text-decoration: none;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.balance-info {
    margin-top: 12px;
    font-size: 14px;
}

.balance-details {
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 5px solid var(--primary-color);
    margin-top: 1rem;
}

.balance-details.loading {
    opacity: 0.7;
}

.balance-details p {
    margin: 6px 0;
    transition: color 0.3s ease;
}

.sufficient {
    color: var(--secondary-color);
    font-weight: 500;
}

.insufficient {
    color: var(--danger-color);
    font-weight: 500;
}

.error {
    color: #dc3545;
}

button:disabled {
    background-color: #6c757d;
    opacity: 0.65;
    cursor: not-allowed;
}

.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1.2rem 2rem;
    border-radius: 16px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    min-width: 300px;
}

.notification.success {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.95), rgba(67, 160, 71, 0.95));
    color: white;
}

.notification.error {
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.95), rgba(213, 0, 0, 0.95));
    color: white;
}

.notification a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.logo {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.tron-logo {
    height: 80px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.network-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #00c853, #009624);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.2);
}

.network-status {
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    padding: 1.2rem 2.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f9ff 100%);
    font-weight: 500;
}

.network-status.connected {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}

.network-status.disconnected {
    background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
}

.network-status.loading {
    background-color: #e9ecef;
    animation: pulse 1.5s infinite;
}

.network-status a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.network-status a:hover {
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.instructions h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.instructions i {
    margin-right: 0.5rem;
    width: 20px;
    color: var(--primary-color);
}

.warning i {
    color: #856404;
    margin-right: 0.5rem;
}

button i, .contact-link i {
    margin-right: 0.5rem;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}

.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

button:disabled .fa-spin {
    margin-right: 8px;
}

/* 添加响应式设计 */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 2rem 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .network-badge {
        position: relative;
        display: inline-block;
        margin-top: 1rem;
    }
}

/* 添加到现有样式文件中 */
.sponsor-group {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(41, 98, 255, 0.1);
}

.sponsor-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 35px;
}

.sponsor-text {
    display: flex;
    flex-direction: column;
}

.sponsor-text i {
    color: #ff4081;
    margin-right: 0.5rem;
}

.sponsor-text small {
    display: block;
    margin-top: 0.3rem;
    color: #666;
    font-size: 0.9rem;
}

.sponsor-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 0;
    height: 25px;
    width: 25px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sponsor-label:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.sponsor-label input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sponsor-label input:checked ~ .checkmark:after {
    display: block;
} 