/* 自定义样式，补充Tailwind CSS */

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 输入控件的焦点状态 */
input:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* 响应式调整 */
@media (max-width: 767px) {
    .md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .result-box {
        margin-top: 1.5rem;
    }
}

/* 结果项的悬停效果 */
#result-section div {
    transition: transform 0.2s, box-shadow 0.2s;
}

#result-section div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 计算按钮的过渡效果 */
#calculate-btn {
    transition: all 0.3s;
}

#calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

#calculate-btn:active {
    transform: translateY(0);
}

/* 年龄数字的特殊样式 */
#result-section .text-xl {
    color: #3b82f6;
    letter-spacing: 0.5px;
}

/* 页面内容淡入效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

main section {
    animation: fadeIn 0.5s ease-out;
}

/* 页脚链接样式 */
footer a {
    transition: color 0.2s;
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: white;
    transition: width 0.3s;
}

footer a:hover::after {
    width: 100%;
}

/* 自然元素装饰 */
.organic-shape {
  position: absolute;
  opacity: 0.1;
  z-index: -1;
}

.shape-1 {
  width: 300px;
  height: 300px;
  border-radius: 65% 35% 70% 30% / 45% 55% 45% 55%;
  background-color: #3b82f6;
  top: 100px;
  left: -150px;
}

.shape-2 {
  width: 250px;
  height: 250px;
  border-radius: 30% 70% 45% 55% / 75% 25% 60% 40%;
  background-color: #60a5fa;
  bottom: 100px;
  right: -100px;
}

/* 标签和表单元素样式改进 */
label {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

/* 错误消息样式 */
.error-msg {
  color: var(--error-color);
  transition: color 0.3s ease;
}

/* 辅助文本样式 */
.helper-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

/* 导航栏logo样式 */
header .logo {
    transition: transform 0.3s ease;
    display: block;
    object-fit: contain;
    max-height: 80px;
    vertical-align: middle;
    box-shadow: none;
    border-radius: 0;
}

header a:hover .logo {
    transform: scale(1.05);
}

header a:hover span {
    color: #2563eb; /* 深蓝色 */
    transition: color 0.3s ease;
}

header a span {
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    text-shadow: none;
}

header nav {
    border-bottom: none;
} 