/* css/styles.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #2c3e50;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.nav-button {
    text-decoration: none;
    color: white;
    background-color: #3498db;
    padding: 8px 15px;
    border-radius: 4px;
    margin-left: 10px;
    transition: background-color 0.3s;
}

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

/* 首页检测区域样式 */
.detection-area {
    max-width: 800px;
    margin: 80px auto;
    padding: 20px;
    text-align: center;
}

.input-group {
    display: flex;
    margin-top: 20px;
}

#domainInput {
    flex-grow: 1;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #ccc;
    border-right: none;
    border-radius: 6px 0 0 6px;
    outline: none;
}

#detectButton {
    padding: 15px 30px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

#detectButton:hover {
    background-color: #c0392b;
}

/* 结果展示样式 */
.result-box {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.result-box h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.result-box code {
    background-color: #eee;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* 状态标签 */
.status-tag {
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
}
.status-tag.success {
    background-color: #e8f5e9;
    color: #4caf50;
}
.status-tag.danger {
    background-color: #fbecec;
    color: #e74c3c;
}

/* 认证页面（注册/登录）样式 */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s;
    margin-top: 10px;
    text-align: center;
    text-decoration: none; /* For links acting as buttons */
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

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

.btn-secondary {
    background-color: #f39c12;
    color: white;
}

.btn-secondary:hover {
    background-color: #e67e22;
}

.switch-link {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9em;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.modal-actions {
    margin-top: 20px;
}