.aieqa-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.aieqa-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.aieqa-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.aieqa-title h2 {
    font-size: 2.4rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
}

.aieqa-badge {
    position: relative;
    background: linear-gradient(135deg, #0a2540 0%, #1a365d 100%);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(-5px);
}

.aieqa-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.aieqa-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.3) 0%, rgba(26, 54, 93, 0.3) 100%);
    z-index: -1;
    animation: borderPulse 3s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.6);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

@keyframes borderPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.03);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.aieqa-features {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 2rem 0;
}

.aieqa-features span {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 250px;
    text-align: left;
}

.aieqa-features .dashicons {
    color: #4CAF50;
    font-size: 1.4rem;
    width: 1.4rem;
    height: 1.4rem;
    margin-top: 0.1rem;
}

.aieqa-search-wrapper {
    margin: 2rem 0;
}

.aieqa-remaining-calls {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.aieqa-remaining-calls span {
    color: #4CAF50;
    font-weight: 600;
    font-size: 1rem;
}

.aieqa-search {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.aieqa-search input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.aieqa-search input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.aieqa-search button {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.aieqa-search button:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

.aieqa-search button .dashicons {
    font-size: 1.2rem;
    width: 1.2rem;
    height: 1.2rem;
}

.aieqa-result {
    margin-top: 2rem;
}

.aieqa-thinking,
.aieqa-answer,
.aieqa-related {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.aieqa-answer h3,
.aieqa-related h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.aieqa-answer-content {
    color: #3a4a5a;
    line-height: 1.8;
    font-size: 1.1rem;
}

.aieqa-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aieqa-related li {
    padding: 0.8rem 0;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.aieqa-related li:hover {
    color: #4CAF50;
}

.aieqa-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.aieqa-footer p {
    color: #666;
    font-size: 0.9rem;
    font-weight: bold;
}

/* 加载动画 */
.aieqa-loading {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
}

.aieqa-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.aieqa-loading-icon {
    position: relative;
    width: 60px;
    height: 60px;
}

.aieqa-loading-icon::before,
.aieqa-loading-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #4CAF50;
}

.aieqa-loading-icon::before {
    animation: spin 1s linear infinite;
}

.aieqa-loading-icon::after {
    border-top-color: #45a049;
    opacity: 0.5;
    animation: spin 1.5s linear infinite;
}

.aieqa-loading-text {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 500;
}

.aieqa-loading-status {
    color: #666;
    font-size: 0.95rem;
    max-width: 80%;
    margin: 0 auto;
}

.aieqa-loading-progress {
    width: 200px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin: 0.5rem auto;
}

.aieqa-loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 2px;
    animation: progress 2s ease-in-out infinite;
    transform-origin: left;
}

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

@keyframes progress {
    0% {
        width: 0%;
        opacity: 1;
    }
    50% {
        width: 70%;
        opacity: 0.8;
    }
    100% {
        width: 100%;
        opacity: 0;
    }
}

/* 禁用状态 */
.aieqa-search button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .aieqa-container {
        margin: 0.5rem;
        padding: 0.8rem;
        width: calc(100% - 1rem);
        max-width: 100%;
    }

    .aieqa-header h2 {
        font-size: 1.8rem;
    }

    .aieqa-features {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        margin: 1rem 0;
    }

    .aieqa-features span {
        max-width: 100%;
    }

    .aieqa-search {
        flex-direction: column;
        gap: 0.8rem;
        margin: 1rem 0;
    }

    .aieqa-search input {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .aieqa-search button {
        width: 100%;
        padding: 0.8rem;
    }

    .aieqa-answer,
    .aieqa-related {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .aieqa-answer h3,
    .aieqa-related h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .aieqa-answer-content {
        font-size: 1rem;
        line-height: 1.6;
    }

    .aieqa-related li {
        font-size: 1rem;
        padding: 0.6rem 0;
    }

    .aieqa-loading {
        padding: 1rem;
        margin: 1rem 0;
    }

    .aieqa-loading-text {
        font-size: 1rem;
    }

    .aieqa-loading-status {
        font-size: 0.9rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .aieqa-container {
        margin: 0;
        padding: 0.5rem;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .aieqa-header h2 {
        font-size: 1.5rem;
    }

    .aieqa-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .aieqa-features span {
        font-size: 0.9rem;
    }

    .aieqa-answer,
    .aieqa-related {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
        border-radius: 6px;
    }

    .aieqa-search {
        padding: 0 0.3rem;
    }

    .aieqa-search input {
        border-radius: 6px;
    }

    .aieqa-search button {
        border-radius: 6px;
    }
}

.aieqa-error {
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-align: center;
} 