/* 基础样式重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8fafc;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 自定义工具类 */
.btn-pulse {
    animation: pulse 2s infinite;
}

.scroll-mt-16 {
    scroll-margin-top: 4rem;
}

.faq-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.faq-toggle.active .fa-chevron-down {
    transform: rotate(0deg) !important;
}

.faq-toggle .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* 动画定义 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 颜色定义 */
.bg-gray-50 {
    background-color: #fafafa;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-white {
    background-color: #ffffff;
}

.bg-indigo-50 {
    background-color: #f0f4ff;
}

.bg-indigo-100 {
    background-color: #e0e7ff;
}

.bg-indigo-500 {
    background-color: #6366f1;
}

.bg-indigo-600 {
    background-color: #4f46e5;
}

.bg-indigo-700 {
    background-color: #4338ca;
}

.bg-indigo-800 {
    background-color: #3730a3;
}

.bg-indigo-900 {
    background-color: #312e81;
}

.text-white {
    color: #ffffff;
}

.text-indigo-200 {
    color: #c7d2fe;
}

.text-indigo-700 {
    color: #4338ca;
}

.text-indigo-800 {
    color: #3730a3;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #596474;
}

.text-gray-700 {
    color: #4b5563;
}

.text-gray-800 {
    color: #1f2937;
}

.text-red-600 {
    color: #dc2626;
}

/* 背景渐变 */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-indigo-700 {
    --tw-gradient-from: #4338ca;
    --tw-gradient-to: rgba(67, 56, 202, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-indigo-500 {
    --tw-gradient-to: #6366f1;
}

/* 布局类 */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* 间距类 */
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(1rem * var(--tw-space-x-reverse));
    margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-8 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(2rem * var(--tw-space-x-reverse));
    margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}

.gap-6 {
    gap: 1.5rem;
}

/* 内边距 */
.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.pt-4 {
    padding-top: 1rem;
}

/* 外边距 */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

/* 宽度 */
.w-full {
    width: 100%;
}

.max-w-4xl {
    max-width: 56rem;
}

.h-8 {
    height: 2rem;
}

/* 文本样式 */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.text-8xl {
    font-size: 6rem;
    line-height: 1;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

/* 边框样式 */
.border {
    border-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-indigo-500 {
    border-color: #6366f1;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* 阴影 */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 过渡效果 */
.transition {
    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* 交互样式 */
.hover\:bg-indigo-100:hover {
    background-color: #e0e7ff;
    transition: background-color 0.2s ease;
}

.hover\:bg-indigo-700:hover {
    background-color: #4338ca;
    transition: background-color 0.2s ease;
}

.hover\:text-indigo-200:hover {
    color: #c7d2fe;
    transition: color 0.2s ease;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    ring-width: 2px;
}

.focus\:ring-indigo-500:focus {
    --tw-ring-color: #6366f1;
}

.focus\:ring-offset-2:focus {
    --tw-ring-offset-width: 2px;
}

/* 表单元素样式 */
input, select, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input::placeholder, textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

textarea {
    resize: vertical;
}

input, select, textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 分隔线 */
.divide-y > :not([hidden]) ~ :not([hidden]) {
    --tw-divide-y-reverse: 0;
    border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
    border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}

.border-b {
    border-bottom-width: 1px;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 按钮样式增强 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 导航样式增强 */
.nav-link {
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.2s ease;
}

.nav-link:hover:after {
    width: 100%;
}

/* 结果区域样式 */
.result-section {
    background-color: #f0f4ff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e0e7ff;
    animation: fadeIn 0.5s ease-out;
}

/* 标题下划线效果 */
.underline-title {
    position: relative;
    display: inline-block;
}

.underline-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 60px;
    height: 3px;
    background-color: #6366f1;
    border-radius: 3px;
}

/* 媒体查询 - 中等屏幕及以上 */
@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row;
    }
    
    .md\:hidden {
        display: none;
    }
    
    .md\:flex {
        display: flex;
    }
    
    .md\:w-1\/2 {
        width: 50%;
    }
    
    .md\:w-1\/3 {
        width: 33.333333%;
    }
    
    .md\:w-2\/3 {
        width: 66.666667%;
    }
    
    .md\:mb-0 {
        margin-bottom: 0;
    }
    
    .md\:pl-8 {
        padding-left: 2rem;
    }
    
    .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* 强化选择框边框样式 */
select, input, textarea {
    border: 1px solid #d1d5db !important; /* 强制显示边框 */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* 未选中状态下的边框 */
select:not(:focus), 
input:not(:focus), 
textarea:not(:focus) {
    border-color: #d1d5db !important;
    box-shadow: none !important;
}

/* 选中状态下的边框（更明显） */
select:focus, 
input:focus, 
textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

/* 禁用状态下的边框 */
select:disabled, 
input:disabled, 
textarea:disabled {
    border-color: #e5e7eb !important;
    background-color: #f9fafb;
}

/* 加载动画样式 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

/* 圆形旋转动画 */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-left-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* 文字闪烁动画 */
.loading-text {
    color: #6366f1;
    font-weight: 500;
    animation: pulse-text 1.5s ease-in-out infinite;
}

/* 点动效 */
.loading-dots::after {
    content: '';
    animation: dots 1.5s linear infinite;
}

/* 动画定义 */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* 保持之前的其他样式不变 */
