/* 修改后的 styles.css 文件 */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 100%;
    padding: 15px;
    margin: 0 auto;
}

@media screen and (min-width: 768px) {
    .container {
        max-width: 800px;
        padding: 20px;
    }
}

.calculator {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* 核心修改部分 */
.header-container {
    /* 移除 position: relative; */
    text-align: center;
    margin-bottom: 20px;
}

.language-switcher {
    /* 移除 position: absolute; 和 top, right 属性 */
    float: right; /* 让语言选择器浮动到右侧 */
}

.language-switcher select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #c5dff9;
    font-size: 14px;
    cursor: pointer;
}

h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #2c3e50;
    line-height: 1.4;
    clear: right; /* 确保h1在浮动元素language-switcher的下方 */
}

@media screen and (min-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
}

h2 {
    font-size: 1.3rem;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin: 25px 0 15px 0;
}

h3 {
    font-size: 1.1rem;
    color: #34495e;
    margin: 20px 0 10px 0;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: bold;
    font-size: 1rem;
}

input[type="date"] {
    width: 220px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.2rem;
    background-color: #c5dff9;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background-color 0.3s;
    -webkit-appearance: none;
    touch-action: manipulation;
}

button:active {
    background-color: #2980b9;
    transform: translateY(1px);
}

.result {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: none;
}

.result.show {
    display: block;
}

.info-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.tag-cloud {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    line-height: 2;
    text-align: center;
}

.tag-cloud span {
    display: inline-block;
    margin: 5px;
    padding: 8px 12px;
    background: #e9ecef;
    border-radius: 20px;
    font-size: 14px;
    color: #495057;
    white-space: nowrap;
}

.notice {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 0.9rem;
}

ul, ol {
    padding-left: 20px;
    margin: 10px 0;
}

li {
    margin-bottom: 8px;
}

.accordion {
    margin-top: 20px;
}

.accordion-header {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    cursor: pointer;
    position: relative;
    font-weight: bold;
}

.accordion-header:after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.accordion-header.active:after {
    content: '-';
}

.accordion-content {
    display: none;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
}

.accordion-content.active {
    display: block;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

.touch-target {
    min-height: 48px;
    min-width: 48px;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.footer-ydys {
    margin: 40px 20px auto;
    text-align: center;
}
#label_lang{
    display: inline;
}