* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1000px;
    margin: 100px auto 30px;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    flex: 1;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
    padding-bottom: 10px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00d2ff);
    border-radius: 2px;
}

.formula-box {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
}

.formula {
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1em;
}

.params {
    margin-bottom: 8px;
    color: #495057;
    padding-left: 10px;
    border-left: 3px solid #007bff;
    margin-left: 5px;
}

.input-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.input-group label {
    width: 100px;
    color: #333;
    font-size: 14px;
}

.input-group input,
.input-group select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.material-select {
    width: 100%;
}

/* 分区样式 */
.dimension-section,
.price-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.dimension-section h4,
.price-section h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

/* 按钮样式 */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.calculate-button,
.clear-button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calculate-button {
    background: #007bff;
    color: white;
}

.clear-button {
    background: #6c757d;
    color: white;
}

.icon {
    font-size: 18px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .input-group label {
        width: auto;
        margin-bottom: 5px;
    }
}

.result {
    margin-top: 25px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.result.success {
    background: linear-gradient(to right, #d4edda, #c3e6cb);
    color: #155724;
    border: none;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.2);
}

.result.error {
    background: linear-gradient(to right, #f8d7da, #f5c6cb);
    color: #721c24;
    border: none;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.2);
}

/* 添加按钮组样式 */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.button-group > * {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}

.tools-icon {
    font-size: 1.1em;
}

/* 响应式调整 */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }
    
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .formula {
        font-size: 1em;
    }
    
    button {
        padding: 10px;
        font-size: 1em;
    }
    
    .copy-button {
        width: 100%;
        margin-top: 0;
        padding: 8px 15px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .button-group > * {
        width: 100%;
        max-width: none;
    }
} 

/* 顶部导航样式 */
.header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

.logo img {
    height: 32px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    gap: 25px;
    margin: 0 20px;
}

.nav-item {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-item:hover {
    color: #007bff;
}

.nav-item:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s;
}

.nav-item:hover:after {
    width: 100%;
}

.login-btn {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.login-btn:hover {
    background: linear-gradient(45deg, #0056b3, #004094);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

/* 修改底部样式 */
.footer {
    background: #1f2937;
    padding: 15px 0;
    margin-top: 0;
    width: 100%;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.footer-bottom p {
    margin: 4px 0;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

.beian {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.beian:hover {
    color: rgba(255,255,255,0.8);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        margin: 80px 20px 30px;
    }
    
    .footer-bottom p {
        font-size: 11px;
    }
}

/* 删除之前不需要的样式 */
.footer::before,
.footer-container,
.footer-section,
.qrcode {
    display: none;
}

/* 添加到现有的style.css文件中 */
.tips-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1em;
}

/* 添加表单按钮组样式 */
.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.form-buttons button {
    flex: 1;
}

/* 添加清除按钮样式 */
.clear-button {
    background: linear-gradient(45deg, #6c757d, #495057);
}

.clear-button:hover {
    background: linear-gradient(45deg, #5a6268, #383d41);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* 响应式调整 */
@media (max-width: 600px) {
    .form-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-buttons button {
        width: 100%;
    }
}

/* 添加两列布局样式 */
.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .input-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* 添加主要工具按钮样式 */
.more-tools-button.primary-tool {
    background: linear-gradient(45deg, #FF5722, #FF9800);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.2);
    order: -1; /* 确保它在移动端显示在最前面 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.more-tools-button.primary-tool:hover {
    background: linear-gradient(45deg, #F4511E, #FB8C00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.3);
}

/* 调整其他工具按钮样式 */
.more-tools-button:not(.primary-tool) {
    background: linear-gradient(45deg, #FF5722, #FF9800);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.2);
    order: -1; /* 确保它在移动端显示在最前面 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.more-tools-button:not(.primary-tool):hover {
    background: linear-gradient(45deg, #303F9F, #1976D2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 81, 181, 0.3);
}

/* 移除extra-tools相关样式 */
.extra-tools,
.extra-tools-btn,
.tool-icon {
    display: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        margin: 80px 20px 30px;
    }
}

.tile-size-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.tile-size-select:hover {
    border-color: #999;
}

.tile-size-select:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.tile-size-select option {
    padding: 8px;
}

/* 三列布局样式 */
.input-grid.three-columns {
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 1.4fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* 输入区块样式 */
.input-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

/* 区块标题样式 */
.section-title {
    color: #2c3e50;
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
}

/* 墙砖信息部分样式 */
.tile-info-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.tile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .input-wrapper {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .input-grid.three-columns {
        grid-template-columns: 1fr;
    }
    
    .tile-info-grid {
        grid-template-columns: 1fr;
    }
}

/* 添加到style.css文件中 */
.custom-size-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.size-input {
    display: flex;
    flex-direction: column;
}

.size-input label {
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #495057;
}

.size-input input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
}

.size-input input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* 添加到style.css文件中 */
.wedge-diagram {
    margin: 15px 0;
    text-align: center;
}

.diagram-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.info-text {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.info-text p {
    margin: 8px 0;
    color: #495057;
    font-size: 0.95em;
}

/* 添加到style.css文件中 */
.unit-select {
    width: auto;
    margin-left: 8px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    color: #495057;
}

.slope-diagram {
    margin: 15px 0;
    text-align: center;
}

.diagram-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

/* 添加到style.css文件中 */
.conversion-table {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.table-item {
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    text-align: center;
    font-size: 0.95em;
    color: #495057;
}

.swap-button {
    background: linear-gradient(45deg, #6c757d, #495057);
    padding: 12px 20px;
}

.swap-button:hover {
    background: linear-gradient(45deg, #5a6268, #383d41);
}

.swap-icon {
    font-size: 1.2em;
    margin-right: 5px;
}

/* 优化输入组件样式 */
.input-wrapper {
    display: flex;
    align-items: center;
    max-width: 300px;
}

.input-wrapper input {
    flex: 1;
    min-width: 120px;
}

.unit-select {
    min-width: 60px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .table-grid {
        grid-template-columns: 1fr;
    }
    
    .input-wrapper {
        max-width: none;
    }
}

/* 添加到style.css文件中 */
.material-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
    color: #495057;
    background-color: white;
}

.density-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.density-item {
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.9em;
    color: #495057;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .density-table {
        grid-template-columns: 1fr;
    }
}

/* 修改输入网格布局 */
.input-grid.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

/* 输入区块样式 */
.input-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* 区块标题样式 */
.section-title {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
}

/* 输入组件样式 */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: inline-block;
    width: 90px;
    color: #333;
    font-size: 14px;
}

.input-group input,
.input-group select {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 材料选择下拉框样式 */
.material-select {
    width: calc(100% - 110px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .input-grid.two-columns {
        grid-template-columns: 1fr;
    }
    
    .input-group label {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
    
    .input-group input,
    .input-group select,
    .material-select {
        width: 100%;
    }
}

/* 添加复制按钮样式 */
.copy-button {
    width: 100%;
    padding: 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.copy-button:hover {
    background: #218838;
}

.copy-success {
    color: #fff;
}

/* 添加压力单位换算器特定样式 */
.conversion-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.unit-selection {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    margin: 20px 0;
}

.from-unit,
.to-unit {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.swap-button {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.swap-button:hover {
    background: linear-gradient(45deg, #5a6268, #383d41);
}

.swap-icon {
    font-size: 1.2em;
}

.reference-table {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.reference-table h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.table-item {
    background: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #dee2e6;
    font-size: 0.9em;
    color: #495057;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .unit-selection {
        grid-template-columns: 1fr;
    }
    
    .swap-button {
        margin: 10px 0;
    }
}