body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.container {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

h1, h2 {
    color: #2c3e50;
    font-weight: 600;
}

h1 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.input-section {
    margin-bottom: 15px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.input-group {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-input-row {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.time-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.time-input-group label {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.time-input-group input {
    margin-bottom: 0;
}

.doses-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}

#doses-input {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    width: 80px;
    text-align: center;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#doses-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

label {
    margin-bottom: 4px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

input[type="time"], select {
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    width: 180px;
    text-align: center;
    font-size: 0.85rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="time"]:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 18px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

.results-section {
    margin-top: 0.5rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.results-section h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

#times {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
    margin-top: 0.6rem;
    font-size: 1rem;
}

#times ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#times li {
    margin: 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
    padding: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: transform 0.3s ease;
}

#times li:hover {
    transform: scale(1.02);
}

header {
    margin-bottom: 20px;
}

.subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: -10px;
    margin-bottom: 1rem;
}

/* 移动端响应式样式 */
@media screen and (max-width: 480px) {
    body {
        padding: 0.25rem;
    }
    
    .container {
        padding: 1rem;
        border-radius: 12px;
        margin: 0.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .time-input-row {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .time-input-group {
        width: 100%;
    }
    
    .time-input-group input {
        width: 100%;
        max-width: 200px;
    }
    
    input[type="time"], select {
        width: 100%;
        max-width: 200px;
        font-size: 1rem;
    }
    
    .input-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    button {
        font-size: 16px;
        padding: 12px 24px;
        width: 100%;
        max-width: 250px;
    }
    
    .results-section {
        padding: 0.8rem;
    }
    
    .results-section h2 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    #times {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    #times li {
        font-size: 15px;
        padding: 8px;
        margin: 4px 0;
    }
    
    .disclaimer {
        margin-top: 0.5rem;
        padding: 0.8rem;
    }
    
    .disclaimer-content {
        font-size: 0.7rem;
        line-height: 1.3;
    }
}

@media screen and (max-width: 375px) {
    .container {
        padding: 0.8rem;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 0.75rem;
    }
    
    #times {
        padding: 10px;
    }
    
    #times li {
        font-size: 14px;
    }
}

.input-section h2 {
    color: #495057;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.time-input-group small {
    color: #6c757d;
    font-size: 12px;
    margin-top: 5px;
}

.calculate-btn {
    margin-top: 1rem;
}

.loading {
    color: #667eea;
    font-size: 18px;
    font-weight: 500;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.results-header {
    margin-bottom: 15px;
    font-size: 16px;
    color: white;
    font-weight: 500;
}

.time-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.time-item {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.error-message {
    color: #fff;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    padding: 15px;
    border-radius: 10px;
    font-weight: 500;
}

.results-footer {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.placeholder {
    color: #6c757d;
    font-style: italic;
    margin: 0;
}

input.filled, select.filled {
    border-color: #28a745;
    background-color: #f8fff9;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    .time-input-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .input-section {
        padding: 20px;
    }
    
    h1 {
        font-size: 22px;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 14px;
    }
}

.disclaimer {
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, #fff5f5, #fffbf0);
    border-left: 2px solid #ff6b6b;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(255, 107, 107, 0.1);
}

.disclaimer-content {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #2d3748;
}

.disclaimer strong {
    color: #e53e3e;
}

.feedback-link {
    margin-top: 1rem !important;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.feedback-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.feedback-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .disclaimer {
        margin: 1rem;
        padding: 1rem;
    }
    
    .disclaimer-content {
        font-size: 0.8rem;
    }
}

.direct-edit-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1rem 0;
}

.direct-edit-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.direct-edit-group:hover {
    background: #e2e8f0;
    transform: translateX(2px);
}

.direct-edit-group label {
    font-weight: 600;
    color: #2d3748;
    min-width: 70px;
    font-size: 0.9rem;
}

.direct-time-input {
    padding: 0.6rem 0.8rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    background: white;
    color: #2d3748;
    transition: all 0.3s ease;
    cursor: pointer;
}

.direct-time-input:hover {
    border-color: #667eea;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.direct-time-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: scale(1.02);
}

.edit-hint {
    display: block;
    margin-top: 0.5rem;
    color: #4a5568;
    font-style: italic;
    font-size: 0.85rem;
}