* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-button {
    font-size: 18px;
    cursor: pointer;
    width: 30px;
}

h1 {
    font-size: 18px;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.action-dots, .action-line, .action-close {
    cursor: pointer;
}

.tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.tab {
    padding: 12px 15px;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    color: #666;
}

.tab.active {
    color: #f47a45;
    font-weight: 500;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background-color: #f47a45;
}

.calculator-container {
    padding: 15px;
}

.result-section {
    background-color: #fff9f5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

h2 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: normal;
    color: #666;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-header {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
}

.product-name {
    width: 30%;
    padding-right: 5px;
}

.product-amount {
    width: 20%;
    text-align: center;
}

.product-price {
    width: 25%;
    text-align: center;
}

.product-price input {
    width: 90%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
    text-align: center;
}

.product-total {
    width: 25%;
    text-align: right;
}

.total-row {
    border-top: 1px solid #eee;
    padding-top: 8px;
    font-weight: 500;
}

.area-input {
    margin-bottom: 20px;
}

.input-with-unit {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.input-with-unit input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    font-size: 16px;
}

.input-with-unit span {
    padding: 0 10px;
    color: #666;
    background-color: #f9f9f9;
}

.usage-section {
    margin-bottom: 20px;
}

h3 {
    font-size: 14px;
    font-weight: normal;
    color: #666;
    margin-bottom: 15px;
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.usage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.usage-item .input-with-unit {
    width: 100px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
    width: 80%;
    max-width: 600px;
}

#calculate-btn, #share-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    flex: 1;
}

#share-btn {
    background-color: #1AAD19;
}

#calculate-btn:hover {
    background-color: #e56a35;
}

.notes {
    padding: 15px;
    font-size: 14px;
    color: #666;
}

.notes ol {
    padding-left: 20px;
}

.notes li {
    margin-bottom: 8px;
    line-height: 1.5;
}