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

body {
    font-family: '微軟正黑體', 'Microsoft JhengHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #0066cc;
    margin-bottom: 10px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background-color: #e8e8e8;
    padding: 15px;
    border-radius: 8px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

button {
    padding: 8px 16px;
    background-color: #0080ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0066cc;
}

.display-container {
    display: flex;
    gap: 20px;
    position: relative;
}

#phone-model-container {
    width: 65%;
    height: 500px;
    margin: 0;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.phone-info {
    width: 35%;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    align-self: flex-start;
    position: sticky;
    top: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.phone-info h2 {
    color: #0066cc;
    margin-bottom: 15px;
    border-bottom: 2px solid #0080ff;
    padding-bottom: 5px;
}

.phone-info ul {
    list-style-position: inside;
    padding-left: 15px;
}

.phone-info li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .display-container {
        flex-direction: column;
    }
    
    #phone-model-container {
        width: 100%;
        height: 400px;
    }
    
    .phone-info {
        width: 100%;
        position: relative;
        top: 0;
    }
}