
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}


.header {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.logo-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.logo {
    height: 60px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s ease;
}


.container {
    max-width: 1300px;
    margin: auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    text-align: center; 
}


#kitchenForm {
    text-align: center;
}

label {
    display: block;
    margin-top: 15px;
    color: #555;
    font-weight: 500;
    text-align: left;
}

input, select {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

input:focus, select:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 2px rgba(255,0,0,0.1);
}

button {
    padding: 12px 24px;
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    margin: 20px auto;
    display: block;
}

button:hover {
    background-color: #cc0000;
}


.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 4px;
    border: 1px solid #eee;
}

table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    min-width: 800px;
    background-color: white;
}

td, th {
    border: 1px solid #eee;
    text-align: left;
    font-size: 13px;
    padding: 12px 15px;
}

th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #333;
}

tr:nth-child(even) {
    background-color: #f8f8f8;
}


.result {
    margin-top: 30px;
}

.project-info {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.project-info h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.project-info p {
    margin: 8px 0;
    color: #666;
}

.no-combinations {
    color: #ff0000;
    text-align: center;
    padding: 30px;
    font-weight: 500;
    background-color: #fff5f5;
    border-radius: 4px;
}


.download-btn {
    background-color: #28a745;
    padding: 8px 16px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
}

.download-btn:hover {
    background-color: #218838;
}
/* 基础移动端样式 */
@media screen and (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        margin: 0;
        box-sizing: border-box;
    }

    .header {
        padding: 10px 0;
    }

    .logo {
        height: 20px;
		align-content: center;
    }

    h1 {
        font-size: 20px;
        margin: 15px 0;
    }

    #kitchenForm {
        padding: 0;
    }

    /* 表单元素适配 */
    input, 
    select {
        width: 100%;
        height: 44px;
        padding: 10px;
        font-size: 16px;
        margin-bottom: 15px;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 4px;
    }

    button {
        width: 100%;
        height: 44px;
        margin: 10px 0;
        font-size: 16px;
        -webkit-appearance: none;
        appearance: none;
    }

    /* 表格容器适配 */
    .table-container {
        margin: 15px -15px;
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 14px;
        min-width: 100%;
    }

    td, th {
        padding: 8px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* 项目信息卡片适配 */
    .project-info {
        padding: 15px;
        margin: 10px 0;
    }

    .project-info h4 {
        font-size: 16px;
    }

    .project-info p {
        font-size: 14px;
        margin: 8px 0;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 100%;
        padding: 10px;
        margin: 0;
        box-sizing: border-box;
    }
    
    .logo {
        height: 40px;
        max-width: 80%;
    }
    
    h1 {
        font-size: 24px;
        margin: 15px 0;
    }
    
    /* 表单元素样式 */
    #kitchenForm {
        width: 100%;
    }
    
    input, 
    select {
        width: 100%;
        height: 44px;
        padding: 10px;
        font-size: 16px;
        margin-bottom: 15px;
        -webkit-appearance: none;
        border-radius: 4px;
        box-sizing: border-box;
    }
    
    label {
        display: block;
        margin-top: 10px;
        margin-bottom: 5px;
        font-size: 14px;
    }
    
    button {
        width: 100%;
        height: 44px;
        margin: 10px 0;
        font-size: 16px;
        -webkit-appearance: none;
    }
    
    /* 结果显示区域 */
    .result {
        margin-top: 20px;
    }
    
    .project-info {
        padding: 15px;
        margin: 10px 0;
    }
    
    .project-info p {
        font-size: 14px;
        margin: 8px 0;
    }
    
    /* 表格样式 */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 15px -10px;
    }
    
    table {
        min-width: 100%;
        font-size: 14px;
    }
    
    td, th {
        padding: 8px;
        font-size: 12px;
    }
    
    /* 按钮样式 */
    .download-btn {
        padding: 8px 12px;
        font-size: 12px;
        width: 100%;
        margin: 5px 0;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

@supports (padding: max(0px)) {
    .container {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
        padding-bottom: max(15px, env(safe-area-inset-bottom));
    }
}
@media (hover: none) and (pointer: coarse) {
    button,
    input[type="submit"],
    .download-btn {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    input, 
    select {
        touch-action: manipulation;
    }
}