common.css 3.01 KB
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    color: #666;
    cursor: pointer;
    position: relative;
    font-size: 16px;

}

.tab.active {
    color: #1890ff;
    font-weight: bold;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1890ff;
}

.tab-content {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.description {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.form-group label.required::after {
    content: '*';
    color: #ff4d4f;
    margin-left: 4px;
}

input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

input::placeholder {
    color: #bbb;
}

.add-month {
    width: 100%;
    padding: 4px 16px 32px 16px;
    border: none;
    border-radius: 4px;
    background: none;
    color: #1890ff;
    cursor: pointer;
}

.calculate-btn {
    width: 100%;
    padding: 12px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.month-item {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.month-item .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.month-item .header span{
    background: #dbebf9;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
    color: #1890ff;
}

.delete-month {
    color: #ff4d4f;
    background: none;
    border: none;
    cursor: pointer;
}

.result-section {
    margin-top: 20px;
    background: #eef5ff;
    border-radius: 8px;
}

.result-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 16px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}
.result-item .right{
    color: #222222;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.result-table th,
.result-table td {
    padding: 5px;
    text-align: center;
    border: 1px solid #f0f0f0;
    font-size: 12px;
}

.result-table th {
    background: #f5f7fa;
    color: #333;
    font-weight: normal;
    min-width: 80px;
}

.result-table td {
    color: #666;
    word-break: keep-all
}