/* 日期计算器样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.5;
    font-size: 16px;
}

*, :after, :before {
    box-sizing: border-box;
    border: 0 solid transparent;
    margin: 0;
    padding: 0;
  }

button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: #333;
}

.min-h-screen {
    min-height: 100vh;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.sm-px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.lg-px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-md {
    font-size: 1rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-gray-900 {
    color: #111827;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-500 {
    color: #6b7280;
}

.text-blue-800 {
    color: #1e40af;
}

.text-blue-600 {
    color: #2563eb;
}

.text-purple-800 {
    color: #6b21a8;
}

.text-purple-600 {
    color: #9333ea;
}

.text-green-800 {
    color: #166534;
}

.text-green-600 {
    color: #16a34a;
}

.bg-white {
    background-color: #ffffff;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-purple-50 {
    background-color: #f5f3ff;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-4 {
    padding: 1rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.pl-3 {
    padding-left: 0.75rem;
}

.pr-12 {
    padding-right: 3rem;
}

.pr-3 {
    padding-right: 0.75rem;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-items-center {
    display: flex;
    align-items: center;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.gap-6 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 1rem;
}

.block {
    display: block;
}

.w-full {
    width: 100%;
}

.h-4 {
    height: 1rem;
}

.w-4 {
    width: 1rem;
}

.border {
    border-width: 1px;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-transparent {
    border-color: transparent;
}

.divide-y {
    border-top-width: 0;
    border-bottom-width: 1px;
}

.divide-gray-200 > * + * {
    border-top: 1px solid #e5e7eb;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-y-0 {
    top: 0;
    bottom: 0;
}

.right-0 {
    right: 0;
}

.pointer-events-none {
    pointer-events: none;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.overflow-x-auto {
    overflow-x: auto;
}

.min-w-full {
    min-width: 100%;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.text-left {
    text-align: left;
}

.hidden {
    display: none;
}

/* 按钮样式 */
button {
    cursor: pointer;
}

.hover-bg-blue-700:hover {
    background-color: #1d4ed8;
}

.focus-outline-none:focus {
    outline: none;
}

.focus-ring-2:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.focus-ring-offset-2:focus {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(59, 130, 246, 0.5);
}

.focus-border-blue-500:focus {
    border-color: #3b82f6;
}

/* 响应式布局 */
@media (min-width: 640px) {
    .sm-text-sm {
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* 按钮悬停效果 */
#calculateBtn {
    transition: transform 0.1s ease-in-out, background-color 0.2s;
}

#calculateBtn:hover {
    transform: scale(1.02);
}

#calculateBtn:active {
    transform: scale(0.98);
}

.calculate-button {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.375rem;
    background-color: #2563eb;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, transform 0.1s ease-in-out;
}

/* Radio按钮样式 */
.radio-option {
    position: relative;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #374151;
    border: 2px solid #d1d5db;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + .radio-button {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.radio-button:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-1px);
}

.radio-option input[type="radio"]:checked + .radio-button:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.shadow-sm {
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
}
.rounded-md {
    border-radius: 0.375rem;
}
.relative {
    position: relative;
}

.pr-12 {
    padding-right: 3rem;
}
.pl-3 {
    padding-left: 0.75rem;
}
.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.border-gray-300 {
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity));
}
.border {
    border-width: 1px;
}
.rounded-md {
    border-radius: 0.375rem;
}
.w-full {
    width: 100%;
}
.block {
    display: block;
}