* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
    min-height: 100vh;
    text-align: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    position: relative;
    margin-bottom: 30px;
    animation: fadeInDown 0.6s ease-out;
}

.title-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.title-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-cover {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 180px;
    height: 40px;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
    z-index: 10;
    border-radius: 4px;
}

.subtitle {
    font-size: clamp(14px, 3vw, 18px);
    color: rgba(255,255,255,0.95);
    margin-bottom: 10px;
}

main {
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.name-box {
    width: 100%;
    height: clamp(120px, 20vh, 200px);
    line-height: clamp(120px, 20vh, 200px);
    background: white;
    margin: 0 auto 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: bold;
    color: #ff6b35;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.name-box.highlight {
    animation: pulse 0.5s ease-in-out;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
}

.btn-group {
    margin: 20px 0 30px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

button {
    padding: 14px 32px;
    font-size: clamp(14px, 2.5vw, 18px);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.start {
    background: linear-gradient(135deg, #c93737 0%, #e74c3c 100%);
    color: white;
}

.stop {
    background: linear-gradient(135deg, #1890ff 0%, #2196f3 100%);
    color: white;
}

.reset {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    color: white;
}

.file-btn {
    padding: 8px 16px;
    font-size: 14px;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
    color: white;
}

.list-box {
    width: 100%;
    margin: 20px auto;
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.list-box:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.list-title {
    font-size: clamp(16px, 3vw, 20px);
    font-weight: bold;
    color: #333;
}

textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    resize: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.history {
    margin-top: 20px;
}

.history span {
    display: inline-block;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 5px;
    font-size: 15px;
    animation: fadeIn 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.settings {
    margin-top: 20px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.setting-item label {
    font-size: 16px;
    color: #333;
    min-width: 120px;
}

.setting-item input[type="range"] {
    flex: 1;
    max-width: 200px;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.setting-item span {
    font-size: 16px;
    color: #667eea;
    font-weight: bold;
    min-width: 40px;
    text-align: right;
}

.stats-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.stat-value {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    button {
        width: 100%;
        margin: 5px 0;
    }

    .list-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-actions {
        width: 100%;
    }

    .file-btn {
        flex: 1;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .setting-item input[type="range"] {
        width: 100%;
        max-width: none;
    }

    .stats-box {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
