* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 导航栏样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* 其他导航栏样式保持不变 */

/* 主要内容区样式 */
main {
    margin-top: 60px;
    padding: 2rem 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1 {
    text-align: center;
    color: #FF4081;
    margin-bottom: 1rem;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.calculator-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* 猫咪图片容器 */
.cat-image-container {
    text-align: center;
    margin-bottom: 2rem;
}

.cat-image {
    max-width: 200px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.cat-image:hover {
    transform: scale(1.05);
}

/* 生命阶段卡片 */
.life-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.stage-card {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s;
}

.stage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stage-card h4 {
    color: #FF4081;
    margin-bottom: 1rem;
    text-align: center;
}

.stage-card ul {
    list-style-type: none;
}

.stage-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.stage-card li:before {
    content: "•";
    color: #FF4081;
    position: absolute;
    left: 0;
}

/* 护理建议卡片 */
.care-tips {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.care-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.care-card {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s;
}

.care-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}

.food { background-color: #FF4081; }
.health { background-color: #00BCD4; }
.environment { background-color: #4CAF50; }

/* 按钮样式 */
.calculate-btn {
    background-color: #FF4081;
}

.calculate-btn:hover {
    background-color: #F50057;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .life-stages {
        grid-template-columns: 1fr;
    }
    
    .care-grid {
        grid-template-columns: 1fr;
    }
} 

/* 导航栏样式 */
.nav {
    max-width: 1200px;
    margin: 0 auto;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2196f3;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 1rem;
}

.nav-menu a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2196f3;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn, .register-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.login-btn {
    color: #666;
}

.register-btn {
    background-color: #2196f3;
    color: #fff;
}

.login-btn:hover {
    color: #2196f3;
}

.register-btn:hover {
    background-color: #1976d2;
}

/* 广告容器样式 */
.ad-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
}

.ad-content {
    border: 1px dashed #ccc;
    padding: 40px;
    border-radius: 4px;
    text-align: center;
    color: #666;
    font-size: 14px;
    background-color: #fff;
}

/* 底部版权样式 */
.footer {
    background-color: #fff;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    margin: 0.5rem 0;
    color: #666;
}

.footer a {
    color: #666;
    text-decoration: none;
}

.footer a:hover {
    color: #2196f3;
}

/* 响应式导航栏 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-right {
        display: none;
    }
}

/* 添加淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 

/* 修改和添加内容区样式 */

/* 计算器标签样式 */
.calculator-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
}

.tab-btn:hover {
    color: #FF4081;
}

.tab-btn.active {
    background-color: #FF4081;
    color: #fff;
    box-shadow: 0 2px 4px rgba(255, 64, 129, 0.2);
}

/* 输入组样式优化 */
.input-group {
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s ease-out;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 500;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #fff;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #FF4081;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.1);
}

/* 计算按钮样式优化 */
.calculate-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background-color: #FF4081;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(255, 64, 129, 0.2);
}

.calculate-btn:hover {
    background-color: #F50057;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 64, 129, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* 结果显示优化 */
.result {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #FF4081;
    animation: slideIn 0.5s ease-out;
}

.result h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.result p {
    color: #666;
    font-size: 1.1rem;
}

.result span {
    color: #FF4081;
    font-weight: bold;
    font-size: 1.3rem;
}

/* 生命阶段卡片优化 */
.stage-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.stage-card h4 {
    font-size: 1.2rem;
    background: linear-gradient(45deg, #FF4081, #FF80AB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 护理建议卡片优化 */
.care-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border: 1px solid #eee;
}

.card-icon {
    background: linear-gradient(145deg, #ff4081, #f50057);
    box-shadow: 0 4px 8px rgba(255, 64, 129, 0.2);
}

.card-icon.food { background: linear-gradient(145deg, #FF4081, #FF80AB); }
.card-icon.health { background: linear-gradient(145deg, #00BCD4, #80DEEA); }
.card-icon.environment { background: linear-gradient(145deg, #4CAF50, #81C784); }

/* 添加更多动画 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseScale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 响应式优化 */
@media (max-width: 768px) {
    .calculator-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-btn {
        flex: 1 1 calc(50% - 0.5rem);
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .input-group input,
    .input-group select {
        font-size: 16px; /* 防止iOS缩放 */
    }

    .result {
        padding: 1rem;
    }
}

/* 工具提示样式 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
} 

/* 使用说明样式优化 */
.tips-container {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 2rem;
    margin: 3rem 0;
}

.tips-container h3 {
    display: flex;
    align-items: center;
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.tips-icon {
    font-size: 1.8rem;
    margin-right: 0.8rem;
}

.tips-content {
    display: grid;
    gap: 1.5rem;
}

.tip-card {
    display: flex;
    align-items: flex-start;
    padding: 1.2rem;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(255, 64, 129, 0.1);
}

.tip-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: #FF4081;
    flex-shrink: 0;
}

.tip-text {
    flex: 1;
}

.tip-text h4 {
    color: #FF4081;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.tip-text p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.tip-note {
    display: flex;
    align-items: flex-start;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #FFF3F7;
    border-radius: 8px;
    border-left: 4px solid #FF4081;
}

.note-icon {
    font-size: 1.5rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.tip-note p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tips-container {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .tip-card {
        padding: 1rem;
    }

    .tip-icon {
        font-size: 1.5rem;
    }

    .tip-text h4 {
        font-size: 1rem;
    }

    .tip-text p {
        font-size: 0.9rem;
    }

    .tip-note {
        flex-direction: column;
    }

    .note-icon {
        margin-bottom: 0.5rem;
    }
}

/* 添加动画效果 */
.tip-card {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.tip-card:nth-child(1) { animation-delay: 0.1s; }
.tip-card:nth-child(2) { animation-delay: 0.2s; }
.tip-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 