/* Reset */
* {
    margin: 0;
    padding: 0;
}
html, body, input, text, textarea {
    outline: none;
    font-family: 'Arial', 'Microsoft YaHei', '黑体', '宋体', sans-serif;
    font-size: 12px;
}
html, body {
    background: #fff;
}
a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Main */
.wrap {
    text-align: center;
    overflow: hidden;
}

/* 确保输入区域居中，但输入框左对齐 */
.wrap .link-area {
    text-align: center;
}

/* 创建一个容器来包含输入框，让它们左对齐 */
.input-container {
    display: inline-block;
    text-align: left;
}
.wrap .meta {
    margin: 30px 0 0 0;
    opacity: 0;
    transform: translateY(-150px);
    transition: .5s all ease;
}
.on .wrap .meta {
    opacity: 1;
    transform: translateY(0);
}
.wrap .meta .title {
    line-height: 1em;
    color: #ff4665;
    font-size: 45px;
    text-transform: uppercase;
}
.wrap .meta .description {
    margin: 5px 0 0 0;
    line-height: 1em;
    color: #7e7e7e;
    font-size: 16px;
    font-weight: normal;
}
.wrap .link-area {
    margin: 30px 0 0 0;
    opacity: 0;
    transition: .5s opacity ease;
}
.on .wrap .link-area {
    opacity: 1;
}
.wrap .link-area input {
    display: inline-block;
    vertical-align: middle;
    
}
/* 覆盖旧的设置，确保所有设置项等宽等高 */
.wrap .link-area #pswd,
.wrap .link-area #ttl {
    width: 240px !important;
    height: 40px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    padding: 8px 12px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 6px !important;
    color: #333;
    margin-left: 0;
    box-sizing: border-box !important;
    text-align: center;
}

.wrap .link-area #ttl {
    text-align-last: center;
    -moz-text-align-last: center;
}

.wrap .link-area #ttl option { 
    text-align: center; 
}

.wrap .link-area #pswd:focus,
.wrap .link-area #ttl:focus {
    border-color: #ff4665;
    transition: .2s border ease;
}
.wrap .link-area #url,
.wrap .link-area #shorturl {
    width: 240px;
    height: 38px;
    font-size: 14px;
    line-height: 1.2;
    padding: 8px 12px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    color: #333;
    box-sizing: border-box;
    vertical-align: top;
}
.wrap .link-area #url + #submit { margin-left: 8px; }
.wrap .link-area #url.focus,
.wrap .link-area #url:focus {
    border-color: #ff4665;
    transition: .2s border ease;
}

/* 确保输入框和输出框完全对齐 */
.wrap .link-area #url,
.wrap .link-area #shorturl {
    vertical-align: top;
    display: inline-block;
    margin: 0;
}

/* 确保按钮与输入框垂直对齐 */
.wrap .link-area #submit,
.wrap .link-area #more,
.wrap .link-area #shorturlcopy {
    vertical-align: top;
    display: inline-block;
    margin: 0;
}
.wrap .link-area #shorturlcopy,
.wrap .link-area #submit {
    width: 70px;
    height: 38px;
    font-size: 14px;
    margin: 0 0 0 8px;
    background: #ff4665;
    border-radius: 6px;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    vertical-align: top;
    box-sizing: border-box;
}

.wrap .link-area #submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 70, 101, 0.3);
}
.wrap .link-area .row-block{ margin-top:8px; }



.wrap .link-area #more{ 
    width: 100px; 
    height: 38px; 
    font-size: 14px; 
    background:#f0f0f0; 
    color:#333; 
    border:1px solid #ccc; 
    border-radius:6px; 
    cursor:pointer; 
    transition: all 0.3s ease; 
    vertical-align: top; 
    box-sizing: border-box; 
    display: inline-block; 
}
.wrap .link-area #more:hover{ opacity:.85; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }

/* 更多设置按钮容器 */
.more-button-container {
    text-align: center;
    margin: 15px 0;
}

/* 手机端响应式样式 */
@media (max-width: 768px) {
    .settings-column {
        gap: 25px;
        margin-top: 30px;
        margin-bottom: 30px;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        padding: 15px 0;
    }
    
    .setting-item {
        width: 100%;
        max-width: 260px;
    }
    
    .setting-item input,
    .setting-item select {
        width: 260px !important;
        font-size: 16px !important; /* 防止iOS缩放 */
        height: 44px !important; /* 手机端稍微高一点 */
        min-height: 44px;
        text-align: center;
    }
    
    /* 手机端覆盖所有设置项 */
    .wrap .link-area #pswd,
    .wrap .link-area #ttl {
        width: 260px !important;
        height: 44px !important;
        font-size: 16px !important;
    }
    
    .setting-item label {
        margin-bottom: 10px;
    }
}
.wrap .link-area label {
    display: inline-block;
    margin-left: 0;
    color: #333;
    font-size: 110%;
    vertical-align: middle;
}
.wrap .link-area label input[type="checkbox"] {
    margin-right: 4px;
    vertical-align: middle;
}
.wrap .link-area p {
   margin: 0 10px;
   font-size: 125%;
   text-align: left;
}
.wrap .link-area span {
   font-size: 115%;
}
.wrap .link-area #claim {
      width: 300px;
      margin: 0 auto;
}

.wrap .link-area #submit:hover {
    opacity: .75;
}
.wrap .link-area #submit:active {
    opacity: .9;
}
.wrap .footer {
    width: 100%;
    bottom: 80px;
    left: 0;
    position: absolute;
    color: #7e7e7e;
}
.wrap .footer a {
    color:#ff4665;
}

/* 游客提示信息样式 */
.guest-notice {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.guest-notice i {
    color: #6c757d;
    font-style: italic;
}

.guest-notice .remaining-count {
    margin-top: 8px;
    font-weight: bold;
}

.guest-notice .remaining-count.available {
    color: #28a745;
}

.guest-notice .remaining-count.limited {
    color: #dc3545;
}

.guest-notice .login-hint {
    margin-top: 10px;
    font-size: 14px;
}

.guest-notice .login-hint a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.guest-notice .login-hint a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.guest-notice .url-type-info {
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
}

/* 设置列布局 */
.settings-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 30px;
    align-items: center;
    padding: 10px 0;
}

.setting-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 240px;
    margin: 0;
    text-align: center;
    min-width: 240px;
}

.setting-item label {
    margin-bottom: 8px;
    font-size: 13px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.setting-item input,
.setting-item select {
    width: 240px;
    height: 40px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
    min-height: 40px;
    text-align: center;
}

.setting-item input:focus,
.setting-item select:focus {
    border-color: #ff4665;
    box-shadow: 0 0 0 3px rgba(255, 70, 101, 0.1);
    outline: none;
    transform: translateY(-1px);
}

/* 选择框选项居中 */
.setting-item select option {
    text-align: center;
}

/* 确保选择框在不同浏览器中显示一致 */
.setting-item select {
    text-align-last: center;
    -webkit-text-align-last: center;
    -moz-text-align-last: center;
}

/* 更多设置动画 */
#more-settings {
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
    opacity: 0;
    transform: scaleY(0);
    max-height: 0;
    text-align: center;
    width: 100%;
}

#more-settings.show {
    opacity: 1;
    transform: scaleY(1);
    max-height: 300px;
}

/* URL显示样式 */
.url-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.url-info {
    flex: 1;
    margin-right: 15px;
}

.url-short {
    color: #007bff;
    font-weight: bold;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
    word-break: break-all;
}

.url-original {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 10px;
    word-break: break-all;
    word-wrap: break-word;
    line-height: 1.4;
    max-width: 100%;
}

.url-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #495057;
}

.stat-item {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.url-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.url-actions .btn {
    min-width: 60px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .url-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .url-info {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .url-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .url-stats {
        justify-content: center;
    }
}

/* API Token模态框样式 */
.api-token-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.token-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.token-display input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    background: #fff;
}

.token-hint {
    color: #6c757d;
    font-size: 12px;
    margin-top: 10px;
}

.api-usage {
    margin-bottom: 20px;
}

.api-usage h4 {
    color: #495057;
    margin-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.api-example {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.api-example p {
    margin: 8px 0;
    font-size: 14px;
}

.api-example code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

.api-example pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 10px 0;
}

.api-example pre code {
    background: none;
    padding: 0;
    color: inherit;
}



