/* HoyoNext - 極簡風格樣式 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    min-height: 100vh;
}

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

/* Header */
header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.nav-item {
    text-decoration: none;
    color: #7f8c8d;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: #2c3e50;
    background-color: #ecf0f1;
}

.nav-item.active {
    color: #fff;
    background-color: #3498db;
}

/* Main Content */
main {
    padding: 2rem 0;
}

.welcome {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome h2 {
    font-size: 2rem;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.welcome p {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 400;
}

.feature-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: #e74c3c;
}

.btn-primary:hover {
    background-color: #c0392b;
}

/* Tool Section */
.tool-section {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.tool-section h2 {
    color: #2c3e50;
    font-weight: 300;
    margin-bottom: 1rem;
    text-align: center;
}

.tool-section > p {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #bdc3c7;
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
    transition: border-color 0.3s ease;
}

.upload-area:hover {
    border-color: #3498db;
}

.upload-area.dragover {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.upload-content p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

#fileInput {
    display: none;
}

/* Options */
.options {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.options h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.option-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
    cursor: pointer;
}

.compress-options {
    margin-bottom: 1.5rem;
}

.compress-options label {
    color: #2c3e50;
    margin-right: 1rem;
}

.compress-options select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Progress */
.progress {
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #3498db;
    width: 0%;
    transition: width 0.3s ease;
}

#progressText {
    text-align: center;
    color: #7f8c8d;
    margin-top: 1rem;
}

/* Results */
.results {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.results h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    color: #7f8c8d;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tool-section {
        padding: 2rem;
    }
    
    .upload-area {
        padding: 2rem;
    }
    
    .option-group {
        flex-direction: column;
        gap: 1rem;
    }
}
