/* 重置和基本样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 头部样式 */
header {
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 36px;
    color: #1a73e8;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 2px;
    font-weight: bold;
    margin: 0;
    padding: 20px 0;
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo span {
    font-weight: bold;
    color: #1a73e8;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-login {
    color: #333;
    border: 1px solid #333;
}

.btn-register, .btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}
/* 主要内容样式 */
main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center; /* 添加这行，使main内容垂直居中 */
    /* padding: 20px; */
}

.container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 50px auto;
    max-width: 800px;
    width: 90%;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* 添加这行，使内容垂直居中 */
    width: 100%;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    background-color: #fff;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-grow: 1;
    margin: 0 5px;
    font-size: 14px;
}

.action-button i {
    font-size: 18px;
    margin-right: 8px;
}

.action-button:hover, .action-button.active {
    background-color: #1a73e8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.auth-container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
    width: 100%; /* 确保容器占满整个度 */
}

.auth-form {
    margin-bottom: 20px;
    width: 100%; /* 确保表单占满整个容器宽度 */
}

h2 {
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 25px;
    width: 100%; /* 确保每个表单组占满整个宽度 */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #5f6368;
    font-size: 16px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%; /* 使输入框和选择框占满整个宽度 */
    padding: 12px;
    border: 2px solid #dadce0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: #1765cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.update-info {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 30px;
    width: 100%; /* 确保更新信息容器占满整个宽度 */
}

.update-info h3 {
    margin-bottom: 20px;
    color: #1a73e8;
    font-size: 24px;
    font-weight: 600;
}

.update-info ul {
    list-style-type: none;
}

.update-info li {
    margin-bottom: 10px;
    color: #5f6368;
    font-size: 14px;
}

.update-info li i {
    color: #34a853;
    margin-right: 5px;
}

/* 联系我们样式 */
.contact form {
    display: grid;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact textarea {
    height: 150px;
}

/* 页脚样式 */
.main-footer {
    background-color: #f8f9fa;
    color: #5f6368;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
    font-size: 13px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-inner a {
    color: inherit;
}

.footer-inner a:hover {
    text-decoration: underline;
}

.footer-left {
    flex-shrink: 0;
}

.footer-right-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 100%;
        margin: 0;
        padding: 20px;
        border-radius: 0;
    }

    .button-container {
        flex-wrap: wrap;
    }

    .action-button {
        flex-basis: calc(50% - 10px);
        margin-bottom: 10px;
    }

    .auth-container,
    .update-info {
        padding: 15px;
    }

    .form-group input,
    .form-group select {
        font-size: 14px;
    }

    .btn-submit {
        font-size: 16px;
    }

    footer {
        padding: 10px;
    }
}

/* 在文件末尾添加以下样式 */

.auth-error {
    background-color: #fff3f3;
    border: 1px solid #ffd7d7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
    color: #d93025;
}

.auth-error i {
    font-size: 48px;
    margin-bottom: 10px;
}

.auth-error p {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

/* 修改授权信息容器样式 */
.auth-info {
    position: relative;
    background-color: #f0f8ff;
    border: 1px solid #b3d7ff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    overflow: hidden; /* 添加这行以确保内容不会溢出 */
}

/* 修改正版授权标签样式 */
.auth-stamp {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    color: #ff0000;
    transform: rotate(15deg);
    opacity: 0.8;
    z-index: 1; /* 确保标签在其他内容之上 */
}

/* 调整授权信息项的样式 */
.auth-item {
    display: flex;
    margin-bottom: 10px;
    position: relative; /* 添加这行 */
    z-index: 0; /* 确保在正版授权标签下方 */
}

.auth-label {
    font-weight: bold;
    width: 100px;
    color: #5f6368;
}

.auth-value {
    flex: 1;
    color: #202124;
    padding-right: 90px; /* 为正版授权标签留出间 */
}

/* 在尾加以下样式 */

.update-list {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.update-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
    position: relative;
    padding-bottom: 30px; /* 为日期留出空间 */
}

.update-item:last-child {
    border-bottom: none;
}

.update-item h4 {
    color: #1a73e8;
    margin-bottom: 5px;
}

.update-date {
    color: #6c757d;
    font-size: 0.8em;
    position: absolute;
    bottom: 5px;
    right: 0;
}

.no-update {
    color: #6c757d;
    font-style: italic;
}

.error-message {
    color: #dc3545;
    font-weight: bold;
}

.default-info {
    list-style-type: none;
    padding: 0;
}

.default-info li {
    margin-bottom: 10px;
    color: #6c757d;
}

.default-info li i {
    margin-right: 10px;
    color: #1a73e8;
}

/* 在文件末尾添加以下样式 */

.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.version-display {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    color: #666;
    display: none;
}

select {
    padding-right: 70px; /* 为版本号留出空间 */
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #1a73e8, #34a853, #fbbc05, #ea4335);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.feature-list {
    list-style-type: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 15px;
    color: #5f6368;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: #34a853;
    margin-right: 10px;
    font-size: 20px;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: 12px;
    }
}

/* 在文件末尾添加以下样式 */

.online-auth-form {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.online-auth-form h2 {
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.auth-result {
    margin-top: 20px;
}

.auth-result .success {
    color: #28a745;
}

.auth-result .error {
    color: #dc3545;
}

/* 在文件末尾添加以下样式 */

.auth-stamp-success {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 80px;
    height: 80px;
    background-color: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #28a745;
    transform: rotate(15deg);
    opacity: 0.9;
    z-index: 1;
}

.auth-info {
    position: relative;
    padding-right: 120px; /* 为印章留出空间 */
}

.auth-info {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.auth-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.auth-info h3, .auth-error h3 {
    margin-top: 0;
}

.auth-info .btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    border-radius: 4px;
}

.auth-info .btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.auth-info {
    position: relative;
    padding-bottom: 60px; /* 为下载按钮留出空间 */
}

.download-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #0056b3;
}

.update-list {
    max-height: 300px;
    overflow-y: auto;
}

.more-updates {
    text-align: center;
    color: #1a73e8;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
}

.more-updates:hover {
    text-decoration: underline;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 修改更新列表的样式 */
.update-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px; /* 为滚动条留出空间 */
}

.update-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
    position: relative;
    padding-bottom: 30px; /* 为日期留出空间 */
}

.update-item:last-child {
    border-bottom: none;
}

.update-item h4 {
    color: #1a73e8;
    margin-bottom: 5px;
    font-size: 16px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.main-content .auth-container {
    width: 100%;
    margin-bottom: 0;
}

.update-content {
    width: 100%;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 24px 20px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.update-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #1a73e8;
}

.update-content h3 i {
    margin-right: 6px;
}

.update-content .feature-list,
.update-content .default-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.update-content .feature-list li,
.update-content .default-info li {
    padding: 7px 0;
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.update-content .feature-list li:last-child,
.update-content .default-info li:last-child {
    border-bottom: none;
}

.update-content .feature-list li i,
.update-content .default-info li i {
    color: #1a73e8;
    width: 16px;
    flex-shrink: 0;
}


.update-date {
    color: #6c757d;
    font-size: 12px;
    position: absolute;
    bottom: 5px;
    right: 0;
}

.function-notes {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.function-notes h3 {
    color: #1a73e8;
    margin-bottom: 10px;
}

.function-notes ul {
    list-style-type: none;
    padding-left: 0;
}

.function-notes li {
    margin-bottom: 5px;
    color: #5f6368;
}

.function-notes li:before {
    content: "•";
    color: #1a73e8;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.input-tip {
    font-size: 14px;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.input-tip.error {
    color: #dc3545;
}

.input-tip.info {
    color: #17a2b8;
}

.input-tip.success {
    color: #28a745;
}

.shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}
.captcha-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.captcha-image {
    margin-right: 10px;
}
.refresh-captcha {
    cursor: pointer;
    color: #007bff;
}
.email-verification {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.email-verification input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
.email-verification button {
    white-space: nowrap;
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s ease;
    font-weight: bold;
}
.email-verification button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}
.email-verification button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}
.email-verification button:active {
    transform: translateY(1px);
}
.input-tip {
    font-size: 14px;
    margin-top: 5px;
    transition: all 0.3s ease;
}
.input-tip.error {
    color: #dc3545;
}
.input-tip.info {
    color: #17a2b8;
}
.input-tip.success {
    color: #28a745;
}
.shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
}
@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}
.auth-error {
    background-color: #ffe6e6;
    border: 1px solid #ff9999;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.auth-error i {
    color: #cc0000;
    font-size: 24px;
    margin-bottom: 10px;
}

.auth-error p {
    color: #cc0000;
    margin: 0;
    font-weight: bold;
}

.auth-info {
    background-color: #e6ffe6;
    border: 1px solid #99ff99;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

.auth-info h3 {
    color: #006600;
    margin-top: 0;
}

.auth-details {
    margin-top: 10px;
}

.auth-details p {
    margin: 5px 0;
}

.auth-stamp-success {
    color: #006600;
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
}

/* 授权查询结果样式 */
.auth-detail-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
    justify-content: flex-start;
}

.auth-detail-label {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    width: 80px;
    flex-shrink: 0;
    font-family: 'Poppins', sans-serif;
}

.auth-detail-value {
    font-size: 15px;
    color: #666;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
}

.result-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    padding: 15px;
    text-align: left;
}

.result-title {
    color: #2e7d32;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}

.auth-stamp-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 64px;
    height: 64px;
    border: 2px solid #e53935;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #e53935;
    line-height: 1.3;
    transform: rotate(15deg);
    opacity: 0.85;
    background-color: rgba(229, 57, 53, 0.05);
    pointer-events: none;
}

