﻿:root {
    --version: "1.0.0";
}

body, html {
    font-family: Arial,"微软雅黑",sans-serif;
    margin: 0;
    padding: 0;
/*    background: linear-gradient(135deg,#F5FFFA,#fdfdfd);*/
    color: #333;
}

.container {
    max-width: 500px;
    margin: 20px auto;
    padding: 15px;
}

/* Android 设备检测 */
@supports not (-webkit-touch-callout: none) {
    @media (pointer: coarse) {
        .container {
            max-width: 500px;
            margin: 5px auto;
            padding: 5px;
        }
    }
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 10px;
    margin-bottom: 10px;
}

    .card h1 {
        font-size: 22px;
        font-weight: bold;
        text-align: center;
        color: #009999;
        margin: 0 0 15px;
    }

.form-group {
    margin-bottom: 15px;
}

/* Android 设备检测 */
@supports not (-webkit-touch-callout: none) {
    @media (pointer: coarse) {
        .card h1 {
            font-size: 22px;
            font-weight: bold;
            text-align: center;
            color: #009999;
            margin: 0 0 10px;
        }

        .form-group {
            margin-bottom: 10px;
        }

    }
}

.form-group label {
    display: inline-block;
    font-size: 15px;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 8px 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    margin-right: 6px;
    transform: scale(1.1);
}

.form-inline {
    display: flex;
    flex-wrap: nowrap; /* 保证一行显示 */
    gap: 6px; /* 下拉框之间的间距 */
}

    .form-inline select {
        flex: 1; /* 平均分配宽度 */
        min-width: 0; /* 防止超出 */
        font-size: 16px; /* iOS 防止缩放 */
        height: 40px; /* 统一高度 */
        line-height: 40px;
        padding: 0 8px;
        border: 1px solid #ccc;
        border-radius: 6px;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-color: #fff;
        box-sizing: border-box;
    }

/* 针对 iOS Safari 特殊优化 */
@supports (-webkit-touch-callout: none) {
    .form-inline select {
        height: 42px;
        line-height: 42px;
    }
}


.submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(135deg, #20B2AA, #009999);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

    .submit-btn:hover {
        opacity: 0.9;
    }

/* loading 动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式 */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .card {
        padding: 15px;
    }

    .form-group label {
        font-size: 14px;
    }
}

.info-card {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 12px;
    color: #333;
}

.info-row {
    display: flex;
    justify-content: flex-start; /* 左对齐 */
    margin-bottom: 6px;
}

    .info-row:last-child {
        margin-bottom: 0;
    }

.info-col {
    flex: 1; /* 每列均分 */
    text-align: left; /* 左对齐 */
}

/* Android 设备检测 */
@supports not (-webkit-touch-callout: none) {
    @media (pointer: coarse) {
        body, html {
            font-size: 14px;
        }

        #year, #month, #day, #hour, #minute {
            font-size: 14px;
        }

        .form-inline select {
            height: 30px; /* 统一高度 */
            line-height: 30px;
        }

        .card {
            padding: 5px;
            margin-bottom: 5px;
        }
    }
}
