/* 基础样式 */
* { 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
*::-webkit-scrollbar { 
    display: none; 
}

body { 
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 下拉菜单选项样式 */
select option {
    color: black;
    background-color: white;
}

/* 输入框样式 */
input[type="text"] {
    color: black;
}

/* 应用容器 */
.app-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    max-height: 900px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 32px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

@media (max-width: 480px) {
    .app-container {
        border-radius: 0;
        height: 100vh;
        max-height: none;
    }
}

/* 语音按钮 */
.voice-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
}

.voice-btn {
    width: 8rem;
    height: 8rem;
    background: radial-gradient(circle at center, #8b5cf6 0%, #6366f1 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
    transform: scale(1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.voice-btn::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
    animation: pulse-ring 2s infinite;
}

.voice-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.6);
}

.voice-btn:active {
    transform: scale(0.95);
    background: radial-gradient(circle at center, #7c3aed 0%, #4f46e5 70%);
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    
    70% {
        transform: scale(1.1);
        opacity: 0;
    }
    
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* 标签切换 */
.tab-btn {
    transition: all 0.3s ease;
    position: relative;
    border-radius: 0.75rem;
}

.tab-btn.active {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 内容区域 */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 按钮效果 */
button {
    transition: all 0.2s ease;
}

button:active {
    transform: scale(0.95);
}

/* 计算器样式 */
#calculator-input {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* 计算器按钮 */
.calc-btn {
    transition: all 0.2s ease;
    font-weight: 500;
}

.calc-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.calc-btn:active {
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 0.25);
}

.calc-btn.operator {
    color: #f97316;
    font-weight: bold;
}

/* 记录项样式 */
.record-item {
    position: relative;
    transition: all 0.3s ease;
}

.record-item .delete-btn {
    position: absolute;
    right: -10px;
    top: -10px;
    width: 24px;
    height: 24px;
    background-color: rgba(239, 68, 68, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
}

.record-item:hover .delete-btn {
    opacity: 1;
    right: -5px;
    top: -5px;
}

.record-item .record-category {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 5px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* 开关样式 */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 34px;
    transition: .4s;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

.toggle-switch input:checked + label {
    background-color: #10b981;
}

.toggle-switch input:checked + label:before {
    transform: translateX(24px);
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* 图表样式 */
.chart-bar {
    background: linear-gradient(to top, #f97316, #ec4899);
    border-radius: 6px 6px 0 0;
    transition: height 1s ease;
}

/* 响应式调整 */
@media (max-height: 700px) {
    .app-container {
        padding-bottom: 60px;
    }
} 