/* 苹果风格样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.5;
}

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

.header {
    text-align: center;
    padding: 30px 0 20px;
}

.header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.header p {
    font-size: 17px;
    color: #86868b;
}

/* 大按钮（苹果风格） */
.big-button {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    border: none;
    border-radius: 24px;
    color: white;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
    transition: all 0.3s ease;
    touch-action: manipulation;
    user-select: none;
}

.big-button:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.big-button.recording {
    background: linear-gradient(135deg, #ff3b30 0%, #d62d23 100%);
    box-shadow: 0 8px 24px rgba(255, 59, 48, 0.4);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.icon {
    font-size: 48px;
}

/* 输入框 */
.input-section {
    margin-top: 24px;
}

.input-label {
    font-size: 17px;
    color: #1d1d1f;
    margin-bottom: 8px;
    display: block;
}

.text-input {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    background: white;
    transition: all 0.2s ease;
}

.text-input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

/* 提交按钮 */
.submit-button {
    width: 100%;
    padding: 16px;
    background: #007aff;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.submit-button:hover {
    background: #0051d5;
}

.submit-button:active {
    transform: scale(0.98);
}

.submit-button:disabled {
    background: #d2d2d7;
    cursor: not-allowed;
}

/* 卡片 */
.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 概览数据 */
.summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.summary-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.summary-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.summary-number.positive {
    color: #34c759;
}

.summary-number.negative {
    color: #ff9500;
}

.summary-label {
    font-size: 15px;
    color: #86868b;
}

.range-filter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.range-button {
    padding: 10px 8px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    background: white;
    color: #1d1d1f;
    font-size: 15px;
    cursor: pointer;
}

.range-button.active {
    border-color: #007aff;
    background: #e8f2ff;
    color: #007aff;
    font-weight: 600;
}

/* 反馈列表 */
.feedback-section {
    margin-top: 24px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.priority-high {
    background: #ffebee;
    color: #ff3b30;
}

.priority-medium {
    background: #fff8e1;
    color: #ff9500;
}

.priority-low {
    background: #f5f5f7;
    color: #86868b;
}

/* 反馈卡片 */
.feedback-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #d2d2d7;
}

.feedback-card.high {
    border-left-color: #ff3b30;
}

.feedback-card.medium {
    border-left-color: #ff9500;
}

.feedback-card.positive {
    border-left-color: #34c759;
}

.feedback-card.negative {
    border-left-color: #ff9500;
}

.feedback-card.neutral {
    border-left-color: #8e8e93;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.feedback-time {
    font-size: 15px;
    color: #86868b;
}

.feedback-type {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
}

.feedback-content {
    font-size: 17px;
    color: #1d1d1f;
    margin-bottom: 12px;
    line-height: 1.5;
}

.feedback-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    background: #eef7ee;
    color: #248a3d;
    font-size: 13px;
    font-weight: 600;
}

.feedback-meta {
    display: flex;
    gap: 12px;
    font-size: 15px;
    color: #86868b;
}

.feedback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f5f5f7;
}

.action-button {
    padding: 8px 16px;
    background: #f5f5f7;
    border: none;
    border-radius: 8px;
    color: #007aff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button:hover {
    background: #e8e8ed;
}

.action-button.danger {
    color: #ff3b30;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #86868b;
}

.empty-state .icon {
    font-size: 64px;
    margin-bottom: 16px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #86868b;
}

/* 消息提示 */
.message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-size: 17px;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}


.duplicate-hint {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 10px;
    background: #fff4d6;
    color: #b26a00;
    font-size: 13px;
    font-weight: 600;
}

.message.success {
    border-left: 4px solid #34c759;
}

.message.error {
    border-left: 4px solid #ff3b30;
}

@media (max-width: 520px) {
    .summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-item {
        padding: 16px 12px;
    }

    .summary-number {
        font-size: 30px;
    }
}
