/* Global Styles */
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f8;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

a {
    text-decoration: none;
    color: #007bff;
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    margin: 0;
    color: #d32f2f; /* Youdao Red */
}

.logo span {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

.site-header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.site-header nav li {
    margin-left: 20px;
}

.site-header nav a {
    color: #555;
    font-weight: 500;
}

.site-header nav a:hover {
    color: #d32f2f;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e53935 0%, #ff5252 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    opacity: 0.9;
}

.download-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-download {
    background-color: #fff;
    color: #d32f2f;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-download:hover {
    transform: scale(1.05);
    background-color: #f9f9f9;
}

.safe-tip {
    font-size: 0.9em;
    color: #ffcdd2;
}

/* Mockup */
.mockup {
    width: 60%;
    margin: 40px auto 0;
    background: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    color: #333;
    text-align: left;
}

.mockup-header {
    background: #f0f0f0;
    padding: 10px 20px;
    font-size: 12px;
    color: #999;
    border-bottom: 1px solid #ddd;
}

.mockup-body {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.trans-input, .trans-result {
    width: 40%;
    height: 100px;
    border: 1px solid #eee;
    padding: 10px;
    background: #fafafa;
    border-radius: 5px;
}

.trans-btn {
    background: #d32f2f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Features */
.features {
    padding: 60px 0;
    background: #fff;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: box-shadow 0.3s;
}

.feature-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-item h4 {
    color: #d32f2f;
    margin-top: 0;
}

/* Details & Article */
.details {
    padding: 40px 0;
}

article {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Modal (Preview Window) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.progress-bar {
    width: 100%;
    background-color: #ddd;
    border-radius: 10px;
    margin: 20px 0;
    height: 20px;
    overflow: hidden;
}

.progress {
    width: 1%;
    height: 100%;
    background-color: #2196F3;
    transition: width 0.1s;
}

.file-preview {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 0.9em;
    text-align: left;
    border-left: 4px solid #4CAF50;
}

.btn-primary {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    margin-top: 15px;
}

.btn-secondary {
    display: inline-block;
    background: #ccc;
    color: #333;
    padding: 10px 25px;
    border-radius: 5px;
    margin-top: 15px;
    margin-left: 10px;
}

/* Footer */
footer {
    background: #333;
    color: #ccc;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

footer a {
    color: #fff;
}

.disclaimer {
    font-size: 0.8em;
    opacity: 0.6;
    margin-top: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h2 { font-size: 2em; }
    .mockup { width: 90%; }
    .site-header .container { flex-direction: column; }
    .site-header nav ul { margin-top: 15px; }
}
