/* ===== LOADING ANIMATION RESPONSIVE ===== */

@media (max-width: 768px) {
    .loading-logo-img {
        width: 250px;
        height: 250px;
    }
    
    .logo-pulse {
        width: 290px;
        height: 290px;
    }
    
    .loading-company-name {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .loading-company-name-en {
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    
    .loading-slogan {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .progress-bar {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .loading-logo-img {
        width: 180px;
        height: 180px;
    }
    
    .logo-pulse {
        width: 220px;
        height: 220px;
    }
    
    .loading-company-name {
        font-size: 16px;
        letter-spacing: 0.5px;
    }
    
    .loading-company-name-en {
        font-size: 12px;
        letter-spacing: 0.2px;
        line-height: 1.2;
    }
    
    .loading-slogan {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    .progress-bar {
        width: 200px;
    }
    
    .loading-text {
        margin-bottom: 40px;
    }
}

/* Responsive Design */

/* Large Desktop (1440px and above) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .section-header h2 {
        font-size: 42px;
    }
}

/* Desktop (1024px to 1439px) */
@media (max-width: 1439px) {
    .hero-content {
        gap: 40px;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .contact-content {
        gap: 40px;
    }
    
    .map-container-section {
        margin-top: 0px;
        margin-left: -60px;
    }
    
    .map-section {
        padding: 32px;
    }
    
    .location-map-image {
        height: 400px;
    }
    
    .map-center-marker i {
        font-size: 28px;
    }
}

/* Tablet (768px to 1023px) */
@media (max-width: 1023px) {
    :root {
        --section-padding: 60px 0;
        --card-padding: 20px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-img {
        max-width: 600px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-features {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .map-container-section {
        margin-top: 10px;
        margin-left: 0;
    }
    
    .map-section {
        padding: 24px;
    }
    
    /* 标题已删除，不再需要 */
    
    .location-map-image {
        height: 350px;
    }
    
    .map-center-marker i {
        font-size: 24px;
    }
    
    .map-description {
        font-size: 16px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Small Tablet and Large Mobile (481px to 767px) */
@media (max-width: 767px) {
    :root {
        --section-padding: 50px 0;
        --card-padding: 16px;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin-bottom: 8px;
    }
    
    .nav-link {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .company-name {
        font-size: 16px;
    }
    
    .hero {
        padding-top: 68px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-img {
        max-width: 450px;
    }
    
    .btn {
        padding: 14px 24px;
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .section-header p {
        font-size: 15px;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .overview-card {
        padding: 20px;
    }
    
    .about-text h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .about-text p {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-content h3 {
        font-size: 18px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .contact-item {
        margin-bottom: 24px;
    }
    
    .form {
        padding: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer {
        padding: 40px 0 16px;
    }
    
    /* 成功案例平板和手机端居中 */
    .cases-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 30px;
    }
    
    .case-card {
        max-width: 400px;
        width: 100%;
    }
    
    /* 工作流项目详情移动端优化 */
    .project-detail {
        padding: 0;
    }
    
    .project-detail-header {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .project-title-section {
        text-align: center;
    }
    
    .project-detail-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 15px 15px;
    }
    
    .detail-left,
    .detail-right {
        width: 100%;
        display: contents; /* 让子元素直接参与父容器的flex布局 */
    }
    
    /* 移动端卡片排序：项目信息 → 进度节点 → 项目成员 → 最近活动 */
    .detail-left .detail-card:nth-child(1) { /* 项目信息 */
        order: 1;
    }
    
    .detail-left .detail-card:nth-child(2) { /* 进度节点 */
        order: 2;
    }
    
    .detail-right .detail-card:nth-child(1) { /* 项目成员 */
        order: 3;
    }
    
    .detail-right .detail-card:nth-child(2) { /* 最近活动 */
        order: 4;
    }
    
    .detail-card {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .detail-card h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .project-info .info-item {
        margin-bottom: 12px;
        padding: 8px 0;
        border-bottom: 1px solid var(--gray-100);
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .project-info .info-item label {
        font-size: 12px;
        font-weight: 600;
        color: var(--gray-600);
        min-width: 80px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .project-info .info-item p {
        font-size: 14px;
        margin: 0;
        color: var(--gray-800);
        flex: 1;
    }
    
    /* 节点网格移动端优化 */
    .node-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .node-card {
        padding: 12px;
        border-radius: 8px;
    }
    
    .node-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .node-title {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .node-meta {
        font-size: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .node-date {
        font-size: 11px;
        color: var(--gray-600);
        line-height: 1.3;
        word-break: break-all;
        max-width: 100%;
    }
    
    .node-assignee {
        font-size: 11px;
        color: var(--gray-600);
    }
    
    .node-actions {
        margin-top: 8px;
        gap: 6px;
    }
    
    .node-actions .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* 项目成员移动端优化 */
    .project-members {
        gap: 10px;
    }
    
    .member-item {
        padding: 10px;
        border-radius: 8px;
        background: var(--gray-50);
        border: 1px solid var(--gray-200);
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .member-avatar {
        flex-shrink: 0;
    }
    
    .member-info {
        font-size: 13px;
        flex: 1;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .member-name {
        font-weight: 600;
        color: var(--gray-800);
    }
    
    .member-role {
        font-size: 11px;
        padding: 2px 6px;
        border-radius: 4px;
        background: var(--primary-blue);
        color: white;
        white-space: nowrap;
    }
    
    /* 最近活动移动端优化 */
    .recent-activities {
        gap: 8px;
    }
    
    .activity-item {
        padding: 8px;
        font-size: 12px;
        border-left: 3px solid var(--primary-blue);
        background: var(--gray-50);
        border-radius: 4px;
    }
    
    .activity-time {
        font-size: 10px;
        color: var(--gray-500);
        margin-top: 4px;
    }
    
    /* 防止iOS Safari在输入框上自动放大 */
    .form-group input,
    .form-group select, 
    .form-group textarea,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important;
    }
    
    /* Admin Section Mobile */
    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding: 0 15px;
    }
    
    .admin-header h3 {
        font-size: 20px;
        margin-bottom: 0;
        text-align: center;
    }
    
    #refreshUsersBtn {
        width: 100%;
        justify-content: center;
    }
    
    /* Admin Table Mobile - 竖直卡片布局 */
    .user-table-container {
        background: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }
    
    .user-table thead {
        display: none; /* 隐藏表头 */
    }
    
    .user-table tbody {
        display: block;
    }
    
    .user-table tr {
        display: block;
        background: var(--white);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 15px;
        padding: 16px;
        border-left: 4px solid var(--primary-blue);
        position: relative;
    }
    
    .user-table td {
        display: block;
        border: none;
        padding: 6px 0;
        text-align: left;
        position: relative;
        padding-left: 100px; /* 为标签留出空间 */
        min-height: 24px;
        line-height: 1.4;
    }
    
    .user-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 6px;
        width: 90px;
        font-weight: 600;
        color: var(--gray-700);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* 为每个td添加标签 */
    .user-table td:nth-child(1):before { content: "用户名"; }
    .user-table td:nth-child(2):before { content: "姓名"; }
    .user-table td:nth-child(3):before { content: "邮箱"; }
    .user-table td:nth-child(4):before { content: "企业"; }
    .user-table td:nth-child(5):before { content: "注册类型"; }
    .user-table td:nth-child(6):before { content: "实际权限"; }
    .user-table td:nth-child(7):before { content: "状态"; }
    .user-table td:nth-child(8):before { content: "操作"; }
    
    .user-table .action-buttons {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 4px;
    }
    
    .user-table .btn-small {
        flex: 1;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 12px;
        text-align: center;
        justify-content: center;
    }
    
    .user-table .permission-select {
        width: 100%;
        padding: 6px 8px;
        font-size: 12px;
        margin-top: 4px;
    }
}

/* Mobile (320px to 480px) */
@media (max-width: 480px) {
    :root {
        --section-padding: 40px 0;
        --card-padding: 12px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .nav-container {
        padding: 0 12px;
    }
    
    .nav-logo .logo {
        height: 32px;
    }
    
    .company-name {
        font-size: 14px;
    }
    
    .hero {
        padding-top: 60px;
        min-height: 70vh;
    }
    
    .hero-content {
        gap: 24px;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .hero-buttons {
        max-width: 240px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Auth Buttons Mobile - 移动到正确位置 */
    .auth-buttons {
        flex-direction: column;
        gap: 6px;
    }
    
    .auth-buttons .btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 60px;
    }
    
    /* 修复注册按钮边框问题 */
    .auth-buttons .btn-secondary {
        border: none !important;
        background: var(--primary-red) !important;
        color: var(--white) !important;
    }
    
    /* 工作流模态框移动端适配 */
    #createProjectModal .modal-content,
    #addMilestoneModal .modal-content,
    #addMemberModal .modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
        max-height: 90vh;
    }
    
    #createProjectModal .modal-body,
    #addMilestoneModal .modal-body,
    #addMemberModal .modal-body {
        padding: 20px;
    }
    
    #createProjectModal .form-row,
    #addMilestoneModal .form-row,
    #addMemberModal .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #createProjectModal .modal-actions,
    #addMilestoneModal .modal-actions,
    #addMemberModal .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    #createProjectModal .modal-actions .btn,
    #addMilestoneModal .modal-actions .btn,
    #addMemberModal .modal-actions .btn {
        width: 100%;
        padding: 14px;
    }
    
    /* 移动端添加成员按钮样式 */
    .btn-add-member {
        padding: 12px 18px !important;
        font-size: 15px !important;
        min-width: 140px !important;
    }
    
    .btn-add-member i {
        font-size: 17px;
    }
    
    /* 移动端模态框关闭按钮 */
    .modal-close {
        width: 44px !important;
        height: 44px !important;
        font-size: 22px !important;
        border-radius: 10px !important;
    }
    
    /* 工作流项目详情小屏优化 */
    .project-detail-header {
        padding: 12px;
        gap: 12px;
    }
    
    .project-detail-header h3 {
        font-size: 18px;
        margin: 0;
    }
    
    .project-meta {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .status-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .project-progress {
        font-size: 12px;
    }
    
    .project-actions {
        width: 100%;
    }
    
    .project-actions .btn {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
    
    /* 项目信息卡片小屏优化 */
    .detail-card {
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    /* 小屏也使用相同的卡片排序 */
    .project-detail-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 12px 12px;
    }
    
    .detail-left,
    .detail-right {
        display: contents;
    }
    
    /* 小屏项目信息横向布局 */
    .project-info .info-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 0;
    }
    
    .project-info .info-item label {
        min-width: 70px;
        font-size: 11px;
    }
    
    .project-info .info-item p {
        font-size: 13px;
    }
    
    /* 小屏项目成员横向布局 */
    .member-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px;
    }
    
    .member-info {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
    }
    
    .member-role {
        font-size: 10px;
        padding: 2px 5px;
    }
    
    /* 小屏节点时间优化 */
    .node-date {
        font-size: 10px;
        line-height: 1.2;
        word-break: break-word;
    }
    
    .node-assignee {
        font-size: 10px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .card-header h4 {
        font-size: 15px;
        margin: 0;
    }
    
    .milestone-controls {
        width: 100%;
    }
    
    .milestone-controls .btn {
        width: 100%;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* 返回按钮优化 */
    .btn-back {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        margin-bottom: 15px;
        justify-content: center;
        gap: 8px;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    .overview-card {
        padding: 16px;
        text-align: center;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .overview-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .overview-card p {
        font-size: 14px;
    }
    
    .about-text h2 {
        font-size: 22px;
    }
    
    .about-text p {
        font-size: 14px;
    }
    
    .feature-item {
        font-size: 14px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-content {
        padding: 16px;
    }
    
    .product-content h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .product-content p {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .product-features {
        font-size: 14px;
    }
    
    .news-image {
        height: 140px;
    }
    
    .news-content {
        padding: 16px;
    }
    
    .news-content h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .news-content p {
        font-size: 14px;
    }
    
    .news-meta {
        font-size: 12px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .contact-details h4 {
        font-size: 14px;
    }
    
    .contact-details p {
        font-size: 13px;
    }
    
    .map-container-section {
        margin-top: 16px;
        margin-left: 0;
    }
    
    .map-section {
        padding: 20px;
        border-radius: 16px;
    }
    
    /* 标题已删除，不再需要 */
    
    .location-map-image {
        height: 280px;
    }
    
    .map-center-marker i {
        font-size: 20px;
    }
    
    .map-description {
        font-size: 14px;
    }
    
    .form {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 16px; /* 防止iOS Safari自动放大 */
    }
    
    .footer-logo .logo {
        height: 28px;
    }
    
    .footer-logo h3 {
        font-size: 16px;
    }
    
    .footer-section h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .footer-section p,
    .footer-links li,
    .footer-contact p {
        font-size: 13px;
    }
    
    .footer-bottom {
        font-size: 12px;
    }
    
    /* 防止iOS Safari在所有输入框上自动放大 */
    .form-group input,
    .form-group select,
    .form-group textarea,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important;
    }
    
    /* Admin Section 小屏手机端 */
    .admin-header {
        padding: 0 12px;
        gap: 12px;
    }
    
    .admin-header h3 {
        font-size: 18px;
    }
    
    #refreshUsersBtn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* 小屏手机端表格进一步优化 */
    .user-table tr {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .user-table td {
        padding: 4px 0;
        padding-left: 85px;
        font-size: 13px;
    }
    
    .user-table td:before {
        width: 75px;
        font-size: 11px;
    }
    
    .user-table .btn-small {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
    .container {
        padding: 0 8px;
    }
    
    .nav-container {
        padding: 0 8px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .overview-card,
    .product-content,
    .news-content {
        padding: 12px;
    }
    
    .form {
        padding: 16px;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-img,
    .about-img,
    .product-image img,
    .news-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .header,
    .footer,
    .hero-scroll,
    .mobile-menu-toggle,
    .lang-toggle,
    .btn {
        display: none !important;
    }
    
    .hero {
        padding-top: 0;
        min-height: auto;
    }
    
    .section-header h2 {
        page-break-after: avoid;
    }
    
    .overview-card,
    .product-card,
    .news-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    /* Auth Modal Mobile */
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .auth-tabs {
        padding: 3px;
    }
    
    .auth-tab {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* Auth模态框防止自动放大 */
    .modal input[type="text"],
    .modal input[type="email"],
    .modal input[type="tel"],
    .modal input[type="password"],
    .modal select,
    .modal textarea {
        font-size: 16px !important;
    }
    
    /* 树状图移动端适配 */
    .milestones-container {
        padding: 15px;
        max-height: 500px;
    }
    
    .milestone-tree {
        gap: 25px;
        min-height: 300px;
    }
    
    .milestone-level {
        gap: 20px;
        justify-content: center;
    }
    
    .milestone-node-compact {
        margin: 5px;
    }
    
    .milestone-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .milestone-label {
        font-size: 11px;
        max-width: 70px;
        margin-top: 6px;
        padding: 3px 6px;
    }
    
    .milestone-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .milestone-title {
        font-size: 13px;
        min-height: 32px;
    }
    
    .milestone-status-badge {
        font-size: 10px;
        padding: 3px 8px;
        margin-bottom: 10px;
    }
    
    .milestone-details {
        font-size: 11px;
        gap: 4px;
    }
    
    .milestone-date i,
    .milestone-assignee i {
        font-size: 10px;
    }
    
    /* 并联节点在移动端显示为网格 */
    .milestone-level[data-level="2"] {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    /* 成功案例手机端居中 */
    .cases-grid {
        grid-template-columns: 1fr !important;
        justify-items: center;
        max-width: 100%;
    }
    
    .case-card {
        max-width: 350px;
        width: 100%;
    }
    
    /* 连接线在小屏幕简化显示 */
    .milestone-connections {
        opacity: 0.5;
    }
    
    .connection-line {
        stroke-width: 2;
        stroke-dasharray: 4,2;
    }
    
    /* 节点连接指示器在移动端隐藏 */
    .milestone-node::before,
    .milestone-node::after {
        display: none;
    }
    
    /* 详情模态框移动端适配 */
    .milestone-detail-content {
        max-width: 100%;
    }
    
    .detail-section {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .detail-item {
        gap: 3px;
    }
    
    .detail-item label {
        font-size: 12px;
    }
    
    .detail-item span {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .status-control {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .status-select {
        width: 100%;
        padding: 10px 12px;
    }
    
    /* 手动连接功能移动端适配 */
    .milestone-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .milestone-controls .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* 删除确认对话框移动端适配 */
    .delete-confirmation-content {
        margin: 20px;
        padding: 25px;
        max-width: calc(100vw - 40px);
    }
    
    .delete-confirmation-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .delete-confirmation-actions .btn {
        width: 100%;
    }
    
    .connection-mode-hint {
        font-size: 12px;
        padding: 6px 12px;
        top: 5px;
    }
    
    .connection-mode .milestone-circle:hover {
        transform: scale(1.15);
    }
    
    /* 等级样式移动端适配 */
    .milestone-level::before {
        display: none;
    }
    
    .level-indicator {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: -3px;
        right: -3px;
    }
}

/* 仅在手机端隐藏连接线 */
@media (max-width: 600px) {
    .milestone-connections {
        display: none !important;
    }
}
