/* ===== 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-icon.info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    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;
}

/* ===== ALREADY SUBSCRIBED PAGE - PROFESSIONAL DESIGN ===== */

/* Section Container */
.subscription-already-section {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content Container */
.already-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* Gradient Icon with Pulse Animation */
.already-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.already-icon-gradient {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B2377 0%, #DC512D 50%, #FCC41B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(139, 35, 119, 0.25);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(139, 35, 119, 0.25);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(252, 196, 27, 0.35);
    }
}

.already-icon-gradient i {
    font-size: 3rem;
    color: #FFFFFF;
}

/* Title with Brand Color Highlight */
.already-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.highlight-yellow {
    color: #FCC41B;
    position: relative;
    display: inline-block;
}

.highlight-yellow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FCC41B, #DC512D);
    opacity: 0.3;
}

/* Message Text */
.already-message {
    font-size: 1.15rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.highlight-email {
    color: #DC512D;
    font-weight: 600;
}

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

/* Actions Section */
.already-actions-section {
    margin: 2.5rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

/* Three Equal Cards Grid - Horizontal Layout */
.already-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0;
}

.already-card {
    background: #ffffff;
    border: 2px solid transparent;
    border-left: 4px solid #FCC41B;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.already-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(252, 196, 27, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.already-card:hover {
    transform: translateY(-4px);
    border-color: #FCC41B;
    box-shadow: 0 8px 24px rgba(252, 196, 27, 0.2);
}

.already-card:hover::before {
    opacity: 1;
}

/* Card Icons with Brand Colors */
.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.card-icon.purple {
    background: rgba(139, 35, 119, 0.1);
    color: #8B2377;
}

.card-icon.yellow {
    background: rgba(252, 196, 27, 0.1);
    color: #FCC41B;
}

.card-icon.green {
    background: rgba(66, 164, 105, 0.1);
    color: #42A469;
}

.already-card:hover .card-icon {
    transform: scale(1.1);
}

.already-card:hover .card-icon.purple {
    background: #8B2377;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(139, 35, 119, 0.3);
}

.already-card:hover .card-icon.yellow {
    background: #FCC41B;
    color: #1A1A1A;
    box-shadow: 0 4px 16px rgba(252, 196, 27, 0.3);
}

.already-card:hover .card-icon.green {
    background: #42A469;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(66, 164, 105, 0.3);
}

.already-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.already-card p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* CTA Buttons */
.already-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2.5rem 0 2rem;
}

.btn-already-primary,
.btn-already-secondary {
    padding: 0.875rem 2.25rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-already-primary {
    background: #FCC41B;
    color: #1A1A1A;
    border-color: #FCC41B;
}

.btn-already-primary:hover {
    background: #E6B018;
    border-color: #E6B018;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(252, 196, 27, 0.35);
    text-decoration: none;
    color: #1A1A1A;
}

.btn-already-secondary {
    background: transparent;
    color: #8B2377;
    border-color: #8B2377;
}

.btn-already-secondary:hover {
    background: #8B2377;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 35, 119, 0.25);
    text-decoration: none;
}

/* Help Note */
.already-help-note {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.already-help-note i {
    color: #FCC41B;
    font-size: 1.1rem;
}

.already-help-note a {
    color: #DC512D;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.already-help-note a:hover {
    color: #c44622;
    text-decoration: underline;
}

/* Responsive Design - Already Subscribed Page */
@media (max-width: 992px) {
    .already-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .already-card {
        padding: 1.5rem 1rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .subscription-already-section {
        padding: 80px 0 60px;
    }
    
    .already-content {
        margin: 0 1rem;
        padding: 2rem 1.5rem;
    }
    
    .already-icon-gradient {
        width: 80px;
        height: 80px;
    }
    
    .already-icon-gradient i {
        font-size: 2.5rem;
    }
    
    .already-title {
        font-size: 2rem;
    }
    
    .already-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .already-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-already-primary,
    .btn-already-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    
    .already-help-note {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .already-content {
        padding: 1.5rem 1rem;
    }
    
    .already-title {
        font-size: 1.75rem;
    }
    
    .already-message {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
}

/* 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 - Other Pages */
@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;
    }
}
