/* ===== SUBSCRIPTION PAGES STYLES ===== */

/* Subscription Result Pages */
.subscription-result-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.result-content {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid #f1f3f4;
}

.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
}

.result-icon.success {
    background: linear-gradient(135deg, #42A469, #28a745);
    color: white;
}

.result-icon.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.result-icon.warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: white;
}

.result-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.result-message {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.result-submessage {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-details {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.result-actions .btn {
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.result-actions .btn-primary {
    background: #DC512D;
    color: white;
    border: 2px solid #DC512D;
}

.result-actions .btn-primary:hover {
    background: #c44622;
    border-color: #c44622;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.result-actions .btn-outline-primary {
    background: transparent;
    color: #DC512D;
    border: 2px solid #DC512D;
}

.result-actions .btn-outline-primary:hover {
    background: #DC512D;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.result-actions .btn-outline-secondary {
    background: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
}

.result-actions .btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.result-actions .btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.result-actions .btn-outline-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Subscription Details */
.subscription-details {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: left;
}

.subscription-details h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.category-tag {
    display: inline-block;
    background: #DC512D;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* Manage Subscription Page */
.subscription-manage-section {
    padding: 140px 0 80px; /* 增加顶部padding以避免导航栏遮挡 */
    background: #f8f9fa;
}

.manage-header {
    margin-bottom: 3rem;
}

.manage-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.manage-header p {
    font-size: 1.2rem;
    color: #6c757d;
}

.manage-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.subscription-form {
    padding: 3rem;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #DC512D;
    box-shadow: 0 0 0 3px rgba(220, 81, 45, 0.1);
}

.form-control[readonly] {
    background: #f8f9fa;
    color: #6c757d;
}

.form-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.text-muted {
    color: #6c757d;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.category-option {
    position: relative;
}

.category-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.category-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
}

.category-label:hover {
    border-color: #DC512D;
    background: #fff5f3;
}

.category-option input[type="checkbox"]:checked + .category-label {
    border-color: #DC512D;
    background: #DC512D;
    color: white;
}

.category-option input[type="checkbox"]:checked + .category-label i {
    color: white !important;
}

.category-label i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.form-actions .btn {
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
}

.form-actions .btn-primary {
    background: #DC512D;
    color: white;
    border-color: #DC512D;
}

.form-actions .btn-primary:hover {
    background: #c44622;
    border-color: #c44622;
    transform: translateY(-2px);
}

/* Unsubscribe Section */
.unsubscribe-section {
    background: #f8f9fa;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.unsubscribe-section h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.unsubscribe-section p {
    color: #6c757d;
    margin-bottom: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Enhanced Newsletter Form in Insights Page */
.newsletter-form-enhanced {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #f1f3f4;
}

.newsletter-form-enhanced .form-group {
    margin-bottom: 1rem;
}

.newsletter-form-enhanced .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
}

.newsletter-form-enhanced .form-control:focus {
    border-color: #DC512D;
    box-shadow: 0 0 0 3px rgba(220, 81, 45, 0.1);
}

.newsletter-form-enhanced .btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    background: #DC512D;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.newsletter-form-enhanced .btn:hover {
    background: #c44622;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .subscription-result-section {
        padding: 80px 0;
    }
    
    .result-content {
        margin: 0 1rem;
        padding: 2rem;
    }
    
    .result-title {
        font-size: 2rem;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .result-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .manage-header h1 {
        font-size: 2.2rem;
    }
    
    .subscription-form {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .result-content {
        padding: 1.5rem;
    }
    
    .result-title {
        font-size: 1.75rem;
    }
    
    .subscription-form {
        padding: 1.5rem;
    }
    
    .manage-header h1 {
        font-size: 1.8rem;
    }
}
