:root {
    --primary-color: #2196F3;
    --background-color: #E6EEF7;
    --text-color: #333333;
    --border-color: #DDD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f3f8;
}

/* Header 样式 */
.site-header {
    background-color: #1a2b4d;
    padding: 15px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 32px;
    font-family: Arial, sans-serif;
    font-weight: 900;
    letter-spacing: -1px;
}

.domain-suffix {
    color: #b4ff39;
    font-weight: 400;
}

.site-title {
    color: white;
    font-size: 20px;
    margin: 0;
}

/* 计算器样式 */
.calculator-wrapper {
    max-width: 800px;
    margin: 30px auto;
    padding: 40px;
}

.calculator {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.display {
    background: #2c4167;
    color: white;
    padding: 15px;
    text-align: right;
    border-radius: 4px;
    margin-bottom: 10px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.expression {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.result {
    font-size: 24px;
    font-weight: 500;
}

.keypad {
    background: white;
    padding: 15px;
    border-radius: 4px;
    display: grid;
    gap: 5px;
}

.function-row {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
}

.btn {
    padding: 12px 8px;
    border: 1px solid #ccd9e8;
    background: #e9eef6;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
}

/* 按钮类型样式 */
.btn[data-type="number"] {
    background: #d5e0ee;
}

.btn[data-type="operator"] {
    background: white;
}

.btn[data-type="special"] {
    background: white;
}

.btn:hover {
    background: #d5e0ee;
}

/* 角度/弧度选择器样式 */
.radio-group {
    display: flex;
    align-items: center;
    background: #e9eef6;
    border: 1px solid #ccd9e8;
    border-radius: 4px;
    padding: 2px;
    font-size: 12px;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    padding: 4px 8px;
    cursor: pointer;
}

.radio-group input[type="radio"]:checked + label {
    background: #d5e0ee;
    border-radius: 2px;
}

/* 计算器分类样式 */
.calculator-categories {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.category-image {
    width: 100%;
    height: 150px;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-section ul {
    list-style: none;
}

.category-section li {
    margin-bottom: 8px;
}

.category-section a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.category-section a:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .calculator-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .calculator-categories {
        grid-template-columns: 1fr;
    }
    
    .calculator-wrapper {
        margin: 15px auto;
        padding: 15px;
        width: 100%;
    }

    .function-row {
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        gap: 4px;
    }

    .btn {
        padding: 8px 2px;
        font-size: 12px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .radio-group {
        font-size: 11px;
        padding: 2px;
    }

    .radio-group label {
        padding: 2px 4px;
    }
}

/* 更小屏幕的优化 */
@media (max-width: 480px) {
    .function-row {
        gap: 3px;
    }

    .btn {
        padding: 6px 2px;
        font-size: 11px;
        height: 30px;
    }

    .btn sup {
        font-size: 8px;
    }
}
/* SEO Content Styles */
.seo-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    line-height: 1.6;
    color: var(--text-color);
}

.seo-content h1 {
    font-size: 32px;
    margin-bottom: 24px;
    color: #1a2b4d;
}

.seo-content h2 {
    font-size: 24px;
    margin: 32px 0 16px;
    color: #2c4167;
}

.seo-content h3 {
    font-size: 20px;
    margin: 24px 0 12px;
    color: #3a4d6f;
}

.seo-content h4 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #4a5d7f;
}

.seo-content p {
    margin-bottom: 16px;
}

.seo-content ul {
    margin: 16px 0;
    padding-left: 20px;
}

.seo-content li {
    margin-bottom: 8px;
}

.seo-content details {
    margin: 16px 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.seo-content summary {
    cursor: pointer;
    font-weight: 500;
}