

/* 年龄计算 */
* {
    font-family: "思源黑体 CN", sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #e6f0ff 0%, #c8e0ff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(26, 115, 232, 0.15);
    width: 90%;
    max-width: 1200px;
    padding: 25px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.header {
    text-align: center;
    margin-bottom: 25px;
}

.header h1 {
    font-size: 1.8em;
    color: #1a73e8;
    margin-bottom: 10px;
}

.header p {
    color: #5f6368;
    font-size: 0.95em;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

input[type="date"] {
    padding: 12px 20px;
    border: 2px solid #e0e8f2;
    border-radius: 10px;
    font-size: 1em;
    width: 100%;
    background: #f8f9fa url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="#666" class="bi bi-calendar3" viewBox="0 0 16 16"><path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM1 14V2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1zm5-6a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-7 1a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-1zm5 0a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1zm3 0a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1z"/></svg>') no-repeat 15px center;
    padding-left: 50px;
}

input[type="date"]:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 12px rgba(26, 115, 232, 0.2);
}

button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #1a73e8, #29abe2);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s;
}

button:hover {
    transform: translateY(-2px);
}

.result {
    border-top: 2px dashed #e0e8f2;
    padding-top: 30px;
}

.result-item {
    margin-bottom: 25px;
    padding-left: 30px;
    position: relative;
}

.result-item:before {
    content: "";
    width: 10px;
    height: 10px;
    background: #1a73e8;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 8px;
}

.data-title {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.data-value {
    font-size: 1.6em;
    color: #1a73e8;
    font-weight: 600;
}

.data-note {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .container {
        padding: 40px;
    }

    .header h1 {
        font-size: 2.4em;
    }

    .header p {
        font-size: 1.1em;
    }

    .input-group {
        flex-direction: row;
        gap: 30px;
        justify-content: center;
    }

    input[type="date"] {
        width: 320px;
    }

    button {
        width: auto;
        padding: 14px 40px;
        font-size: 1.1em;
    }

    .result-item {
        display: grid;
        grid-template-columns: 120px 1fr;
        align-items: center;
        gap: 20px;
        padding-left: 0;
    }

    .result-item:before {
        display: none;
    }

    .icon {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
        border-radius: 8px;
        background: #e0e8f2;
        color: #1a73e8;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.progress {
    height: 6px;
    background: #e0e8f2;
    border-radius: 3px;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #1a73e8, #29abe2);
    width: 0;
    transition: width 0.5s ease;
}

.error {
    color: #ff4444;
    text-align: center;
    margin: 20px 0;
    display: none;
}

* {
    font-family: "思源黑体 CN", sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #e6f0ff 0%, #c8e0ff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(26, 115, 232, 0.15);
    width: 90%;
    max-width: 1200px;
    padding: 25px;
    animation: fadeIn 0.5s ease-out;
}

/* ... 其他原有样式 ... */

/* 新增更多工具样式 */
.more-tools {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px dashed #e0e8f2;
    text-align: center;
}

.more-tools h3 {
    color: #1a73e8;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.tool-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e0e8f2;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.1);
    background: #fff;
}

.tool-card span {
    font-size: 1.8em;
    display: block;
    margin-bottom: 8px;
}

.tool-card p {
    color: #333;
    font-size: 0.9em;
    margin: 0;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tool-card {
        padding: 12px 5px;
    }
    
    .tool-card span {
        font-size: 1.5em;
    }
}

/* 年龄计算结束 */



/* BMI计算 */
/* BMI——Input Wrapper Styles */
.input-wrapper {
    margin-bottom: 25px;
    width: 100%;
}

.input-wrapper label {
    display: block;
    margin-bottom: 8px;
    color: #5f6368;
    font-size: 0.95em;
    font-weight: 500;
}

.input-container {
    position: relative;
}

/* Clean Input Styles */
.clean-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid #e0e8f2;
    border-radius: 10px;
    font-size: 1em;
    background: #f8f9fa;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.clean-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 12px rgba(26, 115, 232, 0.2);
    background: white;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    opacity: 0.7;
}

.input-note {
    font-size: 0.8em;
    color: #888;
    margin-top: 5px;
    text-align: right;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .gender-selection {
        flex-direction: column;
        gap: 10px;
    }
    
    .gender-option {
        justify-content: center;
    }
    
    .clean-input {
        padding: 12px 15px 12px 45px;
    }
    
    .input-icon {
        left: 12px;
    }
}


/* BMI计算结束 */